add tests

This commit is contained in:
b1ek 2023-02-19 01:03:09 +10:00
parent 9e9e8149cc
commit 6ac670a25b
Signed by: blek
GPG Key ID: 14546221E3595D0C
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
PACKAGES="gulp-cli gulper gulp" PACKAGES="gulp-cli gulper gulp mocha"
if [[ $APP_DEBUG == 'true' ]]; then if [[ $APP_DEBUG == 'true' ]]; then
npm i npm i

View File

@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "mocha './test'",
"dev": "gulp serve_dev", "dev": "gulp serve_dev",
"prod": "node index.js" "prod": "node index.js"
}, },
@ -12,12 +12,15 @@
"author": "", "author": "",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"crc-32": "^1.2.2",
"dotenv": "^16.0.3", "dotenv": "^16.0.3",
"express": "^4.18.2", "express": "^4.18.2",
"express-session": "^1.17.3",
"glob": "^8.1.0", "glob": "^8.1.0",
"gulp": "^4.0.2",
"js-base64": "^3.7.5",
"mocha": "^10.2.0",
"pug": "^3.0.2", "pug": "^3.0.2",
"gulp": "^4.0.2" "unit.js": "^2.1.1"
},
"devDependencies": {
} }
} }