Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script 命令优化 #34

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

MuYunyun
Copy link
Member

@MuYunyun MuYunyun commented Apr 25, 2019

借助 pipixia 来优化 script 命令, 使站点的可移植性更强。修改了如下几个命令。

  • "start": "bisheng start -c ./site/bisheng.config.js",
  • "site": "bisheng build -c ./site/bisheng.config.js",
  • "deploy": "node ./scripts/publishdoc.js",
yarn start: 启动站点
yarn build: 打包站点
yarn deploy: 发布站点

@MuYunyun MuYunyun requested review from snakeUni and anyexinglu April 25, 2019 00:43
@anyexinglu
Copy link
Contributor

为啥存在pipixia & bisheng?
我以为有pipixia就不需要安装bisheng到package.json里了。
且 “借助 pipixia 来优化 script 命令“ —— 目前未见pipixia用于script命令

你是不是应该WIP?

Copy link
Contributor

@anyexinglu anyexinglu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WIP?

Copy link
Member Author

@MuYunyun MuYunyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package.json 里面没有 bisheng 的, bisheng 这个命令来自 pipixia 这个包。后续的文档的打包发版也会切换过来。项目的打包简单点使用现有的 gulp 体系,复杂点看看是否再弄一个类似 ant-tools 的包。

@@ -23,17 +23,16 @@
"license": "MIT",
"main": "dist/snake-design.js",
"scripts": {
"start": "yarn build-dll && webpack-dev-server --config webpack/webpack.dev.conf.js --colors",
"build": "tsc -p tsconfig.json && webpack --config webpack/webpack.prod.conf.js",
"start": "bisheng start -c ./site/bisheng.config.js",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anyexinglu 这里的 bisheng 来自 pipixia 这个包~

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

soga

@MuYunyun MuYunyun changed the title script 命令优化 [WIP]: script 命令优化 Apr 25, 2019
@MuYunyun MuYunyun changed the title [WIP]: script 命令优化 script 命令优化 May 5, 2019
@MuYunyun MuYunyun requested a review from anyexinglu May 5, 2019 20:12
@MuYunyun MuYunyun self-assigned this May 5, 2019
@MuYunyun MuYunyun added the enhancement New feature or request label May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants