Grammalecte  Check-in [401f29a39d]

Overview
Comment:[build][fr] build NodeJS package
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fr | build | nodejs
Files: files | file ages | folders
SHA3-256: 401f29a39dc81bc1c1fb6e11c41907db7f8ac0117522b02436a26317a8860d64
User & Date: olr on 2018-10-17 14:21:33
Other Links: branch diff | manifest | tags
Context
2018-10-17
16:07
[njs] fix labels and few mistakes check-in: 23d95509f4 user: olr tags: njs, nodejs
14:21
[build][fr] build NodeJS package check-in: 401f29a39d user: olr tags: build, fr, nodejs
14:04
[core][njs][js] textformatter: rename few functions and attributs check-in: 6963981657 user: olr tags: core, njs, nodejs
Changes

Modified gc_lang/fr/build.py from [c2d27a1c07] to [d49776adfe].

     8      8   import helpers
     9      9   
    10     10   
    11     11   def build (sLang, dVars, spLangPack):
    12     12       "complementary build launched from make.py"
    13     13       createWebExtension(sLang, dVars)
    14     14       createThunderbirdExtension(sLang, dVars, spLangPack)
           15  +    createNodeJSPackage(sLang)
    15     16   
    16     17   
    17     18   def createWebExtension (sLang, dVars):
    18     19       "create Web-extension"
    19     20       print("Building WebExtension")
    20     21       helpers.createCleanFolder("_build/webext/"+sLang)
    21     22       dir_util.copy_tree("gc_lang/"+sLang+"/webext/", "_build/webext/"+sLang)
................................................................................
    83     84               hZip.write("grammalecte-js/graphspell/"+sf, sAddPath+"grammalecte-js/graphspell/"+sf)
    84     85       for sf in os.listdir("grammalecte-js/graphspell/_dictionaries"):
    85     86           if not os.path.isdir("grammalecte-js/graphspell/_dictionaries/"+sf):
    86     87               hZip.write("grammalecte-js/graphspell/_dictionaries/"+sf, sAddPath+"grammalecte-js/graphspell/_dictionaries/"+sf)
    87     88       for sf in os.listdir(spLangPack):
    88     89           if not os.path.isdir(spLangPack+"/"+sf):
    89     90               hZip.write(spLangPack+"/"+sf, sAddPath+spLangPack+"/"+sf)
           91  +
           92  +
           93  +def createNodeJSPackage (sLang):
           94  +    helpers.createCleanFolder("_build/nodejs/"+sLang)
           95  +    dir_util.copy_tree("gc_lang/"+sLang+"/nodejs/", "_build/nodejs/"+sLang)
           96  +    dir_util.copy_tree("grammalecte-js", "_build/nodejs/"+sLang+"/core/grammalecte")