File tree Expand file tree Collapse file tree 3 files changed +10
-35
lines changed
Expand file tree Collapse file tree 3 files changed +10
-35
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22 * @file Main build task; build portal.
33 * @author The OpenINF Authors & Friends
44 * @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
66 */
77
88import { exec } from '@openinf/portal/build/utils' ;
99
1010let exitCode = 0 ;
11- const command = 'JEKYLL_ENV=production bundle exec jekyll build' ;
1211
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 ) ;
1816
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:
3030 toml : tsx build/tasks/format/format-toml.mts
3131 ts : tsx build/tasks/format/format-ts.mts
3232 yaml : tsx build/tasks/format/format-yaml.mts
33- test : nps verify.all
3433 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