Skip to content

Commit

Permalink
use RUN_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Apr 21, 2016
1 parent ace39a4 commit 2483ca5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const eslintrc = {
}
};

if (process.env.ANTD === 'DEMO') {
if (process.env.RUN_ENV === 'DEMO') {
eslintrc.globals = {
React: true,
ReactDOM: true,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@
"deploy": "rm -rf node_modules && node scripts/install.js && npm run just-deploy",
"just-deploy": "npm run site && node scripts/deploy.js",
"lint": "npm run srclint && npm run demolint && npm run lesshint",
"srclint": "ANTD=SRC eslint components test site scripts ./*.js --ext '.js,.jsx'",
"demolint": "ANTD=DEMO eslint components/*/demo/*.md --ext '.md'",
"srclint": "RUN_ENV=SRC eslint components test site scripts ./*.js --ext '.js,.jsx'",
"demolint": "RUN_ENV=DEMO eslint components/*/demo/*.md --ext '.md'",
"lesshint": "lesshint style/ -e 'style/+(core|mixins)/+(base|iconfont|normalize|layouts|compatibility|grid).less'",
"eslint-fix": "eslint --fix components test site scripts ./*.js --ext '.js,.jsx' && eslint-tinker ./components/*/demo/*.md",
"test": "npm run lint && atool-build && npm run jest",
Expand Down

0 comments on commit 2483ca5

Please sign in to comment.