Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/haydn/json-api-store. An isomorphic JavaScript library that acts as an in memory data store for JSON API data. particlesystem.com/json-api-store
json-api
Something went wrong. Try again.
941 B · 40 lines
at master
1234567891011121314151617181920212223242526272829303132333435363738394041#!/usr/bin/env bash## Travis CIif [ "$TARGET" = "browser" ]then ./node_modules/.bin/browserify spec/client.js -t babelify | node_modules/.bin/tape-run exit $?elif [ "$TARGET" = "node" ]then ./node_modules/.bin/babel-node spec/server.js exit $?fi## Developmentif [ "$2" = "watch" ]then ./node_modules/.bin/chokidar './src/**/*.js' './spec/**/*.js' -c "./scripts/test $1" exit 0else if [ "$1" = "browser" ] then set -o pipefail echo "== TESTING IN BROWSER ==" ./node_modules/.bin/browserify spec/client.js -d -t babelify | node_modules/.bin/tape-run | node_modules/.bin/faucet exit $? elif [ "$1" = "node" ] then set -o pipefail echo "== TESTING IN NODE ==" ./node_modules/.bin/babel-node spec/server.js | node_modules/.bin/faucet exit $? else echo "Target not specified. Usage examples:" echo " npm test node" echo " npm test browser watch" exit 0 fifi