File tree 4 files changed +49
-46
lines changed
4 files changed +49
-46
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ to rapidly create efficient and feature-reach [PWA](https://developers.google.co
45
45
Use the command below to create a new app using starter template:
46
46
47
47
``` bash
48
- > npx sao nuxt-community/nuxt7 nuxt7-app
48
+ > npx sao@1 nuxt-community/nuxt7 nuxt7-app
49
49
```
50
50
51
51
## ▶️ Examples
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ prompts ( ) {
3
+ return [
4
+ {
5
+ name : 'name' ,
6
+ message : 'Project name' ,
7
+ default : this . outFolder
8
+ } ,
9
+ {
10
+ name : 'description' ,
11
+ message : 'Project description' ,
12
+ default : ``
13
+ }
14
+ ]
15
+ } ,
16
+
17
+ templateData ( ) {
18
+ return {
19
+ name : this . answers . name ,
20
+ description : this . answers . description
21
+ }
22
+ } ,
23
+
24
+ actions : [
25
+ {
26
+ type : 'add' ,
27
+ files : '**'
28
+ } ,
29
+ { type : 'move' ,
30
+ patterns : {
31
+ gitignore : '.gitignore'
32
+ }
33
+ }
34
+ ] ,
35
+
36
+ async completed ( ) {
37
+ this . gitInit ( )
38
+ await this . npmInstall ( )
39
+ this . showProjectTips ( )
40
+ }
41
+ }
Original file line number Diff line number Diff line change 2
2
3
3
> <%= description %>
4
4
5
- ## Build Setup
5
+ ## Development
6
6
7
7
``` bash
8
8
# Install dependencies
9
- $ < %= _.pm % > install
9
+ < % if (context.npmClient === ' yarn ' ) { % > yarn add < % } else { % > npm i < % } % > < %= name % >
10
10
11
- # Serve with hot reload at localhost:3000
12
- $ < %= _.pm %> run dev
11
+ # Serve with hot- reload at localhost:3000
12
+ < %= context.npmClient %> run dev
13
13
14
14
# Build for production and launch server
15
- $ < %= _.pm %> run build
16
- $ < %= _.pm %> start
15
+ < %= context.npmClient %> run build
16
+ < %= context.npmClient %> start
17
17
18
18
# Generate static project
19
- $ < %= _.pm %> run generate
19
+ < %= context.npmClient %> run generate
20
20
` ` `
21
21
22
22
For detailed explanation on how things work, checkout the [Nuxt.js docs](https://github.com/nuxt/nuxt.js).
You can’t perform that action at this time.
0 commit comments