Skip to content

Commit

Permalink
Migrate server to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Nov 26, 2018
1 parent 725b46e commit 13e2441
Show file tree
Hide file tree
Showing 25 changed files with 405 additions and 188 deletions.
13 changes: 11 additions & 2 deletions ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,24 @@ module.exports = {
name: "frog-ui",
script: "./node_modules/@vue/cli-service/bin/vue-cli-service.js",
args: "serve",
watch: true,
env_local: {
"MOCK": true,
}
},
{
name: "compile-server",
script: "tsc",
cwd: "server",
args: "--watch",
env_local: {
"MOCK": true,
}
},
{
name: "frog-server",
script: "server",
script: "index.js",
watch: true,
cwd: "dist/server/",
env_local: {
"MOCK": true,
}
Expand Down
151 changes: 150 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"name": "npmfrog",
"version": "1.0.0-alpha.3",
"scripts": {
"start": "pm2 serve --name \"frog-ui-static\" dist 8000 && pm2 start ecosystem.config.js --only frog-server",
"dev": "pm2 start",
"dev-local": "pm2 start --env local",
"build": "npm run stop && vue-cli-service build",
"start": "pm2 serve --name \"frog-ui-static\" dist/webui 8000 && pm2 start ecosystem.config.js --only frog-server",
"dev": "npm run copy && pm2 start",
"dev-local": "npm run copy && pm2 start --env local",
"copy": "cp-cli server/mock dist/server/mock",
"compile": "cd server && tsc",
"build": "npm run stop && npm run compile && npm run copy && vue-cli-service build --dest dist/webui",
"zip": "bestzip tmp/webui.zip dist/*",
"logs": "pm2 logs",
"stop": "pm2 stop ecosystem.config.js",
Expand Down Expand Up @@ -37,10 +39,19 @@
"@babel/polyfill": "^7.0.0-beta.49",
"@fortawesome/fontawesome-free": "^5.3.0",
"@mdi/font": "^2.5.94",
"@types/body-parser": "^1.17.0",
"@types/cors": "^2.8.4",
"@types/express": "^4.16.0",
"@types/fs-extra": "^5.0.4",
"@types/morgan": "^1.7.35",
"@types/node-emoji": "^1.8.0",
"@types/showdown": "^1.7.5",
"@types/tar": "^4.0.0",
"@vue/cli-plugin-typescript": "^3.0.0-rc.5",
"@vue/cli-service": "^3.0.0-rc.5",
"ajv": "^6.5.3",
"bestzip": "^2.0.0",
"cp-cli": "^1.1.2",
"node-sass": "^4.9.0",
"release-it": "^7.6.0",
"sass-loader": "^7.0.1",
Expand Down
Loading

0 comments on commit 13e2441

Please sign in to comment.