This is the command-line interface for the ngBoltJS Application Framework. It can setup a new ngBoltJS project, run an ngBoltJS application in a development environment and deploy to a production environment.
You'll need to have the following software installed to get started.
npm --version
. If the version is less than 3.0, run npm install -g npm
to update.[sudo] npm install -g gulp
to install GulpJs.git
and give you access to ngBoltJS repos.$ npm install -g ng-bolt-cli
This will add the bolt
command to your system.
Check that the CLI was successfully installed by running bolt -V
. You should see version 1.3.0 or higher.
A dependency of ngBoltJS requires the node package node-gyp which may cause issues for some Windows users. Follow the steps below to remedy:
To check your current version of npm run:
npm --version
Install VC++ Build Tools, choose Custom Install, and select both Windows 8.1 and Windows 10 SDKs. Windows 7 also requires .NET Framework 4.5.1.
Install Python 2.7, and add it to your PATH:
npm config set python python 2.7
npm config set msvs_version 2015 - -global
$ bolt [flags] [command]
Set up a new ngBoltJS project. Run the command while inside the directory you want to create your new project directory.
$ bolt new
While inside your project's folder, run gulp build with provided profile
and watch for changes. Profile defaults to development.
$ bolt [profile] [flags] run
While inside your project's folder, run gulp build with provided profile
and compress assets for deployment.
$ bolt <profile> [flags] deploy
-h
, --help
Output usage information.-V
, --version
Output the version number.-f
, --fatal [value]
The error level that will exit the build process. Valid values are error (default), warning and off.-p
, --platform [value]
The platform that the app will be deployed to. Valid values are angular (default), rails, grails and cordova.-e
, --env [value]
The environment for the gulp build. Valid values are development (default) and production.-s
, --serve [boolean]
Run a server as part of a gulp build. This is default behavior when env
is development and platform
is angular.-b
, --beautify [boolean]
Prevent minification of assets.