Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

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> - mkdir appName directory, install gluestick 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 running gluestick new <appName> where path is relative path to gluestick directory from inside appName directory.
  • reinstall-dev - will reinstall gluestick dependency, based on path of gluestick inside project's package.json, so whenever you change development version of gluestick run this command.

Any other commands will be to forwarded to local gluestick dependency.

Clone this wiki locally