element-up-theme
Theme generator cli tool for Element and ElementUp.
The current version is compatible with element-ui@2.x and element-up@0.x. For element-ui@1.x, please check out the legacy branch.
Installation
install local or global
npm i element-up-theme -D
install up-theme-chalk
npm i element-up-theme-chalk -D# or from github npm i https://github.com/savoygu/up-theme-chalk -D
CLI
# init variables file eut --init [file path] # watch then build eut --watch [--config variable file path] [--out theme path] # build eut [--config variable file path] [--out theme path] [--minimize]
Node API
var eut = // watch modeeut // buildeut
Options
config
Variable file path, default ./element-up-variables.css
.
out
Theme output path, default ./up-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-up-theme
by putting it in package.json:
License
MIT