ebuild-cli

A project for build a project easily

Usage no npm install needed!

<script type="module">
  import ebuildCli from 'https://cdn.skypack.dev/ebuild-cli';
</script>

README

ebuild-cli

🚀一键搭建webpack、babel、eslint、less、commitlint、typescript、vue、react等开发环境

Version Downloads License TopLang issue

English

1. 安装:

npm i -g ebuild-cli

2. 初始化

在你希望创建项目的目录下运行一下命令

ebuild init <project name>

cd <project name>

npm install

安装过程中有以下模板可供选择

  1. 默认模式:包含webpack、babel、eslint、commitlint
  2. css模式:默认模式 + css和less支持
  3. typescript:默认模式 + ts 支持
  4. npm包定制版本: typescript + less + jest + webpack
  5. vue: vue2.x + vue-router + vuex
  6. vue3: vue3 + typescript + vue-router4 + vuex4
  7. react: react17 + typescript + redux + sass
  8. node-es6: node + express + es6 + webpac
  9. 原始模式:不推荐

附加功能: 启动一个开发服务器

ebuild run

QA

如在windos上遇到 C:\xxx\Roaming\npm\ebuild.ps1,因为在此系统上禁止运行脚本。

请CMD执行 set-ExecutionPolicy RemoteSigned