Skip to content

Commit

Permalink
[ Refactor ] Migrate "Module map" from CLI parameter to JSON configur…
Browse files Browse the repository at this point in the history
…ation

[ Optimize ]  Simplify source code based on Node-Toolkit
[ Optimize ]  Upgrade to Babel 7 & update other dependencies
  • Loading branch information
TechQuery committed Sep 18, 2018
1 parent 0e5b541 commit f9d524c
Show file tree
Hide file tree
Showing 40 changed files with 28,131 additions and 31,542 deletions.
17 changes: 11 additions & 6 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ amd-bundle -a \

Options:

-V, --version output the version number
-a, --include-all Bundle all dependencies (include those in "./node_modules/")
-m, --module-map <name pairs> Map to replace some dependencies to others (For example: old_1:new_1,/some_/i:new_2)
-c, --command-line Bundle as a command script
-s, --std-out Write into "stdout" without logs
-h, --help output usage information
-V, --version output the version number
-a, --include-all Bundle all dependencies (include those in "./node_modules/")
-c, --command-line Bundle as a command script
-s, --std-out Write into "stdout" without logs
-h, --help output usage information

#### Configuration

[Example](https://github.com/TechQuery/AMD_bundle.js/blob/master/package.json#L71)

Key/value of option `moduleMap` is same as [the basic parameters of `String.prototype.replace()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Parameters).

#### JS Module

Expand Down
Loading

0 comments on commit f9d524c

Please sign in to comment.