1.7.1 • Published 5 years ago
mana-cli v1.7.1
mana-cli
Zero configuration webpack runner
With mana-cli you can run any ES20xx js file from anywhere. This is heavily inspired by backpack.
Installation
run npm install -g mana-cli
How to use
Get into the folder, where your javascript lives, and get started by typing mana dev myfile.js
This will start a development instance of your code.
Other starting options
Usage: mana build file
Build a production package
Options:
  -h, --help        output usage informationUsage: mana production file
Build and start a production package
Options:
  -h, --help        output usage informationUsage: mana dev file
start a development server
Options:
  -h, --help  output usage informationUsage: mana stack:create type
create a stack clone into the current workfolder (process.cwd())
for example: 
> mana stack:create api wonderapi
creates an api stack names wonderapi 
Options:
  -h, --help  output usage informationCustom configuration
To add a new config to webpack, you can create a manablox.config.js file.
For example:
module.exports = {
    webpack: (config, options, webpack) => {
        // add a custom alias for imports
        config.resolve = {
            alias: {
                '~~': './'
            }
        }
        return config
    }
}