bml-workstand-theme-cli
Theme generator cli tool for Element.
Installation
install local or global
npm i bml-workstand-theme-cli -D
install bml-workstand-theme-default
npm i bml-workstand-theme-default -D# or from github npm i https://github.com/ElementUI/theme-default -D
CLI
# init variables file bml-cli --init [file path] # watch then build bml-cli --watch [--config variable file path] [--out theme path] # build bml-cli [--config variable file path] [--out theme path] [--minimize]
Node API
var bmlCli = // watch modebmlCli // buildbmlCli
Options
config
Variable file path, default ./bml-theme-variables.css
.
out
Theme output path, default ./theme
.
minimize
Compressed file.
browsers
set browsers, default ['ie > 9', 'last 2 versions']
.
watch
watch variable file changes then build.
components
A lists of components that you want to generate themes for. All by default.
Config
You can configure some options in element-theme
by putting it in package.json:
ENV
node : v13.8.0
Build
npm publish : 修改发布
Apply
- run: mkdir $theme
- run: cd $theme
- run: npm install bml-workstand-theme-default -s
- run: bml-cli --init
- user: modify css file by user
- run: bml-cli -m
License
MIT