This repository was archived by the owner on Jan 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -28,16 +28,17 @@ Now, navigate to [http://localhost:3000/](http://localhost:3000/) and you should
28
28
29
29
![ image] ( https://user-images.githubusercontent.com/15242567/45272197-d1e09900-b479-11e8-8788-062b8659182b.png )
30
30
31
- ## Batteries included
31
+ ## Batteries included : battery :
32
32
33
33
An app bootstrapped with ` create-nteract-app ` comes with:
34
34
35
- - @nteract components for interactive computing apps/pages
36
- - webpack and babel configuration through next.js
37
- - server rendering of ` ./pages `
35
+ - [ @nteract ] ( https://github.com/nteract ) components for interactive computing apps/pages
36
+ - automatic webpack and babel configuration through next.js
38
37
- live hot reloading
39
38
- mdx
40
- This means you can write your app in ` js ` or ` markdown ` or even both! :smile :
39
+ - Every .js or .md file in ` ./pages ` becomes a route that gets automatically processed and rendered!
40
+
41
+ This means you can write your app in ` js ` or ` markdown ` or even both! :smile :
41
42
42
43
Your new nteract app will have the following strucure,
43
44
@@ -57,3 +58,25 @@ Your new nteract app will have the following strucure,
57
58
│ └── test-setup.js
58
59
└── yarn.lock
59
60
```
61
+
62
+ ## Commands :robot :
63
+
64
+ 1 . ` yarn dev `
65
+
66
+ This will start the next.js server on port ` 3000 ` by default. Note, to change the port, run ` yarn dev -p YOUR_PORT `
67
+
68
+ 2 . ` yarn test `
69
+
70
+ This will kick off the [ Jest] ( https://jestjs.io/ ) test suite. By default, we have included a snapshot test.
71
+
72
+ 3 . ` yarn build `
73
+
74
+ This will produce an optimize set of code for production.
75
+
76
+ 4 . ` yarn start `
77
+
78
+ This will run your optimized app on port 3000.
79
+
80
+ 5 . ` yarn export `
81
+
82
+ This will export your code as a static HTML app.
You can’t perform that action at this time.
0 commit comments