File tree Expand file tree Collapse file tree 8 files changed +12186
-2278
lines changed Expand file tree Collapse file tree 8 files changed +12186
-2278
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ name: "CodeQL"
2
2
3
3
on :
4
4
push :
5
- branches : [master ]
5
+ branches : [main ]
6
6
pull_request :
7
7
# The branches below must be a subset of the branches above
8
- branches : [master ]
8
+ branches : [main ]
9
9
schedule :
10
10
- cron : ' 0 22 * * 3'
11
11
25
25
26
26
steps :
27
27
- name : Checkout repository
28
- uses : actions/checkout@v2
28
+ uses : actions/checkout@v3
29
29
with :
30
30
# We must fetch at least the immediate parents so that if this is
31
31
# a pull request then we can checkout the head.
Original file line number Diff line number Diff line change @@ -2,20 +2,20 @@ name: Tests and coverage
2
2
3
3
on :
4
4
push :
5
- branches : [master ]
5
+ branches : [main ]
6
6
pull_request :
7
- branches : [master ]
7
+ branches : [main ]
8
8
9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
14
- node-version : [12.x, 14.x, 15 .x]
14
+ node-version : [14.x, 16 .x]
15
15
steps :
16
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
17
17
- name : Use Node.js ${{ matrix.node-version }}
18
- uses : actions/setup-node@v2
18
+ uses : actions/setup-node@v3
19
19
with :
20
20
node-version : ${{ matrix.node-version }}
21
21
- name : Install dependencies
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ name: Eslint
5
5
6
6
on :
7
7
push :
8
- branches : [master ]
8
+ branches : [main ]
9
9
pull_request :
10
- branches : [master ]
10
+ branches : [main ]
11
11
12
12
jobs :
13
13
build :
@@ -24,10 +24,10 @@ jobs:
24
24
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25
25
restore-keys : |
26
26
${{ runner.os }}-node-
27
- - uses : actions/checkout@v2
27
+ - uses : actions/checkout@v3
28
28
- name : Use Node.js ${{ matrix.node-version }}
29
- uses : actions/setup-node@v1
29
+ uses : actions/setup-node@v3
30
30
with :
31
- node-version : " 14 .x"
31
+ node-version : " 16 .x"
32
32
- run : npm ci
33
33
- run : npm run lint
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ name: Release
5
5
on :
6
6
push :
7
7
branches :
8
- - master
8
+ - main
9
9
- next
10
10
jobs :
11
11
release :
21
21
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22
22
restore-keys : |
23
23
${{ runner.os }}-node-
24
- - uses : actions/checkout@v2
24
+ - uses : actions/checkout@v3
25
25
- name : Setup Node.js
26
- uses : actions/setup-node@v2
26
+ uses : actions/setup-node@v3
27
27
with :
28
28
node-version : ' lts/*'
29
29
Original file line number Diff line number Diff line change @@ -128,8 +128,12 @@ export default async function CreateHtml5BoilerplateCLI(argvs) {
128
128
} ) ;
129
129
const timer = elapsed . start ( ) ;
130
130
const version = ( argv . release || "latest" ) . toString ( ) ;
131
- const targetDir = path . resolve ( argv . _ [ 0 ] || "./" ) ;
131
+ const targetDir = path . resolve ( process . cwd ( ) , argv . _ [ 0 ] || "./" ) ;
132
132
const override = await checkFolder ( targetDir , argv ) ;
133
+ if ( targetDir === "./" ) {
134
+ console . log ( targetDir ) ;
135
+ process . exit ( 0 ) ;
136
+ }
133
137
if ( ! override ) {
134
138
console . log ( chalk . red ( "Aborted" ) ) ;
135
139
return ;
@@ -146,6 +150,7 @@ export default async function CreateHtml5BoilerplateCLI(argvs) {
146
150
) ;
147
151
await fs . copy ( `${ tempDir } /dist` , targetDir ) ;
148
152
const timerDownloaded = timer . get ( ) ;
153
+ console . log ( targetDir ) ;
149
154
await onLoad ( targetDir , version , argv ) ;
150
155
spinner . succeed (
151
156
` ${ nameWithVersion } copied to ${ targetDir } in ${ timerDownloaded } . Have fun!`
You can’t perform that action at this time.
0 commit comments