Commit 60137511 authored by Rosanny Sihombing's avatar Rosanny Sihombing
Browse files

re-structure

parent 73862282
...@@ -5,7 +5,7 @@ pages-testing: ...@@ -5,7 +5,7 @@ pages-testing:
- npm run clean - npm run clean
- npm run build - npm run build
- rm -rf ./built/views - rm -rf ./built/views
- cp -R ./views ./built - cp -R ./src/views ./built
- cat $configfiledev > ./built/config/config.js - cat $configfiledev > ./built/config/config.js
- "pm2 delete --silent project || :" - "pm2 delete --silent project || :"
- pm2 start ./built/app.js --name=project - pm2 start ./built/app.js --name=project
......
import helpers from '../utils/helpers' import helpers from '../src/utils/helpers'
import gitlab from '../controller/gitlab' import gitlab from '../src/controller/gitlab'
test('[/utils/helpers] convert string to array', () => { test('[/utils/helpers] convert string to array', () => {
expect(helpers.stringToArray('foo')).toStrictEqual(["foo"]) expect(helpers.stringToArray('foo')).toStrictEqual(["foo"])
......
...@@ -14,10 +14,11 @@ ...@@ -14,10 +14,11 @@
"url": "https://transfer.hft-stuttgart.de/gitlab/m4lab_tv1/project-page.git" "url": "https://transfer.hft-stuttgart.de/gitlab/m4lab_tv1/project-page.git"
}, },
"scripts": { "scripts": {
"start:dev": "nodemon app.ts", "start:dev": "nodemon ./src/app.ts",
"start": "nodemon ./built/app.js", "start": "nodemon ./built/app.js",
"build": "tsc -build", "build": "tsc -build",
"clean": "tsc -build --clean", "clean": "tsc -build --clean",
"check-types": "tsc",
"test": "jest", "test": "jest",
"cleancode": "ts-standard --fix" "cleancode": "ts-standard --fix"
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment