inula/packages/create-inula
* 69a5a3ffd3 Match-id-6581b39d9ec7262e7735e2fa4ed74226a967e407 2023-09-18 21:03:11 +08:00
..
bin Match-id-1e825da12d2291994d87d3cb9fe9293765b02258 2023-09-18 19:45:53 +08:00
lib Match-id-6581b39d9ec7262e7735e2fa4ed74226a967e407 2023-09-18 21:03:11 +08:00
.editorconfig Match-id-bc804e27c47473b985e5ff38051dbe1b463948f8 2023-07-28 16:27:55 +08:00
.gitignore Match-id-bc804e27c47473b985e5ff38051dbe1b463948f8 2023-07-28 16:27:55 +08:00
.prettierrc.js Match-id-1e825da12d2291994d87d3cb9fe9293765b02258 2023-09-18 19:45:53 +08:00
README.md Match-id-6581b39d9ec7262e7735e2fa4ed74226a967e407 2023-09-18 21:03:11 +08:00
index.js Match-id-1e825da12d2291994d87d3cb9fe9293765b02258 2023-09-18 19:45:53 +08:00
package.json Match-id-3d6ba1acf37deca4e2dcb46c502006880da23bd5 2023-09-15 16:20:31 +08:00

README.md

使用脚手架创建lnulaJS项目

步骤一: 启动Inula脚手架

在您需要创建项目的目录下执行以下命令:

npx create-inula <项目名>
步骤二: 选择需要项目模板

执行启动命令后,您将收到以下回显信息询问,可根据回显信息进行相应的输入:

Need to install the following packages:create-inula@1.0.0
Ok to proceed? (y) y
? Please select the template (Use arrow keys)
> lnulaJS-antd
  Simple-app

在创建项目过程中脚手架提供了两种模板供开发者选择Simple-app以及lnulaJS-antd。

  • Simple-app已默认安装Inula开发者可以直接在项目中专注于核心代码的开发。
  • InulaJS-antd除了安装Inula之外还内置了路由、国际化、页面组件等常用能力开发者可以直接使用。

基于上述模板的创建的项目特性我们更建议您使用InulaJS-antd的方法构建项目。

步骤三:选择打包方式

在创建项目过程中有两种打包方式供选择,您可以根据自己使用习惯选择

? Please select the build type (Use arrow keys)
 > webpack
   vite

如果您不知如何选择可分别参考Vite 文档以及webpack文档

至此可以使用Inula框架通过以下命令npm run start命令运行项目你会看到简单的inula的示例。当然你也可以基于inula框架构建您的web项目。