Begin port to Node and TypeScript
Showing
.env.example
0 → 100644
.gitignore
0 → 100644
.vscode/extensions.json
0 → 100644
.vscode/launch.json
0 → 100644
.vscode/settings.json
0 → 100644
.vscode/tasks.json
0 → 100644
Dockerfile
0 → 100644
LICENSE
0 → 100644
This diff is collapsed.
copyStaticAssets.ts
0 → 100644
docker-compose.yml
0 → 100644
jest.config.js
0 → 100644
map_mason/.gitignore
deleted
100644 → 0
map_mason/Makefile
deleted
100644 → 0
map_mason/README.md
deleted
100644 → 0
This diff is collapsed.
map_mason/setup.py
deleted
100644 → 0
package.json
0 → 100644
{ | ||
"name": "map_mason", | ||
"version": "0.1.0", | ||
"description": "Map mason", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://git.gmu.edu/srct/where/" | ||
}, | ||
"author": "Kunal Sarkhel", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"start": "npm run serve", | ||
"build": "npm run build-sass && npm run build-ts && npm run tslint && npm run copy-static-assets", | ||
"serve": "node dist/server.js", | ||
"watch-node": "nodemon dist/server.js", | ||
"watch": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"", | ||
"test": "jest --forceExit --coverage --verbose", | ||
"watch-test": "npm run test -- --watchAll", | ||
"build-ts": "tsc", | ||
"watch-ts": "tsc -w", | ||
"build-sass": "node-sass src/public/css/main.scss dist/public/css/main.css", | ||
"watch-sass": "node-sass -w src/public/css/main.scss dist/public/css/main.css", | ||
"tslint": "tslint -c tslint.json -p tsconfig.json", | ||
"copy-static-assets": "ts-node copyStaticAssets.ts", | ||
"debug": "npm run build && npm run watch-debug", | ||
"serve-debug": "nodemon --inspect dist/server.js", | ||
"watch-debug": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run serve-debug\"" | ||
}, | ||
"dependencies": { | ||
"async": "^2.6.0", | ||
"bcrypt-nodejs": "^0.0.3", | ||
"bluebird": "^3.5.1", | ||
"body-parser": "^1.18.2", | ||
"compression": "^1.7.1", | ||
"dotenv": "^4.0.0", | ||
"errorhandler": "^1.5.0", | ||
"express": "^4.16.2", | ||
"express-validator": "^4.3.0", | ||
"fbgraph": "^1.4.1", | ||
"lodash": "^4.17.5", | ||
"lusca": "^1.5.2", | ||
"nodemailer": "^4.4.1", | ||
"pug": "^2.0.0-rc.4", | ||
"request": "^2.83.0", | ||
"request-promise": "^4.2.2", | ||
"titatoggle": "^2.1.2", | ||
"winston": "^2.4.0" | ||
}, | ||
"devDependencies": { | ||
"@types/async": "^2.0.45", | ||
"@types/bcrypt-nodejs": "^0.0.30", | ||
"@types/bluebird": "^3.5.20", | ||
"@types/body-parser": "^1.16.8", | ||
"@types/compression": "^0.0.35", | ||
"@types/dotenv": "^4.0.3", | ||
"@types/errorhandler": "^0.0.32", | ||
"@types/express": "^4.11.1", | ||
"@types/jest": "^22.1.3", | ||
"@types/jquery": "^3.2.17", | ||
"@types/lodash": "^4.14.91", | ||
"@types/lusca": "^1.5.0", | ||
"@types/morgan": "^1.7.35", | ||
"@types/node": "^9.4.6", | ||
"@types/nodemailer": "^4.3.4", | ||
"@types/request": "^2.47.0", | ||
"@types/shelljs": "^0.7.8", | ||
"@types/supertest": "^2.0.4", | ||
"chai": "^4.1.2", | ||
"concurrently": "^3.5.1", | ||
"jest": "^22.0.4", | ||
"node-sass": "^4.7.2", | ||
"nodemon": "^1.13.0", | ||
"shelljs": "^0.8.1", | ||
"supertest": "^3.0.0", | ||
"ts-jest": "^22.0.4", | ||
"ts-node": "^5.0.0", | ||
"tslint": "^5.9.1", | ||
"typescript": "^2.7.2" | ||
} | ||
} |
src/app.ts
0 → 100644
src/controllers/api.ts
0 → 100644
src/controllers/home.ts
0 → 100644
src/public/css/main.scss
0 → 100644
File added
File added
This source diff could not be displayed because it is too large. You can view the blob instead.
File added
File added
File added
File added
This source diff could not be displayed because it is too large. You can view the blob instead.
File added
File added
File added
This diff is collapsed.
src/public/js/lib/jquery-3.1.1.min.js
0 → 100644