mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 21:02:13 +03:00
.. | ||
build | ||
client | ||
types | ||
utils | ||
.editorconfig | ||
.gitignore | ||
babel.config.js | ||
config.js | ||
index.html | ||
package-lock.json | ||
package.json | ||
postcss.config.js | ||
prod.tsconfig.json | ||
README.md | ||
server.ts | ||
tsconfig.json | ||
tslint.json |
Commands
dev
- Start developing environment (starts both server and setup client middleware for server).build
- Builds to /dist folder. Compiles (from ts to js) server right in dist folder, client files compiled in /dist/src.
Deploy process
Node version >= 11, because used fs async methods which experimental now
git pull
npm i
npm run build
set NODE_ENV=production
, also you can specify port byset PORT=%port_number%
cd dist
npm i
node server