Skip to content

Commit df6680d

Browse files
🏗✨:add nps start task #1282
PR URL: #1282 Reviewed-by: OpenINF-bot <openinfbot@open.inf.is> --------- Signed-off-by: Derek Lewis <dereknongeneric@open.inf.is> Co-Authored-By: OpenINF-bot <openinfbot@open.inf.is>
1 parent 5c7bf21 commit df6680d

File tree

3 files changed

+10
-35
lines changed

3 files changed

+10
-35
lines changed

.vscode/tasks.json

-26
This file was deleted.

build/tasks/compile/build-portal.mts

+7-8
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
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

88
import { exec } from '@openinf/portal/build/utils';
99

1010
let 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+
}

package-scripts.yml

+3-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)