@bitberry/bankai-revolutions-cli
Version:
zero config webpack runner
91 lines (57 loc) • 1.93 kB
Markdown
With bankai-cli you can run any ES20xx js file from anywhere. This is heavily inspired by [backpack](https://github.com/jaredpalmer/backpack).
run ```npm install -g bankai-revolutions-cli```
Get into the folder, where your javascript lives, and get started by typing ```bankai dev myfile.js```
This will start a development instance of your code.
```
zero config webpack runner
Options:
-v,--version output the version number
-h, --help output usage information
Commands:
build [options] [file] Build a production package
dev [file] start a development server
```
```
Build a production package
Options:
-r, --run start build after compiling
-o, --run-only only start a ready built package
-s, --as-service run the package with nodemon
-h, --help output usage information
```
```
start a development server
Options:
-h, --help output usage information
```
To add a new config to webpack, you can create a ```bankai.config.js``` file.
For example:
```js
module.exports = {
webpack: (config, options, webpack) => {
// add a custom alias for imports
config.resolve = {
alias: {
'~~': './'
}
}
return config
}
}
```
1. Make sure the most recent version is published to npm
2. Run the workflow "Publish Docker Images" manally to deploy all Docker images
1. Redeploy all Docker images with the "Publish Docker Images" workflow
2. Check whether image is working now
3. If not: Run the clear-registry.sh script on the Docker Server and repeat step 1