Create story packages. Heavily inspired by facia-tool
Install each of the things listed:
Mac:
brew install git
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profileThis is needed on Mac only:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"See .tool-versions
Ubuntu:
sudo apt-get install openjdk-8-jdkMac: Use sdkman or install from Oracle web site
Ubuntu:
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/nodeMac:
brew install nodeUbuntu/Mac:
sudo npm -g install grunt-cliUbuntu/Mac:
npm -g install [email protected]
jspm registry config githubIt'll ask for a GitHub access token. Go to GitHub Settings -> Applications and generate new token. Ensure only the public_repo scope is checked.
Mac:
brew install nginxMac:
brew install sbtpip install awscliYou will need the following credentials:
- cmsFronts - developer
- workflow - S3 Read
- capi - API Gateway invocation
./setup.shThis will fetch the required config files, set the nginx mappings, and install the Javascript dependencies.
./scripts/start.shNow check that you are up and running by hitting the following URL
https://packages.local.dev-gutools.co.uk
Unit tests run with grunt, karma and jasmine.
grunt testRuns the tests once in PhantomJS and exits with an error if tests fails
grunt test --no-single-runStarts karma in debug mode, you can connect your browser at http://localhost:9876?debug.html
You can run a single test going to http://localhost:9876/debug.html?test=collections, spec files are inside public/test/spec.
You need to have version node version 4.1 or higher installed to be able to run the tests.
Enjoy!