lfr-amd-loader
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -25,3 +25,3 @@ 'use strict'; | ||
gulp.task('build-config', function(callback) { | ||
exec('node config-generator.js -b src/config/config-base.js -o src/config/config.js dist/demo/modules', function (err, stdout, stderr) { | ||
exec('node node_modules/lfr-module-config-generator/bin/index.js -b src/config/config-base.js -o src/config/config.js dist/demo/modules', function (err, stdout, stderr) { | ||
callback(err); | ||
@@ -28,0 +28,0 @@ }); |
{ | ||
"name": "lfr-amd-loader", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "AMD Loader with support for combo URL and conditional loading", | ||
@@ -19,13 +19,2 @@ "main": "main.js", | ||
"homepage": "https://github.com/ipeychev/lfr-amd-loader", | ||
"dependencies": { | ||
"bluebird": "^2.9.24", | ||
"commander": "^2.8.0", | ||
"esprima-fb": "^15001.1.0-dev-harmony-fb", | ||
"js-beautify": "^1.5.5", | ||
"jsstana": "^0.1.5", | ||
"minimatch": "^2.0.4", | ||
"recast": "^0.10.12", | ||
"update-notifier": "^0.3.2", | ||
"walk": "^2.3.9" | ||
}, | ||
"devDependencies": { | ||
@@ -48,2 +37,3 @@ "combohandler": "^0.4.0", | ||
"jshint-stylish": "^1.0.1", | ||
"lfr-module-config-generator": "^1.0.1", | ||
"merge-stream": "^0.1.7", | ||
@@ -50,0 +40,0 @@ "run-sequence": "^1.0.2", |
@@ -145,27 +145,8 @@ AMD Module Loader | ||
In order to generate the configuration, there is a small NodeJS program, called `config-generator`. You may use it to generate the configuration file automatically. Here are the options it supports: | ||
In order to generate the configuration, there is a separate project, called [Liferay AMD modules config generator](https://www.npmjs.com/package/lfr-module-config-generator). You may use it to generate the configuration file automatically. | ||
```bash | ||
Usage: config-generator [options] <file ...> | ||
Here is an example usage: | ||
Options: | ||
-h, --help output usage information | ||
-b, --base [file name] Already existing template to be used as base for the parsed configuration | ||
-c, --config [config object] The configuration object in which the modules should be added | ||
-e, --extension [module extension] Use the provided string as an extension instead to get it automatically from the file name. Default: "" | ||
-f, --format [module format] Regex and value which will be applied to the file name when generating the module name. Example: "/_/g,-". Default: "" | ||
-i, --ignorePath [ignore path] Do not create module path and fullPath properties. | ||
-k, --keepExtension [keep file extension] If true, will keep the file extension when it generates module name. Default: false | ||
-l, --lowerCase [lower case] Convert file name to lower case before to use it as module name. Default: false | ||
-o, --output [file name] Output file to store the generated configuration | ||
-p, --filePattern [file pattern] The pattern to be used in order to find files for processing. Default: "**/*.js" | ||
-r, --moduleRoot [module root] The folder which will be used as starting point from which the module name should be generated. Default: current working directory | ||
-V, --version output the version number | ||
``` | ||
Here is an example of its usage: | ||
```bash | ||
$ node config-generator.js -b src/config/config-base.js -o src/config/config.js src/modules | ||
$ lfr-cfgen -b src/config/config-base.js -o src/config/config.js src/modules | ||
``` | ||
@@ -172,0 +153,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
0
3
624883
21
101
6457
159
- Removedbluebird@^2.9.24
- Removedcommander@^2.8.0
- Removedesprima-fb@^15001.1.0-dev-harmony-fb
- Removedjs-beautify@^1.5.5
- Removedjsstana@^0.1.5
- Removedminimatch@^2.0.4
- Removedrecast@^0.10.12
- Removedupdate-notifier@^0.3.2
- Removedwalk@^2.3.9
- Removed@isaacs/cliui@8.0.2(transitive)
- Removed@one-ini/wasm@0.1.1(transitive)
- Removed@pkgjs/parseargs@0.11.0(transitive)
- Removedabbrev@2.0.0(transitive)
- Removedansi-regex@2.1.15.0.16.1.0(transitive)
- Removedansi-styles@2.2.14.3.06.2.1(transitive)
- Removedargparse@1.0.10(transitive)
- Removedast-types@0.8.15(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbluebird@2.11.0(transitive)
- Removedbrace-expansion@1.1.112.0.1(transitive)
- Removedchalk@1.1.3(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedcommander@10.0.12.20.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconfig-chain@1.1.13(transitive)
- Removedconfigstore@0.3.2(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcross-spawn@7.0.6(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removedduplexify@3.7.1(transitive)
- Removedeastasianwidth@0.2.0(transitive)
- Removededitorconfig@1.0.4(transitive)
- Removedemoji-regex@8.0.09.2.2(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedesprima@2.7.34.0.1(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb15001.1001.0-dev-harmony-fb(transitive)
- Removedestraverse@4.3.0(transitive)
- Removedforeachasync@3.0.0(transitive)
- Removedforeground-child@3.3.0(transitive)
- Removedglob@10.4.5(transitive)
- Removedgot@3.3.1(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removedhas-ansi@2.0.0(transitive)
- Removedinfinity-agent@2.0.3(transitive)
- Removedinherits@2.0.4(transitive)
- Removedini@1.3.8(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedis-npm@1.0.0(transitive)
- Removedis-redirect@1.0.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedisexe@2.0.0(transitive)
- Removedjackspeak@3.4.3(transitive)
- Removedjs-beautify@1.15.1(transitive)
- Removedjs-cookie@3.0.5(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedjsstana@0.1.6(transitive)
- Removedlatest-version@1.0.1(transitive)
- Removedlevenshtein@1.0.5(transitive)
- Removedlowercase-keys@1.0.1(transitive)
- Removedlru-cache@10.4.3(transitive)
- Removedminimatch@2.0.109.0.19.0.5(transitive)
- Removedminimist@1.2.8(transitive)
- Removedminipass@7.1.2(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removednatives@1.1.6(transitive)
- Removednested-error-stacks@1.0.2(transitive)
- Removednopt@7.2.1(transitive)
- Removedobject-assign@2.1.13.0.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedpackage-json@1.2.0(transitive)
- Removedpackage-json-from-dist@1.0.1(transitive)
- Removedpackrattle@4.1.0(transitive)
- Removedpath-key@3.1.1(transitive)
- Removedpath-scurry@1.11.1(transitive)
- Removedpinkie@2.0.4(transitive)
- Removedpinkie-promise@2.0.1(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedprivate@0.1.8(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedproto-list@1.2.4(transitive)
- Removedrc@1.2.8(transitive)
- Removedread-all-stream@3.1.0(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedrecast@0.10.43(transitive)
- Removedregistry-url@3.1.0(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsemver@5.7.27.7.0(transitive)
- Removedsemver-diff@2.1.0(transitive)
- Removedshebang-command@2.0.0(transitive)
- Removedshebang-regex@3.0.0(transitive)
- Removedsignal-exit@4.1.0(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstream-shift@1.0.3(transitive)
- Removedstring-length@1.0.1(transitive)
- Removedstring-width@4.2.35.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedstrip-ansi@3.0.16.0.17.1.0(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedsupports-color@2.0.0(transitive)
- Removedtimed-out@2.0.0(transitive)
- Removedunderscore@1.8.3(transitive)
- Removedupdate-notifier@0.3.2(transitive)
- Removeduser-home@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removeduuid@2.0.3(transitive)
- Removedwalk@2.3.15(transitive)
- Removedwalkdir@0.0.10(transitive)
- Removedwhich@2.0.2(transitive)
- Removedwrap-ansi@7.0.08.1.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxdg-basedir@1.0.1(transitive)