|
10 | 10 | "scripts": { |
11 | 11 | "lint": "tsc storage.d.ts", |
12 | 12 | "test": "npm run lint && npm run test:node", |
13 | | - "test:node": "NODE_ENV=test nyc --reporter lcov --reporter text mocha --timeout 300000 test/index.js", |
| 13 | + "test:node": "cross-env NODE_ENV=test nyc --reporter lcov --reporter text mocha --timeout 300000 test/index.js", |
14 | 14 | "docs": "jsdoc src README.md package.json -d docs -c .jsdocrc.json", |
15 | 15 | "build:node": "gulp babel-node", |
16 | | - "build:browser": "CLIENT_PLATFORM=Browser webpack --config webpack/browser.js", |
17 | | - "build:rn": "CLIENT_PLATFORM=ReactNative webpack --config webpack/rn.js", |
18 | | - "build:weapp": "CLIENT_PLATFORM=Weapp webpack --config webpack/weapp.js", |
| 16 | + "build:browser": "cross-env CLIENT_PLATFORM=Browser webpack --config webpack/browser.js", |
| 17 | + "build:rn": "cross-env CLIENT_PLATFORM=ReactNative webpack --config webpack/rn.js", |
| 18 | + "build:weapp": "cross-env CLIENT_PLATFORM=Weapp webpack --config webpack/weapp.js", |
19 | 19 | "build": "gulp build && npm run build:live-query", |
20 | 20 | "build:live-query": "export LIVE_QUERY=1 && npm run build:browser && npm run build:rn && npm run build:weapp", |
21 | 21 | "prepublishOnly": "./script/check-version.js" |
|
37 | 37 | "babel-plugin-istanbul": "^2.0.0", |
38 | 38 | "babel-preset-es2015": "^6.3.13", |
39 | 39 | "babel-register": "^6.14.0", |
| 40 | + "cross-env": "^5.1.3", |
40 | 41 | "docdash": "git+https://github.com/leeyeh/docdash.git#leancloud", |
41 | 42 | "eslint": "^2.8.0", |
42 | 43 | "eslint-config-airbnb": "^8.0.0", |
|
0 commit comments