Skip to content

Commit

Permalink
add debugger packagejson command
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangxuan committed Oct 23, 2019
1 parent 484ba82 commit d4e4a02
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frondend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
"test:pptr": "npm run build:development && jest --config ./pptr.jest.config.json",
"test:bff": "jest ./bff/e2e.test.js",
"test:bff:watch": "jest --watch ./bff/e2e.test.js",
"build:development": "webpack --config ./webpack.dev.config.js",
"build:production": "webpack --config ./webpack.prod.config.js"
"publish.js": "node ./publish.js",
"publish.js:beta": "DEPLOY_TYPE=beta node ./publish.js",
"downloadIndexHtml.js": "node ./downloadIndexHtml.js",
"downloadIndexHtml.js:beta": "DEPLOY_TYPE=beta node ./downloadIndexHtml.js",
"build:development": "rimraf ./dist && webpack --config ./webpack.dev.config.js",
"build:production": "rimraf ./dist && webpack --config ./webpack.prod.config.js"
},
"keywords": [],
"author": "",
Expand Down
4 changes: 4 additions & 0 deletions frondend/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ const fs = require('fs')
const path = require('path')
const Oss = require('ali-oss')

if (!process.env.CI) {
require('dotenv').config({ path: path.resolve(__dirname, '../.env') })
}

const {
DEPLOY_TYPE,
F2E_ASSETS_ALI_OSS_ACCESS_KEY_ID,
Expand Down

0 comments on commit d4e4a02

Please sign in to comment.