0.5.0 • Published 4 years ago
osjs-build-parallel-cli v0.5.0
OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
OS.js Webpack Parallel build CLI module (WIP)
This CLI extensions supports building distro, packages and custom targets in parallel.
Please note that this is a work in progress. Also note that this is not the same as parallel-webpack as this spawns independent processes with its own cwd.
Installation
npm install osjs-build-parallel-cli
Then in your src/cli/index.js
file:
const pbCli = require('osjs-build-parallel-cli');
// Add this to your tasks array in exports
module.exports = {
tasks: [pbCli]
};
Optionally in your package.json
file add the following to your script section to make a shortcut (see usage below for more examples on usage):
{
"scripts": {
"build:parallel": "osjs-cli build:parallel"
}
}
Usage
Please note that using watch on a larger amount of targets leads to insane memory usage. Use sparingly
# For help
npx osjs-cli build:parallel --help
# Run standard (only distro)
npx osjs-cli build:parallel
# Run standard (only distro) with watch
npx osjs-cli build:parallel --watch
# Run with packages
npx osjs-cli build:parallel --with-packages
# Run with custom paths
npx osjs-cli build:parallel --with ~/home/user/osjs-client
Contribution
- Sponsor on Github
- Become a Patreon
- Support on Open Collective
- Contribution Guide
Documentation
See the Official Manuals for articles, tutorials and guides.
Links
0.5.0
4 years ago