https://github.com/fujia-cli/frontend-practice-template
talk is cheap, show me the code
https://github.com/fujia-cli/frontend-practice-template
Last synced: over 1 year ago
JSON representation
talk is cheap, show me the code
- Host: GitHub
- URL: https://github.com/fujia-cli/frontend-practice-template
- Owner: fujia-cli
- License: mit
- Created: 2022-05-16T07:31:42.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T11:44:00.000Z (almost 4 years ago)
- Last Synced: 2025-03-08T08:17:41.111Z (over 1 year ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@fujia/frontend-practice-template
Talk is cheap, Show me the code.
## Getting started
At first, you can install the cli tools by following commands:
```sh
npm i -g @fujia/cli-core
# or using yarn
yarn global add @fujia/cli-core
```
then, to initial a project with the template via above cli tools:
```sh
# step1. create project folder
mkdir [project name]; cd $_;
# step2. initial project via the template
stage init
# step3. select "custom" option.
# step4. input the template info.
# if we want to add custom template, e.g.
# ? Please select the template type: custom
# ? there is no custom template, whether to create one now: Yes
# ? please input template name: frontend-practice
# ? please input the template corresponding package name: @fujia/frontend-practice-template
# ? please input the template version: latest
# ? please input template install command: yarn
# ? please input template start command: npm run dev
```
of course, if you don't want to install @fujia/cli-core in global scope, it can initial a project quickly by following commands:
```sh
# step1. create project folder
mkdir [project name]; cd $_;
# step2. initial project via the template
npm init stage@latest
# the other steps follow above.
```
That's all, the project will install the dependencies and devDependencies, then running automatically.
### Starting Development
1. Start the app in the dev environment:
```sh
npm run dev
```
## Maintainers
- [fujia](https://github.com/fushenguang)
## License
MIT © [frontend-practice-template](https://github.com/fujia-cli/frontend-practice-template)