@cloudide/plugin-packager
A packager tool for huawei-cloudide's plugin.
Usage
install cloudide plugin-packager
npm install @cloudide/plugin-packager --save-dev
run plugin-packager
npx cloudide-pack
or you can add "pack": "cloudide-pack"
in scripts, then run pack script
npm run pack
Help
cloudide-pack -h
show help of tool.cloudide-pack
packing in default mode (development mode), in this mode, all files are packed.cloudide-pack -p
pack in production mode, all unnecessary files are excluded.cloudide-pack -i <files>
, input which file you want to include, or use batch matching with quotation marks.`.cloudide-pack -e <files>
, input which file you want to exclude, or use batch matching with quotation marks.`.- You can also create a 'pack-config.json' file in workspace, directly to set files you want to include or exclude like: { "exclude": [], "include": [] }.
cloudide-pack -s
, skip npm install before packing.`.
Batch matching rule
- *.js only match js files in current dir.
- **/*.js match all js files.
- path/*.js match js files in path.
- !*.js exclude js files in current dir.
- .{jpg,png,gif} means jpg, png or gif.`
- src/**/* match all files in src.