Skip to content

Commit

Permalink
E Update dist to use localised dist scripts (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwloka authored May 11, 2023
2 parents cba6f08 + 5a9a0de commit 98a29fc
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 1 deletion.
10 changes: 10 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
"build": {
"dependsOn": ["^build"],
"outputs": ["{projectRoot}/lib"]
},
"dist": {
"dependsOn": [
"^dist"
]
},
"publish-npm": {
"dependsOn": [
"^publish-npm"
]
}
},
"defaultBase": "develop"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test:watch": "nx run-many --target=test:watch --parallel=10",
"test:update": "nx run-many --target=test:update",
"test:e2e": "nx run-many --target=test:e2e",
"dist": "yarn clean --skip-nx-cache && yarn lint && yarn test --skip-nx-cache && cross-env-shell NODE_ENV=production \"yarn build\" --skip-nx-cache && yarn test:e2e --skip-nx-cache",
"dist": "nx run-many --target=dist --skip-nx-cache",
"prepare-release": "yarn dist && yarn lerna version --force-publish",
"prepare-prerelease": "yarn dist && yarn lerna version prerelease -y --force-publish",
"publish-npm": "lerna run --stream publish-npm",
Expand Down
1 change: 1 addition & 0 deletions packages/addons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lint:fix": "eslint \"{src,test,addons}/**/*.ts\" --fix",
"build": "tsc",
"watch": "tsc --watch",
"dist": "yarn clean && yarn test && cross-env-shell NODE_ENV=production \"yarn build\"",
"test": "jest --verbose --coverage --color",
"test:update-snapshots": "yarn test -u",
"test:watch": "jest --watch",
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"build": "tsc && yarn bundle",
"watch": "tsc --watch",
"bundle": "esbuild src/cli.ts --bundle --outfile=bin/magellan.js --target=node16 --platform=node --minify --tree-shaking=true --external:typescript",
"dist": "yarn clean && yarn test && cross-env-shell NODE_ENV=production \"yarn build\"",
"dev:compile": "ts-node src/index.ts compile ../../../qs-magellan-sandbox/packages/react/src/functions -s ../../../qs-magellan-sandbox/packages/react/server-esm -p ../../../qs-magellan-sandbox/packages/react/tsconfig.json",
"dev:serve": "ts-node src/index.ts serve ../../../qs-magellan-sandbox/packages/react/lib -s ../../../qs-magellan-sandbox/packages/react/server-esm",
"test": "jest --color --verbose --coverage",
Expand All @@ -59,6 +60,7 @@
"@types/node": "16",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"cross-env": "^7.0.3",
"esbuild": "^0.15.13",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lint:fix": "eslint \"{src,test,addons}/**/*.ts\" --fix",
"build": "tsc",
"watch": "tsc --watch",
"dist": "yarn clean && yarn test && cross-env-shell NODE_ENV=production \"yarn build\"",
"test": "jest --color --verbose --coverage",
"test:watch": "jest --color --watch",
"test:update-snapshots": "yarn test -u",
Expand All @@ -42,6 +43,7 @@
"@types/jest": "^29.5.1",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"cross-env": "^7.0.3",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-alias": "^1.1.2",
Expand Down
1 change: 1 addition & 0 deletions packages/java/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"lint": "mvn process-sources -B -o",
"lint:fix": "mvn process-sources -B -o",
"build": "mvn install -DskipTests -Dcheckstyle.skip -B",
"dist": "yarn clean && yarn test && yarn build && yarn test:e2e",
"test": "mvn test -B -Dcheckstyle.skip",
"test:update": "mvn test -Dcheckstyle.skip",
"test:e2e": "mvn test -Pe2e -B -Dcheckstyle.skip",
Expand Down
2 changes: 2 additions & 0 deletions packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lint:fix": "eslint \"{src,test,addons}/**/*.ts\" --fix",
"build": "tsc",
"watch": "tsc --watch",
"dist": "yarn clean && yarn test && cross-env-shell NODE_ENV=production \"yarn build\"",
"dev": "ts-node src/cli/index.ts serve ../../../qs-magellan-sandbox/packages/react/lib ../../../qs-magellan-sandbox/packages/react/server-esm",
"test": "jest --color --verbose --coverage",
"test:watch": "jest --color --watch",
Expand Down Expand Up @@ -61,6 +62,7 @@
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"cross-env": "^7.0.3",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-alias": "^1.1.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"lint:fix": "eslint \"{src,test,addons}/**/*.ts\" --fix",
"build": "tsc",
"watch": "tsc --watch",
"dist": "yarn clean && yarn test && cross-env-shell NODE_ENV=production \"yarn build\"",
"test": "jest --color --verbose --coverage",
"test:watch": "jest --color --watch",
"test:update-snapshots": "yarn test -u",
Expand All @@ -40,6 +41,7 @@
"@types/jest": "^29.2.2",
"@typescript-eslint/eslint-plugin": "^5.42.1",
"@typescript-eslint/parser": "^5.42.1",
"cross-env": "^7.0.3",
"eslint": "^8.27.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-alias": "^1.1.2",
Expand Down
1 change: 1 addition & 0 deletions packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"lint:fix": "eslint \"{src,test,addons}/**/*.ts\" --fix",
"build": "tsc",
"watch": "tsc --watch",
"dist": "yarn clean && cross-env-shell NODE_ENV=production \"yarn build\" && yarn test:e2e",
"test:update-snapshots": "yarn test -u",
"test:watch": "jest --color --watch",
"test:e2e": "./node_modules/.bin/cucumber-js",
Expand Down

0 comments on commit 98a29fc

Please sign in to comment.