Commit 1d03a69 1 parent 0d8dcd1 commit 1d03a69 Copy full SHA for 1d03a69
File tree 4 files changed +30
-6
lines changed
4 files changed +30
-6
lines changed Original file line number Diff line number Diff line change
1
+ # Create Frames.js app
2
+
3
+ Create a new Frames.js app with a single command using predefined templates.
4
+
1
5
## Using npm
2
6
3
7
```
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ export async function create(params) {
104
104
} ) ;
105
105
106
106
if ( wantsToInstallDependencies ) {
107
+ log . message ( `Installing the dependencies...` ) ;
107
108
const result = spawnSync ( pkgManager , [ "install" ] , {
108
109
cwd : destDir ,
109
110
stdio : "ignore" ,
@@ -124,10 +125,10 @@ export async function create(params) {
124
125
`1. Go to the project directory by running: ${ pc . blue ( `cd ./${ projectName } ` ) } `
125
126
) ;
126
127
log . step (
127
- `2. Start the development server by running: ${ pc . blue ( await packageManagerRunCommand ( "dev" ) ) } `
128
+ `2. Start the development server and run the app in debugger by running: ${ pc . blue ( await packageManagerRunCommand ( "dev" ) ) } `
128
129
) ;
129
130
log . step (
130
- `3. Open your browser and go to ${ pc . blue ( `http://localhost:3000 ` ) } to see your app running`
131
+ `3. Open your browser and go to ${ pc . blue ( `http://localhost:3010 ` ) } to see your app running in the debugger `
131
132
) ;
132
133
133
134
outro ( "Done! Your project has been set up! 🎉" ) ;
Original file line number Diff line number Diff line change
1
+ # Frames.js Next example
2
+
3
+ Simple Frames.js app using Next.js.
4
+
5
+ ### Installation
6
+
7
+ ``` sh
8
+ $ npm install
1
9
```
2
- npm install
10
+
11
+ ### Run without debugger
12
+
13
+ Following command will start Next.js app in dev mode.
14
+
15
+ ``` sh
3
16
npm run dev
4
17
```
5
18
6
- Head to http://localhost:3000/api
19
+ ### Run in Debugger
7
20
8
- Open in debugger by running ` npx @frames.js/debugger@latest -u http://localhost:3000/api ` in another terminal.
21
+ Following command will open frames debugger and also run the app in development mode.
22
+
23
+ ``` sh
24
+ $ npm run dev:debug
25
+ ```
Original file line number Diff line number Diff line change 12
12
"@types/node" : " ^18.17.0" ,
13
13
"@types/react" : " ^18.2.0" ,
14
14
"@types/react-dom" : " ^18.2.0" ,
15
+ "@frames.js/debugger" : " ^0.1.5" ,
16
+ "concurrently" : " ^8.2.2" ,
15
17
"typescript" : " ^5.3.3"
16
18
},
17
19
"scripts" : {
18
- "dev" : " next dev" ,
20
+ "dev" : " concurrently \" next dev\" \" frames --url http://localhost:3000 \" " ,
19
21
"start" : " next start" ,
20
22
"build" : " next build" ,
21
23
"lint" : " next lint"
You can’t perform that action at this time.
0 commit comments