stargate: Update scripts to add type definitions back into VCS

This commit is contained in:
willclarktech 2021-02-03 14:44:02 +00:00
parent 084affebc8
commit 8f3d317855
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
build/
build/**/*.js
build/**/*.js.map
dist/
docs/

View File

@ -28,11 +28,11 @@
"format-text": "prettier --write --prose-wrap always --print-width 80 \"./*.md\"",
"lint": "eslint --max-warnings 0 \"**/*.{js,ts}\"",
"lint-fix": "eslint --max-warnings 0 \"**/*.{js,ts}\" --fix",
"move-types": "shx rm -rf ./types/* && shx mv build/types/* ./types && shx rm -rf ./types/testdata ./types/*.spec.d.ts ./types/*/*.spec.d.ts \"./types/codec/**/*[!.d].ts\"",
"remove-test-types": "shx rm -rf build/*.spec.d.ts build/*/*.spec.d.ts",
"format-types": "prettier --write --loglevel warn \"./build/**/*.d.ts\"",
"prebuild": "shx rm -rf ./build",
"build": "tsc",
"postbuild": "yarn format-types",
"postbuild": "yarn remove-test-types && yarn format-types",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"test-node": "node jasmine-testrunner.js",
"test-firefox": "yarn pack-web && karma start --single-run --browsers Firefox",