This repository was archived by the owner on May 10, 2021. It is now read-only.
File tree 3 files changed +23
-15
lines changed
3 files changed +23
-15
lines changed Original file line number Diff line number Diff line change
1
+ const prepareFolders = require ( "./lib/steps/prepareFolders" ) ;
2
+ const copyPublicFiles = require ( "./lib/steps/copyPublicFiles" ) ;
3
+ const copyNextAssets = require ( "./lib/steps/copyNextAssets" ) ;
4
+ const setupPages = require ( "./lib/steps/setupPages" ) ;
5
+ const setupRedirects = require ( "./lib/steps/setupRedirects" ) ;
6
+
7
+ const nextOnNetlify = ( ) => {
8
+ prepareFolders ( ) ;
9
+
10
+ copyPublicFiles ( ) ;
11
+
12
+ copyNextAssets ( ) ;
13
+
14
+ setupPages ( ) ;
15
+
16
+ setupRedirects ( ) ;
17
+ } ;
18
+
19
+ module . exports = nextOnNetlify ;
Original file line number Diff line number Diff line change 9
9
)
10
10
. parse ( process . argv ) ;
11
11
12
+ const nextOnNetlify = require ( "./index" ) ;
12
13
const { logTitle } = require ( "./lib/helpers/logger" ) ;
13
- const prepareFolders = require ( "./lib/steps/prepareFolders" ) ;
14
- const copyPublicFiles = require ( "./lib/steps/copyPublicFiles" ) ;
15
- const copyNextAssets = require ( "./lib/steps/copyNextAssets" ) ;
16
- const setupPages = require ( "./lib/steps/setupPages" ) ;
17
- const setupRedirects = require ( "./lib/steps/setupRedirects" ) ;
18
14
19
- prepareFolders ( ) ;
20
-
21
- copyPublicFiles ( ) ;
22
-
23
- copyNextAssets ( ) ;
24
-
25
- setupPages ( ) ;
26
-
27
- setupRedirects ( ) ;
15
+ nextOnNetlify ( ) ;
28
16
29
17
logTitle ( "✅ Success! All done!" ) ;
Original file line number Diff line number Diff line change 22
22
"author" : " Finn Woelm" ,
23
23
"license" : " MIT" ,
24
24
"files" : [
25
- " /lib"
25
+ " /lib" ,
26
+ " index.js"
26
27
],
27
28
"scripts" : {
28
29
"format" : " prettier --write ." ,
You can’t perform that action at this time.
0 commit comments