Skip to content
starterkit for library development
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.steamer
config
dist
src
test
tools
.babelrc
.editorconfig
.eslintrc.js
.gitignore
.npmignore
README.md
package-lock.json
package.json

README.md

steamer-kit-library

用于开发 类库 的脚手架

快速启动

npm i -g steamerjs steamer-plugin-kit

// 下载脚手架到全局
steamer kit --add https://github.com/steamerjs/steamer-kit-library.git

// 选择并安装脚手架到项目中
steamer kit
  • 或直接从github clone 下来

开发

npm run start

// 打开链接,查看 demo
localhost:9000

ps:此处在开启开发模式下默认会自动打开浏览器。

代码规范扫描

npm run lint

ps:此处的扫描在开发模式下是默认开启的,不需要手动执行lint。

测试

npm run karma

生产代码生成

// 使用 rollup 编译
npm run dist

文章参考

You can’t perform that action at this time.