[package.json] rename debug/dev to check, debut to create
This commit is contained in:
82
README.md
82
README.md
@@ -1,81 +1 @@
|
||||
# node.console.web
|
||||
|
||||
时光节点.客户端(Web)
|
||||
|
||||
## GIT项目库导航
|
||||
* 时光链 [tic/_tic](https://git.faronear.org/tic/_tic)
|
||||
* 星云节点 [tic/gnode](https://git.faronear.org/tic/gnode)
|
||||
* 服务端 [tic/node.server](https://git.faronear.org/tic/node.server)
|
||||
* 原型 [tic/node.console.design](https://git.faronear.org/tic/node.console.design)
|
||||
* **<font size=5>客户端 [tic/node.console.web](https://git.faronear.org/tic/node.console.web)</font>**
|
||||
|
||||
|
||||
## Installation Guide | 安装指南
|
||||
|
||||
### Requirements
|
||||
|
||||
+ OS
|
||||
|
||||
+ Linux, Windows, MacOS
|
||||
|
||||
+ nodejs
|
||||
|
||||
+ For support on installing nodejs, see <https://git.faronear.org/lib/coding/src/master/JavaScript/nodejs.md>
|
||||
|
||||
+ git
|
||||
|
||||
+ For support on installing git, see <https://git.faronear.org/lib/coding/src/master/VCS/git.md>
|
||||
|
||||
+ node.server
|
||||
|
||||
+ See <https://git.faronear.org/tic/node.server/src/master/doc/Installation.md>
|
||||
|
||||
### Preparation
|
||||
|
||||
2.1 Download source code/下载源码
|
||||
|
||||
```
|
||||
git clone https://git.faronear.org/tic/node.console.web
|
||||
cd node.console.web
|
||||
git checkout master
|
||||
```
|
||||
|
||||
2.2 Install dependencies/安装依赖
|
||||
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Launch
|
||||
|
||||
1. `lint` to format files
|
||||
|
||||
```
|
||||
npm run lint
|
||||
```
|
||||
|
||||
2. `dev` to test source code and 'hot-start' in a local web server
|
||||
|
||||
```
|
||||
npm run dev
|
||||
```
|
||||
|
||||
3. `debut` to pack source code into html/css/js for distribution
|
||||
|
||||
```
|
||||
npm run debut
|
||||
```
|
||||
|
||||
4. `deploy` to upload distribution to a TIC node host
|
||||
|
||||
```
|
||||
npm run deploy -- -p '远程登录密码' -k "用户私钥文件" -u '远程登录用户' -D '远程路径' -d '远程文件夹' -H '远程主机' -P '远程端口'
|
||||
```
|
||||
通常只需例如 `npm run deploy -- -p '密码' -H 'us.test.bittic.net'`
|
||||
|
||||
5. `serve` to launch web server on a TIC node host
|
||||
|
||||
登录到一台 TIC 节点主机,下载并进入代码目录,然后启动 web 服务:
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
# vic.admin.vue ^ VIC.管理端.Vue
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vue-cli-service serve",
|
||||
"debut": "vue-cli-service build",
|
||||
"check": "vue-cli-service serve",
|
||||
"create": "vue-cli-service build",
|
||||
"deploy": "node ./node_modules/deployer/deploy.js",
|
||||
"serve": "cross-env NODE_ENV=production node server.js",
|
||||
"serve.sup": "cross-env NODE_ENV=production supervisor -i data.log,node_modules,dist -- server.js",
|
||||
|
||||
Reference in New Issue
Block a user