donal
2018-04-01 de123104a96fd0924e2dde121e173ac28462dc55
remove html and add package stuff
1 files deleted
3 files modified
25 ■■■■■ changed files
.gitignore 4 ●●● patch | view | raw | blame | history
client/index.html 13 ●●●●● patch | view | raw | blame | history
package.json 5 ●●●●● patch | view | raw | blame | history
server/routes.js 3 ●●●● patch | view | raw | blame | history
.gitignore
@@ -10,4 +10,6 @@
*.log
coverage
.nyc_output
test-results.xml
test-results.xml
package-contents
package-contents.zip
client/index.html
File was deleted
package.json
@@ -67,8 +67,9 @@
    "dev": "./node_modules/.bin/grunt serve",
    "jshint": "./node_modules/.bin/grunt jshint",
    "jshint:ci": "./node_modules/.bin/grunt jshint:ci_server",
    "clean": "rm -rf reports",
    "build": "./node_modules/.bin/grunt build",
    "clean": "rm -rf reports package-contents*",
    "build": "mkdir -p package-contents && cp -vr server Dockerfile package.json package-contents",
    "package": "zip -r package-contents.zip package-contents",
    "test": "node_modules/.bin/nyc node_modules/.bin/mocha server/**/*.spec.js --exit",
    "test:ci": "export MOCHA_FILE='reports/server/mocha/test-results.xml' && export NODE_ENV=ci && node_modules/.bin/nyc node_modules/.bin/mocha server/**/*.spec.js -R mocha-junit-reporter --exit",
    "mongo" : "docker run -i -d --name mongo-local -p 27017:27017 mongo",
server/routes.js
@@ -19,6 +19,7 @@
  // All other routes should redirect to the index.html
  app.route('/*')
    .get(function(req, res) {
      res.sendFile(path.resolve(app.get('appPath') + '/index.html'));
      return res.status(200).json({OK: true, timestamp: Date.now()});
      // res.sendFile(path.resolve(app.get('appPath') + '/index.html'));
    });
};