3个稳定版本
1.2.3 | 2020年5月14日 |
---|---|
1.2.2 | 2020年5月12日 |
#8 in #ecmascript
210KB
6K SLoC
Scrumple
一个快速(且灵活)的JavaScript打包器,用于开发Origami组件。
为什么?
快速!🦀
在开发过程中,我们希望编译尽可能快。
Origami特定
Scrumple基于一个现在已经删除的工具Pax,但我们添加了对bower_components
的支持,并对Origami组件进行了代码优化。例如,在构建npm组件时,它默认使用browser
字段。
灵活
这是一个开发者工具,而不是生产软件。它的设计是为了在构建组件时给开发者提供超快的反馈,而不是用于构建生产应用程序。
用法
Usage: scrumple [options] <input> [output]
scrumple [-h | --help | -v | --version]
Options:
-i, --input <input>
Use <input> as the main module.
-o, --output <output>
Write bundle to <output> and source map to <output>.map.
Default: '-' for stdout.
-m, --map <map>
Output source map to <map>.
-I, --map-inline
Output source map inline as data: URI.
-M, --no-map
Suppress source map output when it would normally be implied.
-w, --watch
Watch for changes to <input> and its dependencies.
-W, --quiet-watch
Don't emit a bell character for errors that occur while watching.
Implies --watch.
-x, --external <module1,module2,...>
Don't resolve or include modules named <module1>, <module2>, etc.;
leave them as require('<module>') references in the bundle. Specifying
a path instead of a module name does nothing.
--external-core
Ignore references to node.js core modules like 'events' and leave them
as require('<module>') references in the bundle.
-b, --for-bower
Use bower.json instead of package.json
-N, --allow-npm-dev-deps
When using --for-bower, this forces packages in the project's
package.json#devDependencies to be resolved through npm. This is is for
creating testing bundles that use npm-only dependencies
-h, --help
Print this message.
-v, --version
Print version information.
依赖项
~5–14MB
~173K SLoC