Commit 5294c9a4 authored by 邓晓峰's avatar 邓晓峰

fix: package.json scripts build

parent d4d347db
Pipeline #21294 passed with stages
in 30 minutes 23 seconds
This diff is collapsed.
...@@ -7,7 +7,6 @@ before_script: ...@@ -7,7 +7,6 @@ before_script:
stages: stages:
- install - install
- lint
- package - package
- push - push
...@@ -26,13 +25,6 @@ install: ...@@ -26,13 +25,6 @@ install:
- $NPM_INSTALL == "true" - $NPM_INSTALL == "true"
when: manual when: manual
lint:
stage: lint
script:
- npm run lint
only:
- master
when: manual
package: package:
stage: package stage: package
script: script:
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
"analyze": "node ./internals/scripts/analyze.js", "analyze": "node ./internals/scripts/analyze.js",
"npmcheckversion": "node ./internals/scripts/npmcheckversion.js", "npmcheckversion": "node ./internals/scripts/npmcheckversion.js",
"preinstall": "npm run npmcheckversion", "preinstall": "npm run npmcheckversion",
"prebuild": "npm run build:clean", "prebuild": "npm run lint",
"build": "cross-env NODE_ENV=production node internals/webpack/build.js", "build": "cross-env NODE_ENV=production node internals/webpack/build.js",
"build:clean": "rimraf ./build", "build:clean": "rimraf ./build",
"start": "cross-env NODE_ENV=development node server --port=$port", "start": "cross-env NODE_ENV=development node server --port=$port",
......
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