1 Star 0 Fork 4

逆风飞扬/SimpRead

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
npmw.cmd 1.59 KB
一键复制 编辑 原始数据 按行查看 历史
Kenshin 提交于 2016-12-24 16:01 . Add npmw batch file.
::===========================================================
:: SimpRead : SimpRead development/publish environment
:: HOST : https://github.com/kenshin/simpread
:: Author : Kenshin<kenshin@ksria.com>
:: Version : 0.0.1
::===========================================================
@echo off
::===========================================================
:: Initialize
::===========================================================
if "%1" == "run" (
if "%2" == "develop" (
goto develop
) else if "%2" == "publish" (
goto publish
) else (
@echo npmw noly support command: `npmw run develop` and `npmw run publish`.
goto quit
)
) else (
@echo npmw noly support command: `npmw run develop` and `npmw run publish`.
goto quit
)
::===========================================================
:: develop : Development environment
::===========================================================
:develop
@echo webpack --devtool=source-map --progress --colors --watch
set NODE_ENV=development
webpack --devtool=source-map --progress --colors --watch
goto quit
::===========================================================
:: publish : Production environment
::===========================================================
:publish
@echo webpack -p --progress --colors
set NODE_ENV=production
webpack -p --progress --colors
goto quit
::===========================================================
:: quit : Quit batch script.
::===========================================================
:quit
@echo npmw batch quit.
exit /b 0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ivu99/SimpRead.git
git@gitee.com:ivu99/SimpRead.git
ivu99
SimpRead
SimpRead
master

搜索帮助