Commit da7085ef authored by lipengcheng 's avatar lipengcheng

init

parent 2f4f5b46
# laihua-toolkit
> node 12.18.3
> npm 6.14.6
来画工具宝。
## Project setup
```
yarn install
npm install
```
### 本地开发
```
npm run serve
```
### 测试环境打包
```
npm run passports
```
### Compiles and hot-reloads for development
### 生产环境打包
```
yarn run serve
npm run build
```
### Compiles and minifies for production
### 打包后本地预览
```
yarn run build
npm run start
```
### Run your tests
### 格式校验及自动修复
修复eslint报错:
```
yarn run test
npm run fix
```
### Lints and fixes files
修复prettier报错
```
yarn run lint
npm run prettier
```
### Customize configuration
......
{
"name": "laihua-toolkit",
"version": "1.0.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"passports": "vue-cli-service build --mode passports",
"build": "vue-cli-service build",
"start": "serve -l 3018 dist",
"lint": "vue-cli-service lint",
"fix": "eslint --fix --ext .js,.vue src",
"prettier": "prettier --write \"src/**/*.js\" \"src/**/*.vue\" ./*.js",
"commit": "git cz",
"release:init": "standard-version --first-release ",
"release:patch": "standard-version --release-as patch ",
"release:minor": "standard-version --release-as minor ",
"release:major": "standard-version --release-as major "
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "echo 'pushing....'",
"...": "..."
}
},
"lint-staged": {
"**/*.{js,vue}": [
"prettier --write",
"eslint --fix"
]
},
"dependencies": {
"axios": "^0.20.0",
"core-js": "^3.6.5",
"register-service-worker": "^1.7.1",
"vue": "^2.6.11",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.0",
"@vue/cli-plugin-eslint": "^4.5.0",
"@vue/cli-plugin-pwa": "^4.5.0",
"@vue/cli-service": "^4.5.0",
"@vue/eslint-config-prettier": "^6.0.0",
"babel-eslint": "^10.1.0",
"commitizen": "^4.2.0",
"cz-conventional-changelog": "^3.2.1",
"element-ui": "^2.13.2",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^6.2.2",
"husky": "^3.1.0",
"lint-staged": "^10.2.11",
"node-sass": "^4.12.0",
"prettier": "^1.19.1",
"sass-loader": "^8.0.2",
"standard-version": "^9.0.0",
"vue-template-compiler": "^2.6.11"
"name": "laihua-toolkit",
"version": "1.0.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"passports": "vue-cli-service build --mode passports",
"build": "vue-cli-service build",
"start": "serve -l 3018 dist",
"lint": "vue-cli-service lint",
"fix": "eslint --fix --ext .js,.vue src",
"prettier": "prettier --write \"src/**/*.js\" \"src/**/*.vue\" ./*.js",
"commit": "git cz",
"release:init": "standard-version --first-release ",
"release:patch": "standard-version --release-as patch ",
"release:minor": "standard-version --release-as minor ",
"release:major": "standard-version --release-as major "
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "echo 'pushing....'",
"...": "..."
}
},
"lint-staged": {
"**/*.{js,vue}": [
"prettier --write",
"eslint --fix"
]
},
"dependencies": {
"axios": "^0.20.0",
"core-js": "^3.6.5",
"register-service-worker": "^1.7.1",
"vue": "^2.6.11",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.0",
"@vue/cli-plugin-eslint": "^4.5.0",
"@vue/cli-plugin-pwa": "^4.5.0",
"@vue/cli-service": "^4.5.0",
"@vue/eslint-config-prettier": "^6.0.0",
"babel-eslint": "^10.1.0",
"commitizen": "^4.2.0",
"cz-conventional-changelog": "^3.2.1",
"element-ui": "^2.13.2",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^6.2.2",
"husky": "^3.1.0",
"lint-staged": "^10.2.11",
"node-sass": "^4.12.0",
"prettier": "^1.19.1",
"sass-loader": "^8.0.2",
"serve": "^11.3.2",
"standard-version": "^9.0.0",
"vue-template-compiler": "^2.6.11"
}
}
console.log(`process.env1:`, process.env)
// console.log(`process.env1:`, process.env)
console.log(`process.env.NODE_ENV1:`, process.env.NODE_ENV)
// dsf
//dfdfdfsdf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment