This repository has been archived by the owner on Aug 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
How to setup development environment
Todd Williams edited this page Feb 14, 2017
·
3 revisions
Firstly, clone v2
branch, there will be 2 essential packages: gluestick
and gluestick-cli
.
Next, install npm && lerna dependencies by running:
npm run install:npm
Lastly, you can either install gluestick-cli
as global module by running:
npm install <path-to-gluestick-cli> -g
or create simlink to gluestick-cli/index.js
file:
ln -s <path-to-gluestick-cli>/index.js /usr/local/bin/gluestick
In case gluestick already exists in /usr/local/bin
run: rm /usr/local/bin/gluestick
and try again.
gluestick-cli
itself only has 2 commands:
-
new <appName>
- mkdirappName
directory, installgluestick
inside it, and run./node_modules/.bin/gluestick
. By default it will install latest npm version of gluestick, however you want probably to install your development version of gluestick, so pass--dev <path>
option new runninggluestick new <appName>
wherepath
is relative path togluestick
directory from insideappName
directory. -
reinstall-dev
- will reinstallgluestick
dependency, based on path ofgluestick
inside project'spackage.json
, so whenever you change development version of gluestick run this command.
Any other commands will be to forwarded to local gluestick
dependency.