Skip to content

Commit

Permalink
init: fix compile config
Browse files Browse the repository at this point in the history
  • Loading branch information
warmhug committed Jun 5, 2018
1 parent 36f8976 commit 3f9ce31
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 24 deletions.
20 changes: 5 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,18 @@ node_js:
env:
matrix:
- TEST_TYPE=lint
- TEST_TYPE=dist
- TEST_TYPE=compile
- TEST_TYPE=test:web
- TEST_TYPE=test:rn
- TEST_TYPE=test

script:
- |
if [ "$TEST_TYPE" = lint ]; then
npm run lint
elif [ "$TEST_TYPE" = dist ]; then
npm run dist && \
LIB_DIR=dist npm run test:web -- -w 2
elif [ "$TEST_TYPE" = compile ]; then
npm run compile && \
LIB_DIR=lib npm run test:web -- -w 2 && \
LIB_DIR=lib npm run test:rn -- -w 2 && \
LIB_DIR=es npm run test:web -- -w 2
LIB_DIR=es npm run test:rn -- -w 2
elif [ "$TEST_TYPE" = test:web ]; then
npm run test:web -- -w 2 --coverage && \
bash <(curl -s https://codecov.io/bash) -cF web
elif [ "$TEST_TYPE" = test:rn ]; then
npm run test:rn -- -w 2 --coverage && \
LIB_DIR=lib npm run test -- -w 2 && \
LIB_DIR=es npm run test -- -w 2
elif [ "$TEST_TYPE" = test ]; then
npm run test -- -w 2 --coverage && \
bash <(curl -s https://codecov.io/bash) -cF rn
fi
2 changes: 0 additions & 2 deletions components/accordion/style/index.tsx

This file was deleted.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"@types/react-native-drawer-layout": "1.3.3",
"antd": "3.x",
"antd-mobile-demo-data": "^0.2.0",
"antd-tools": "^4.0.2",
"antd-tools": "^4.0.6",
"babel-eslint": "^7.2.3",
"babel-plugin-import": "^1.6.2",
"babel-plugin-transform-runtime": "^6.23.0",
Expand All @@ -64,8 +64,10 @@
"bisheng-plugin-description": "^0.1.1",
"bisheng-plugin-react": "^0.6.0",
"bisheng-plugin-toc": "^0.4.0",
"classnames": "^2.2.1",
"concurrently": "^3.4.0",
"cross-env": "^5.0.1",
"css-split-webpack-plugin": "^0.2.5",
"dora-plugin-upload": "^0.3.1",
"enquire.js": "^2.1.1",
"enzyme": "^3.0.0",
Expand Down Expand Up @@ -103,18 +105,17 @@
"typescript": "~2.4.0"
},
"scripts": {
"lint": "npm run tslint && npm run srclint && npm run stylelint && npm run applint",
"lint": "npm run tslint && npm run srclint && npm run applint",
"srclint": "eslint site scripts --ext '.js,.jsx'",
"tslint": "antd-tools run ts-lint && npm run compile && rm -rf lib",
"tslint-fix": "antd-tools run ts-lint-fix && npm run compile && rm -rf lib",
"applint": "eslint rn-kitchen-sink --ext '.js'",
"pre-publish": "npm run test:all && node ./scripts/build-less-entry",
"pre-publish": "npm run test:all",
"prepublish": "antd-tools run guard",
"prepare": "antd-tools run guard",
"prepublishOnly": "antd-tools run guard",
"test": "jest --config .jest.native.js",
"test:all": "./scripts/test-all.sh",
"dist": "cross-env BABEL_ENV=dist antd-tools run dist",
"compile": "cross-env BABEL_ENV=dist antd-tools run compile",
"watch-tsc": "antd-tools run watch-tsc",
"clean": "antd-tools run clean",
Expand Down
1 change: 0 additions & 1 deletion scripts/test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set -x

npm run lint && \
npm run dist && \
npm run compile && \
LIB_DIR=lib npm run test -- --no-cache && \
LIB_DIR=es npm run test -- --no-cache && \
Expand Down
2 changes: 0 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
"target": "es6",
"noImplicitAny": true,
"types": [
"classnames",
"react",
"react-dom",
"react-native"
]
},
Expand Down

0 comments on commit 3f9ce31

Please sign in to comment.