Skip to content

Commit c9736a4

Browse files
committed
merge
2 parents a1b671a + 25d1703 commit c9736a4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+305
-95
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ typings/
6161
dist
6262
lib
6363
es
64+
site-dist
6465

6566
# 备份文件
6667
/components/test/*

components/icon/demo/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script>
2-
import IconSet from '@/examples/components/IconSet/index'
2+
import IconSet from '@/site/components/IconSet/index'
33
const md = {
44
cn: `# 图标 Icon
55
语义化的矢量图形。

examples/components/api.vue

Lines changed: 0 additions & 17 deletions
This file was deleted.

package-lock.json

Lines changed: 36 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"scripts": {
2525
"start": "NODE_ENV=development ./node_modules/.bin/webpack-dev-server --open --hot",
2626
"test": "karma start test/karma.conf.js --single-run",
27-
"build": "sh build.sh",
27+
"site": "node scripts/run.js site-dist",
28+
"copy": "node scripts/run.js copy-html",
2829
"compile": "node antd-tools/cli/run.js compile",
2930
"dist": "node antd-tools/cli/run.js dist",
3031
"lint": "eslint -c ./.eslintrc --fix --ext .jsx ./components",
@@ -100,6 +101,7 @@
100101
"markdown-it": "^8.4.0",
101102
"marked": "^0.3.7",
102103
"merge2": "^1.2.1",
104+
"mkdirp": "^0.5.1",
103105
"mocha": "^3.2.0",
104106
"postcss": "^6.0.20",
105107
"postcss-loader": "^2.1.2",

scripts/deploy-to-gh-pages.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then
66

77
echo "Starting to update gh-pages\n"
88

9-
rm -rf dist
10-
mkdir dist
9+
rm -rf site-dist
10+
mkdir site-dist
1111

1212
git config --global user.email "[email protected]"
1313
git config --global user.name "Travis"
1414

15-
./node_modules/.bin/webpack --config webpack.site.config.js
15+
npm run site
1616

17-
cd dist
17+
cd site-dist
1818
git init
1919
git add -f .
2020
git commit -m "Travis build"

0 commit comments

Comments
 (0)