File tree 3 files changed +10
-35
lines changed
3 files changed +10
-35
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
* @file Main build task; build portal.
3
3
* @author The OpenINF Authors & Friends
4
4
* @license MIT OR Apache-2.0 OR BlueOak-1.0.0
5
- * @module {type ES6Module} build/tasks/format/format-svg
5
+ * @module {type ES6Module} build/tasks/compile/build-portal
6
6
*/
7
7
8
8
import { exec } from '@openinf/portal/build/utils' ;
9
9
10
10
let exitCode = 0 ;
11
- const command = 'JEKYLL_ENV=production bundle exec jekyll build' ;
12
11
13
- try {
14
- exitCode = await exec ( command ) ;
15
- } catch ( p ) {
16
- exitCode = p . exitCode ;
17
- }
12
+ const scripts = [ 'JEKYLL_ENV=production bundle exec jekyll build' ] ;
13
+
14
+ for ( const element of scripts ) {
15
+ exitCode = await exec ( element ) ;
18
16
19
- if ( exitCode !== 0 ) process . exitCode = exitCode ;
17
+ if ( exitCode !== 0 ) process . exitCode = exitCode ;
18
+ }
Original file line number Diff line number Diff line change @@ -30,5 +30,7 @@ scripts:
30
30
toml : tsx build/tasks/format/format-toml.mts
31
31
ts : tsx build/tasks/format/format-ts.mts
32
32
yaml : tsx build/tasks/format/format-yaml.mts
33
- test : nps verify.all
34
33
build : nps compile.buildPortal
34
+ test : nps verify.all
35
+ start : bundle exec jekyll serve --drafts --incremental --force_polling --livereload --baseurl=''
36
+ default : nps start
You can’t perform that action at this time.
0 commit comments