Added basic testing
This commit is contained in:
parent
66375a134b
commit
77e66ed3b0
3 changed files with 6 additions and 4 deletions
2
build.sh
Normal file → Executable file
2
build.sh
Normal file → Executable file
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
|
|
|
@ -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/"
|
||||
},
|
||||
|
|
|
@ -6,3 +6,4 @@ echo "Distributing Files..."
|
|||
rm -rf firefox/data/* chrome/data/*
|
||||
cp -rf build/* firefox/data/
|
||||
cp -rf build/* chrome/data/
|
||||
rm -rf build/*
|
Reference in a new issue