-
Notifications
You must be signed in to change notification settings - Fork 2
Testing
Follow the steps from the habitlab Developer Guide (copied here for reference).
Install (Instructions from Habitlab)
Ensure that you have git and nodejs (version 8.4.0 or higher) installed.
cd habitlab
npm install -g yarn gulp-cli karma-cli webpack vulcanize cspify crisper livescript-async jspm@beta
yarn
gulp listcomponents
gulp build --max-old-space-size=8192
If you instead wish for a release (minified) build, please replace gulp build --max-old-space-size=8192 with the following command:
gulp release --max-old-space-size=8192
If you get a permission error on the npm install -g command, use sudo npm install -g instead. If you get a command-not-found error on yarn or gulp try running /usr/local/bin/yarn and /usr/local/bin/gulp instead.
Once gulp finishes, you will have the chrome extension built in the dist directory.
Next we will sideload the extension. You can sideload the extension by going to chrome://extensions, checking Developer mode, clicking Load Unpacked Extension and selecting the dist directory under the habitlab-chrome folder.
Note this extension isn't yet functional on Firefox. Incompatibilities are listed at https://github.com/habitlab/habitlab/issues/364 However you can sideload the extension by going to about:debugging and temporarily loading it from there. Select the manifest.json file in the dist folder. https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Temporary_Installation_in_Firefox
On subsequent builds, you can just run gulp and leave it running (leave gulp running in the background; it will keep compiling the code and tell you about errors)