OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
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.
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"
}
}
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
- Sponsor on Github
- Become a Patreon
- Support on Open Collective
- Contribution Guide
See the Official Manuals for articles, tutorials and guides.