=========
CLI development tool for widgets / modules
name | version | node |
---|---|---|
bb-lp-cli | 1.0.0-beta.1 | >= 0.10 |
- git
- nodejs
- bower
- curl
- python
- gcc / visual c++
npm i bb-lp-cli -g
Using bblp as binary.
Check all the available commands that you can use.
bblp
or
bblp --help
Check command help
bblp <command> --help
Clone a git repository template. Default is using widget-ng-template
arguments: - url 'https://stash.backbase.com/scm/lp/widget-ng-template.git' options:
- NONE
bblp generate <url>
Start local development brwserSync server on http://localhost:3000/.
arguments:
- NONE
options:
- NONE
bblp start
Tests the widget / module using karma test runner and PhantomJS.
arguments:
- NONE
options:
- -w --watch Watch test files and source files
bblp test
Bundle the widget/module.
arguments:
- NONE
options:
- -s --skipTests Skips unit tests
- -t --withTemplates Bundle HTML templates into build file (for widgets)
bblp build
Bump version in bower.json, README.md and CHANGELOG.md
arguments:
-
VERSION Semver compliant major [X.x.x], minor [x.X.x] or patch [x.x.X]
-
[MESSAGE] Optional bump message options:
-
NONE
bblp bump minor "Some relevant message"
Register bower package to registry endpoint
arguments:
- registry - registry url default is http://launchpad.backbase.com:5678
options:
- NONE
bblp register
Unregister bower package to registry endpoint
arguments:
- registry - registry url default is http://launchpad.backbase.com:5678
options:
- NONE
bblp unregister
This is the default config structure if is not specified otherwise in bower.json file
"config": {
"paths" : {
"scripts": "./scripts",
"docs": "./docs",
"target": "./dist",
"templates": "./templates",
"styles": "./styles",
"test": "./test",
"index": "./index-dev.html"
},
"proxies": {
"/api": "http://localhost:3030/"
}
....
}
Clone and link the repository
git clone git@github.com:Backbase/bb-lp-cli.git && cd bb-lp-cli && npm link
Use the develop branch
npm install backbase/bb-lp-cli#develop
Publish a beta version
git tag x.x.x-beta.0
git tag push --tags
npm login
npm publish --tags beta
npm info
- Windows
http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7
MacOS
- node: 0.12.x, 4.0.0
- npm: 2.x 3.x
Win7
- node: 0.12.x, 4.1.x
- npm: 2.14.x
The cli uses node-gyp
You will also need to install:
-
On Unix:
python
(v2.7
recommended,v3.x.x
is not supported)make
- A proper C/C++ compiler toolchain, like GCC
-
On Mac OS X:
python
(v2.7
recommended,v3.x.x
is not supported) (already installed on Mac OS X)- Xcode
- You also need to install the
Command Line Tools
via Xcode. You can find this under the menuXcode -> Preferences -> Downloads
- This step will install
gcc
and the related toolchain containingmake
- You also need to install the
-
On Windows:
-
Python (
v2.7.3
recommended,v3.x.x
is not supported)- Make sure that you have a PYTHON environment variable, and it is set to drive:\path\to\python.exe not to a folder (Append ;C:\Python27 to the Path variable.) http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7
-
Windows XP/Vista/7:
- Microsoft Visual Studio C++ 2013 (Express version works well)
- If the install fails, try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first
- If you get errors that the 64-bit compilers are not installed you may also need the [compiler update for the Windows SDK 7.1]
- Microsoft Visual Studio C++ 2013 (Express version works well)
-
Windows 7/8:
- Microsoft Visual Studio C++ 2013 for Windows Desktop (Express version works well)
-
All Windows Versions
- For 64-bit builds of node and native modules you will also need the Windows 7 64-bit SDK
- You may need to run one of the following commands if your build complains about WindowsSDKDir not being set, and you are sure you have already installed the SDK:
-
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x86
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\bin\Setenv.cmd" /Release /x64
If you have multiple Python versions installed, you can identify which Python
version node-gyp
uses by setting the '--python' variable:
$ node-gyp --python /path/to/python2.7
If node-gyp
is called by way of npm
and you have multiple versions of
Python installed, then you can set npm
's 'python' config key to the appropriate
value:
$ npm config set python /path/to/executable/python2.7
Note that OS X is just a flavour of Unix and so needs python
, make
, and C/C++.
An easy way to obtain these is to install XCode from Apple,
and then use it to install the command line tools (under Preferences -> Downloads).
Check node-gyp project for more info.