Skip to content

Commit

Permalink
Merge pull request #5 from scramjetorg/fix/faster-build
Browse files Browse the repository at this point in the history
Faster build
  • Loading branch information
a-tylenda authored Jan 30, 2024
2 parents 5d3e464 + 8a37d78 commit bd02542
Show file tree
Hide file tree
Showing 105 changed files with 6,061 additions and 400 deletions.
5 changes: 2 additions & 3 deletions js/args-config-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/args-to-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
10 changes: 2 additions & 8 deletions js/audio2text-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"tsc": "./node_modules/typescript/bin/tsc",
"postinstall": "npm run tsc",
"build": "tsc -p tsconfig.json",
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild": "cp -r package.json dist/ && (cd dist && npm i --omit=dev) && cp src/utils/song.wav dist/utils && cp src/utils/config.json dist/utils ",
"pack": "si seq pack ./dist/",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist ./*.tar.gz"
"clean": "rm -rf ./dist"
},
"keywords": [],
"author": "Piotr",
Expand Down
5 changes: 2 additions & 3 deletions js/avengers-names-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
],
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/big-file-sequence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/can-keep-alive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"main": "index.js",
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/checksum-sequence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
],
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/clickup-add-issues/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"keywords": [],
"author": "Scramjet <open-source@scramjet.org>",
Expand Down
5 changes: 2 additions & 3 deletions js/csv-transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "This sequence performs transformation on received csv chunks",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "eryk.solecki@scramjet.org",
"license": "ISC",
Expand Down
9 changes: 4 additions & 5 deletions js/debug-args/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"version": "0.22.0",
"main": "index",
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"clean": "rm -rf ./dist .bic_cache",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js"
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist"
},
"engines": {
"node": ">=14"
Expand Down
5 changes: 2 additions & 3 deletions js/delay-out-in-a/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
],
"scripts": {
"build:refapps": "node ../../scripts/build-all.js && cp real-hrtime.node dist/",
"postbuild:refapps": "yarn prepack && yarn packseq",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/delay-out-in-b/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
],
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "cp real-hrtime.node dist/ && yarn prepack && yarn packseq",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"postbuild:refapps": "cp real-hrtime.node dist/ && yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/durability-preservation-event/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.ts",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"scramjet": {
"image": "node",
Expand Down
4 changes: 2 additions & 2 deletions js/durability-preservation-tcp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Sequence downloads following files every second:

build everything:
```
yarn install && yarn build && yarn prepack
yarn install && yarn build
```

## Run test
Expand Down Expand Up @@ -40,7 +40,7 @@ yarn test:bdd --name "PT-003 TC-003"
prepare sequence
```
✘-INT ~/github/scramjet-csi-dev/packages/reference-apps/durability-preservation
$ yarn build && yarn prepack
$ yarn build
```

start host
Expand Down
5 changes: 2 additions & 3 deletions js/durability-preservation-tcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.ts",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"scramjet": {
"image": "node",
Expand Down
2 changes: 1 addition & 1 deletion js/durability-preservation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Sequence downloads following files every second:

build everything:
```
yarn install && yarn build && yarn prepack
yarn install && yarn build
```

## Run test
Expand Down
5 changes: 2 additions & 3 deletions js/durability-preservation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.ts",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/endless-names-output/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"main": "index.js",
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/event-sequence-2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache",
"clean": "rm -rf ./dist",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq"
"postbuild:refapps": "yarn packseq"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/event-sequence-v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "This sequnce responds for event, wait 1 sec and exits.",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
5 changes: 2 additions & 3 deletions js/event-sequence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
9 changes: 4 additions & 5 deletions js/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"version": "0.22.0",
"main": "index",
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"clean": "rm -rf ./dist .bic_cache",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js"
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist"
},
"engines": {
"node": ">=14"
Expand Down
9 changes: 4 additions & 5 deletions js/exception-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"version": "0.22.0",
"main": "index",
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"clean": "rm -rf ./dist .bic_cache",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js"
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist"
},
"engines": {
"node": ">=14"
Expand Down
5 changes: 2 additions & 3 deletions js/flood-stdout-sequence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache",
"clean": "rm -rf ./dist",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq"
"postbuild:refapps": "yarn packseq"
},
"author": "",
"license": "ISC",
Expand Down
9 changes: 4 additions & 5 deletions js/forever/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"version": "0.22.0",
"main": "index",
"scripts": {
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"clean": "rm -rf ./dist .bic_cache",
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js"
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist"
},
"engines": {
"node": ">=14"
Expand Down
7 changes: 3 additions & 4 deletions js/generate-data-topic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "Sending 128bytes of data to topic for given duration of time ",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
7 changes: 3 additions & 4 deletions js/git-read-issues/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "Sequence that reads github issues and store them in a topic prepared to use in clickup-add-issues",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"build:refapps": "tsc -p tsconfig.json",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"keywords": [
"github",
Expand Down
5 changes: 2 additions & 3 deletions js/healthy-sequence/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
"description": "",
"main": "index.js",
"scripts": {
"prepack": "PACKAGES_DIR=js node ../../scripts/publish.js",
"build:refapps": "node ../../scripts/build-all.js",
"postbuild:refapps": "yarn prepack && yarn packseq",
"postbuild:refapps": "yarn packseq",
"packseq": "PACKAGES_DIR=js node ../../scripts/packsequence.js",
"clean": "rm -rf ./dist .bic_cache"
"clean": "rm -rf ./dist"
},
"author": "Scramjet <open-source@scramjet.org>",
"license": "ISC",
Expand Down
Loading

0 comments on commit bd02542

Please sign in to comment.