diff --git a/.gitignore b/.gitignore index c99b022f..7ca45418 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,4 @@ -shared/**/*.js -shared/**/*.js.map -server/**/*.js -server/**/*.js.map +server/build/ logs/* !.gitkeep node_modules/ diff --git a/package.json b/package.json index 215d95dd..2b24c660 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "server-build-and-test": "npm run server-build && npm run server-test", "server-start": "nodemon start-server.js", "server-start:dev": "NODE_ENV=test nodemon --watch server/ --inspect start-server.js", - "server-test": "mocha --require source-map-support/register --recursive server/tests", + "server-test": "mocha --require source-map-support/register --recursive server/build/server", "server-test:w": "npm run server-test -- --watch" }, "engines": { diff --git a/server/build/app b/server/build/app new file mode 120000 index 00000000..11b6fc7d --- /dev/null +++ b/server/build/app @@ -0,0 +1 @@ +../../app \ No newline at end of file diff --git a/server/build/node_modules b/server/build/node_modules new file mode 120000 index 00000000..02d9ad64 --- /dev/null +++ b/server/build/node_modules @@ -0,0 +1 @@ +../../node_modules \ No newline at end of file diff --git a/server/tsconfig.json b/server/tsconfig.json index 506ea101..f4fb6794 100644 --- a/server/tsconfig.json +++ b/server/tsconfig.json @@ -4,6 +4,7 @@ "../shared/**/*.ts" ], "compilerOptions": { + "outDir": "build", "sourceMap": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/start-server.js b/start-server.js index 6a07265d..0222fc1a 100755 --- a/start-server.js +++ b/start-server.js @@ -3,4 +3,4 @@ if (!process.env.NODE_ENV) { process.env.NODE_ENV = 'production'; } -require('./server/start-server'); +require('./server/build/server/start-server');