1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-27 00:14:03 +03:00
guide/front
avele 469b5b5790
Front/structure refactor and building reconfigure (#277)
* DefferedPromise refactor

* Moved defferedPromise to utils folder

* Base url moved to app file

* Store modules states rewrittten according to vue doc recommendations

* Deffered promise usage moved

* removed unused packages in entries

* Structure refactor, easier building, prod building configured, tsconfig reconfigure removed useless packages

* Update front/index.html

Co-Authored-By: avele <34437766+avele@users.noreply.github.com>

* Update front/postcss.config.js

Co-Authored-By: avele <34437766+avele@users.noreply.github.com>

* Comment rewritten
2019-04-18 01:52:43 +04:00
..
build Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
client Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
types Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
utils Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
.editorconfig Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
.gitignore Fully replaced frontend part. Now everything written in typescript. 2018-09-02 23:26:15 +03:00
babel.config.js Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
config.js Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
index.html Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
package-lock.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
package.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
postcss.config.js Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
prod.tsconfig.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
README.md Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
server.ts Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
tsconfig.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00
tslint.json Front/structure refactor and building reconfigure (#277) 2019-04-18 01:52:43 +04:00

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 by set PORT=%port_number%
  • cd dist
  • npm i
  • node run server