frontend-cli2.0.0-beta.3 • Public • Published
Toolkit for rapid development of React and Angular 2 apps.
- Create the app folder
mkdir app_namecd app_name
Optionally set app options in the
Install frontend-cli locally
npm install frontend-cli
frontend-cli will create app base file structure after installing oneself.
frontend-cli includes itself a scaffolding utility, bundler and development webserver which running by the
bin/fe executable at the root of the app directory.
Generate new code:
bin/fe generate <scaffold> <name> [..options]
Remove earlier generated code:
bin/fe destroy <scaffold> <name>
html— index.html page template
stylelint— stylelint config file
Build an app:
bin/fe build [..options]
-e— build for the desired enviromnent, choices are:
production. Default is
development. If omitted bundler will try to get this setting from
-w— build in the watch mode.
-c— path to the Webpack config file options from which will override the internal config. If omitted bundler will try to load options from
Webpackfilefiles in the root of the app directory.
-o— options object to pass to the external config if it is a function. Behaves just like the Webpack's CLI
Run the development server which will watch your code and perform hot swapping on its changes:
bin/fe server [..options]
-p— set server port. Default is
-b— set host bind server to. Default is
-c— same as in the bundler.
-o— same as in the bundler.