Commit 2aabdbe2 authored by lipengcheng 's avatar lipengcheng

x

parent ff6ed226
image: node:12.16.3-alpine
variables:
IMAGE_NAME: 'mould-nuxt'
IMAGE_NAME: '<%= pkgName %>'
IMAGE_TAG: 'latest'
ROBOT_WEBHOOK_URL: 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=b314c032-b7e2-4781-b2fa-f0bd26b75ebd'
VIEW_URL: 'https://beta.laihua.com/mobile'
PIPELINES_URL: 'https://gitlab.ilaihua.com/laihua-web/mould-nuxt/pipelines'
PIPELINES_URL: 'https://gitlab.ilaihua.com/laihua-web/<%= pkgName %>/pipelines'
stages:
- stage-test
......
......@@ -16,7 +16,7 @@ COPY ./static ./static
COPY ./nuxt.config.js ./
COPY ./config ./config
EXPOSE 3020
EXPOSE <%= port %>
CMD [ "yarn","uat:start" ]
# CMD yarn $MODE:start
......
[toc]
# mould-nuxt
# <%= pkgName %>
## 项目介绍
> node 8.11.0+ (推荐12.18.3)
......
......@@ -2,15 +2,15 @@ const serverConf = {
dev: {
HOSTNAME: '0.0.0.0',
// HOSTNAME: 'localhost',
PORT: 3021 || '0'
PORT: <%= port %> || '0'
},
uat: {
HOSTNAME: '0.0.0.0' || 'localhost',
PORT: 3021
PORT: <%= port %>
},
pro: {
HOSTNAME: '0.0.0.0' || 'localhost',
PORT: 3021
PORT: <%= port %>
}
}
const SERVER_CONF = serverConf[process.env.ENV_MODE] || {}
......
{
"name": "mould-nuxt",
"version": "1.0.0",
"description": "<%= description %>",
"private": true,
"files": [
"打包需要的文件"
......
{
"name": "<%= pkgName %>",
"version": "1.0.0",
"author": "<%= author %>",
"description": "<%= description %>",
"private": true,
"files": [
"打包需要的文件"
],
"scripts": {
"dev": "cross-env ENV_MODE=dev NODE_ENV=dev nuxt",
"uat:build": "cross-env ENV_MODE=uat NODE_ENV=uat nuxt build",
"uat:start": "cross-env ENV_MODE=uat NODE_ENV=uat nuxt start",
"pro:build": "cross-env ENV_MODE=pro NODE_ENV=pro nuxt build",
"pro:start": "cross-env ENV_MODE=pro NODE_ENV=pro nuxt start",
"generate": "nuxt generate",
"lint:js": "eslint --ext .js,.vue",
"lint:style": "stylelint **/*.{vue,css,scss,html,htm}",
"lint": "yarn lint:js && yarn lint:style",
"fix:js": "eslint --fix --ext .js,.vue \"**\"",
"fix:style": "stylelint --fix **/*.{vue,css,scss}",
"fix": "yarn fix:js && yarn fix:style ",
"prettier": "prettier --write \"**/*.js\" \"**/*.vue\"",
"format": "yarn prettier && yarn fix",
"commit": "git-cz",
"release:init": "standard-version -f",
"release:patch": "standard-version -r patch",
"release:minor": "standard-version -r minor",
"release:major": "standard-version -r major",
"release:push": "git push --follow-tags",
"analyze": "nuxt build -a"
},
"dependencies": {
"@nuxt/content": "^1.9.0",
"@nuxtjs/axios": "^5.12.2",
"@nuxtjs/dayjs": "^1.2.1",
"@nuxtjs/proxy": "^2.0.1",
"@nuxtjs/pwa": "^3.0.2",
"@nuxtjs/style-resources": "^1.0.0",
"@nuxtjs/toast": "^3.3.1",
"clipboard": "^2.0.6",
"core-js": "^3.6.5",
"cross-env": "^7.0.2",
"eslint-plugin-prettier": "^3.1.4",
"lint-staged": "^10.5.3",
"nuxt": "^2.14.6",
"swiper": "^3.4.2",
"vant": "^2.11.1",
"vue-bus": "^1.2.1"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@ls-lint/ls-lint": "^1.9.2",
"@nuxtjs/eslint-config": "^3.1.0",
"@nuxtjs/eslint-module": "^2.0.0",
"@nuxtjs/stylelint-module": "^4.0.0",
"babel-eslint": "^10.1.0",
"babel-plugin-import": "^1.13.3",
"commitizen": "^4.2.0",
"cz-customizable": "^6.3.0",
"eslint": "^7.10.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-nuxt": "^1.0.0",
"husky": "^4.3.0",
"postcss-pxtorem": "^5.1.1",
"prettier": "^2.1.2",
"sass": "^1.29.0",
"sass-loader": "^10.1.0",
"standard-version": "^9.0.0",
"stylelint": "^13.8.0",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recess-order": "^2.3.0",
"stylelint-config-sass-guidelines": "^7.1.0",
"stylelint-config-standard": "^20.0.0",
"stylelint-selector-bem-pattern": "^2.1.0",
"vconsole": "^3.3.4"
}
}
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