1
Fork 0

Added basic testing

This commit is contained in:
Jake Howard 2015-10-05 15:36:36 +01:00
parent 66375a134b
commit 77e66ed3b0
3 changed files with 6 additions and 4 deletions

2
build.sh Normal file → Executable file
View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/bash
set -e

View file

@ -5,12 +5,13 @@
"main": "src/index.js",
"scripts": {
"create-dirs": "mkdir -p firefox/data chrome/data build/injections build/lib",
"test-extension": "bash scripts/test-extension.sh",
"run": "bash scripts/test-extension.sh",
"build-js": "bash scripts/build-js.sh",
"develop": "npm run lint && npm run build-js && bash scripts/distribute.sh",
"develop": "npm run build-js && bash scripts/distribute.sh",
"build-assets": "env/bin/python3 assets/build-assets.py",
"build-data-files": "bash scripts/data-files.sh",
"build": "npm run create-dirs && npm run build-assets && npm run develop && npm run build-data-files",
"test":"npm run lint",
"lint":"eslint -c node_modules/eslint-config/.eslintrc 'src/injections/' 'src/global.js'",
"clean": "rm -rf firefox/data chrome/data node_modules/ build/ env/"
},

View file

@ -5,4 +5,5 @@ set -e
echo "Distributing Files..."
rm -rf firefox/data/* chrome/data/*
cp -rf build/* firefox/data/
cp -rf build/* chrome/data/
cp -rf build/* chrome/data/
rm -rf build/*