1.2.2 • Published 2 years ago

create-dylan-project v1.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

create-dylan-project PRs Welcome

通过脚本创建 React 项目 无需任何配置

create-dylan-project 可以运行在 Windows、macOS、Linux上 . 如果有些东西不起作用 如果你有问题,可以随时询问 GitHub Issues.

快速上手

npx create-dylan-project init my-app
# 根据问题回答选择你的项目模板
cd my-app
npm start

如果你已经安装过 create-dylan-project 并且全局安装了 npm install -g create-dylan-project, 建议你先进行卸载 npm uninstall -g create-react-app or yarn global remove create-react-app 确保你使用 npx 安装最新版本

(npx 附带npm 5.2+及更高版本,请参阅旧版npm的说明)

然后打开 http://localhost:3000/ 查看你的应用程序. 如果你项目部署生产环境时,可以使用 npm run build.

创建应用程序

您需要在本地开发机器上安装Node 14.0.0或更高版本 我们建议使用最新的LTS版本。你可以用 nvm (macOS/Linux) or nvm-windows 在不同项目之间切换节点版本。

要创建新应用,您可以选择以下方法之一:

npx

npx create-dylan-project init my-app

(npx 是npm 5.2+及更高版本附带的软件包运行工具,请参阅 instructions for older npm versions)

npm / yarn

或者使用 npm / yarn 全局安装 create-dylan-project

#npm

npm install -g create-dylan-project

#yarn 

yarn add --global create-dylan-project

# 使用全局命令进行创建项目

create-dylan-project init my-app

它将在当前文件夹中创建一个名为“my-app”的目录

my-app
├── README.md
├── node_modules
├── package.json
├── .gitignore
├── public
│   ├── favicon.ico
│   ├── index.html
│   └── manifest.json
└── src
    ├── App.css
    ├── App.js
    ├── App.test.js
    ├── index.css
    ├── index.js
    ├── logo.svg
    └── serviceWorker.js
    └── setupTests.js

No configuration or complicated folder structures, only the files you need to build your app.

安装完成后,您可以打开项目文件夹:

cd my-app

在新创建的项目中,可以运行一些内置命令:

npm start or yarn start

以开发模式运行应用程序 打开 http://localhost:3000 to view it in the browser.

如何你更改代码项目将重新加载. 你可以在控制台看到构建错误和eslint警告

1.2.0

2 years ago

1.1.0

2 years ago

1.0.18

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.0.21

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago