Skip to content

Commit bc02e99

Browse files
authored
Add and standardize paranext-core scripts (#9)
1 parent 1e90d37 commit bc02e99

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
"zip": "zip-build dist release --template '%NAME%_%VERSION%.%EXT%' --override",
1919
"package": "npm run build:production && npm run zip",
2020
"package:debug": "cross-env DEBUG_PROD=true npm run package",
21-
"start:core": "cd ../paranext-core && npm run start",
22-
"start": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch\" \"npm:start:core\"",
23-
"start:production": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:start:core\"",
21+
"start": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch\" \"npm:core:start\"",
22+
"start:production": "cross-env MAIN_ARGS=\"--extensions $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:core:start\"",
2423
"lint": "npm run lint:scripts && npm run lint:styles && npm run lint:typecheck",
2524
"lint:scripts": "cross-env NODE_ENV=development eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .",
2625
"lint:styles": "stylelint **/*.{css,scss} --allow-empty-input",
@@ -29,7 +28,12 @@
2928
"lint-fix:scripts": "npm run format && npm run lint:scripts",
3029
"bump-versions": "ts-node ./lib/bump-versions.ts",
3130
"test": "jest",
32-
"test:coverage": "jest --coverage"
31+
"test:coverage": "jest --coverage",
32+
"core:start": "npm --prefix ../paranext-core start",
33+
"core:stop": "npm --prefix ../paranext-core stop",
34+
"core:install": "npm --prefix ../paranext-core install",
35+
"core:pull": "git -C ../paranext-core pull --ff-only",
36+
"core:update": "npm run core:pull && npm run core:install"
3337
},
3438
"browserslist": [],
3539
"peerDependencies": {

0 commit comments

Comments
 (0)