Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andersevenrud/osjs-build-parallel-cli
OS.js Webpack Parallel build CLI module
https://github.com/andersevenrud/osjs-build-parallel-cli
osjs osjs-cli
Last synced: about 1 month ago
JSON representation
OS.js Webpack Parallel build CLI module
- Host: GitHub
- URL: https://github.com/andersevenrud/osjs-build-parallel-cli
- Owner: andersevenrud
- Created: 2020-02-25T00:34:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-25T21:51:28.000Z (almost 5 years ago)
- Last Synced: 2024-11-17T13:50:15.416Z (about 2 months ago)
- Topics: osjs, osjs-cli
- Language: JavaScript
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
[OS.js](https://www.os-js.org/) is an [open-source](https://raw.githubusercontent.com/os-js/OS.js/master/LICENSE) web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.
[![Support](https://img.shields.io/badge/patreon-support-orange.svg)](https://www.patreon.com/user?u=2978551&ty=h&u=2978551)
[![Support](https://img.shields.io/badge/opencollective-donate-red.svg)](https://opencollective.com/osjs)
[![Donate](https://img.shields.io/badge/liberapay-donate-yellowgreen.svg)](https://liberapay.com/os-js/)
[![Donate](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://paypal.me/andersevenrud)
[![Community](https://img.shields.io/badge/join-community-green.svg)](https://community.os-js.org/)# 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](https://github.com/trivago/parallel-webpack) as this spawns independent processes with its own cwd.
## Installation
```bash
npm install osjs-build-parallel-cli
```Then in your `src/cli/index.js` file:
```javascript
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):
```json
{
"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](https://github.com/sponsors/andersevenrud)**
* **Become a [Patreon](https://www.patreon.com/user?u=2978551&ty=h&u=2978551)**
* **Support on [Open Collective](https://opencollective.com/osjs)**
* [Contribution Guide](https://github.com/os-js/OS.js/blob/master/CONTRIBUTING.md)## Documentation
See the [Official Manuals](https://manual.os-js.org/v3/) for articles, tutorials and guides.
## Links
* [Official Chat](https://gitter.im/os-js/OS.js)
* [Community Forums and Announcements](https://community.os-js.org/)
* [Homepage](https://os-js.org/)
* [Twitter](https://twitter.com/osjsorg) ([author](https://twitter.com/andersevenrud))
* [Google+](https://plus.google.com/b/113399210633478618934/113399210633478618934)
* [Facebook](https://www.facebook.com/os.js.org)
* [Docker Hub](https://hub.docker.com/u/osjs/)