Skip to content

Commit

Permalink
fix build: add "npm run localsite" to built for local total site dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
100pah committed Jan 2, 2020
1 parent 1c0d03c commit 4fa946a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 32 deletions.
7 changes: 4 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ const projectDir = __dirname;
* Usage:
*
* ```shell
* node build.js --env asf
* node build.js --env echartsjs
* node build.js --env dev # the same as "debug"
* node build.js --env asf # build all for asf
* node build.js --env echartsjs # build all for echartsjs.
* node build.js --env localsite # build all for localsite.
* node build.js --env dev # the same as "debug", dev the content of examples.
* # Check `./config` to see the available env
* ```
* ------------------------------------------------------------------------
Expand Down
12 changes: 12 additions & 0 deletions config/env.localsite.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const path = require('path');

module.exports = {
host: 'http://localhost/incubator-echarts-website/examples',
mainSitePath: 'http://localhost/incubator-echarts-website',

// host: 'http://localhost:8000/echarts/incubator-echarts-website/examples',
// mainSitePath: 'http://localhost:8000/echarts/incubator-echarts-website',

blogPath: 'http://efe.baidu.com/tags/ECharts/',
releaseDestDir: path.resolve(__dirname, '../../incubator-echarts-website/examples')
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "node build.js --env dev"
"dev": "node build.js --env dev",
"localsite": "node build.js --env localsite"
},
"devDependencies": {
"argparse": "^1.0.9",
Expand Down
28 changes: 0 additions & 28 deletions release.sh

This file was deleted.

0 comments on commit 4fa946a

Please sign in to comment.