fix(tooling): use nx to build & clean (#19084)

* remove pre-publish scripts

* fix: use nx to clean & build
This commit is contained in:
Josh 2023-12-19 13:21:33 +00:00 committed by GitHub
parent f38a1037bd
commit bdcd983c3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
36 changed files with 4 additions and 34 deletions

View File

@ -62,7 +62,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",
"watch": "pack-up watch"
},

View File

@ -40,7 +40,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"dependencies": {

View File

@ -40,7 +40,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"dependencies": {

View File

@ -57,7 +57,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",
"test:ts": "run -T tsc -p tsconfig.json",

View File

@ -45,7 +45,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",

View File

@ -35,7 +35,6 @@
"build": "pack-up build",
"clean": "rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "pack-up watch"

View File

@ -34,7 +34,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T tsc --noEmit && run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "pack-up watch"

View File

@ -44,7 +44,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",

View File

@ -42,7 +42,6 @@
"build-storybook": "storybook build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint . --ext .js,.jsx,.tsx,.ts",
"prepublishOnly": "yarn run clean && yarn run build",
"storybook": "storybook dev -p 6006",
"test:front": "run -T jest --config ./jest.config.front.js",
"test:front:cov": "run -T jest --config ./jest.config.front.js --coverage",

View File

@ -30,7 +30,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",

View File

@ -106,7 +106,6 @@
"copy-files": "copyfiles -u 1 -a 'src/**/*.html' 'src/**/*.png' dist",
"postinstall": "node ./scripts/postinstall.js",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "pack-up watch"

View File

@ -37,7 +37,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",

View File

@ -33,7 +33,6 @@
"build": "pack-up build",
"clean": "run -T rimraf dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",

View File

@ -38,7 +38,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",

View File

@ -40,7 +40,6 @@
"clean": "run -T rimraf ./dist",
"copy-files": "copyfiles -u 1 -a 'src/resources/files/**/*' 'src/resources/dot-files/**/*' 'src/resources/**/*.template' dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",
"watch": "pack-up watch"
},

View File

@ -39,7 +39,6 @@
"clean": "run -T rimraf ./dist",
"copy-files": "copyfiles -u 1 -a 'src/templates/**/*' 'src/files/**/*' dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",

View File

@ -33,7 +33,6 @@
"clean": "run -T rimraf ./dist",
"develop": "strapi plugin:watch",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts:front": "run -T tsc -p admin/tsconfig.json"
},
"dependencies": {

View File

@ -45,7 +45,6 @@
"build": "strapi plugin:build --force",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",

View File

@ -38,7 +38,6 @@
"build": "pack-up build",
"clean": "run -T rimraf dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",
"test:unit": "jest --verbose",

View File

@ -45,7 +45,6 @@
"build": "strapi plugin:build --force",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "strapi plugin:watch"
},
"dependencies": {

View File

@ -45,7 +45,6 @@
"build": "strapi plugin:build --force",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",
"test:ts:front": "run -T tsc -p admin/tsconfig.json",

View File

@ -38,7 +38,6 @@
"build": "pack-up build",
"clean": "run -T rimraf dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "pack-up watch"

View File

@ -37,7 +37,6 @@
"build": "pack-up build",
"clean": "run -T rimraf dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
"test:front:ce": "run -T cross-env IS_EE=false jest --config ./jest.config.front.js",
"test:front:watch": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",

View File

@ -38,7 +38,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"devDependencies": {

View File

@ -39,7 +39,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"dependencies": {

View File

@ -39,7 +39,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "pack-up watch"

View File

@ -52,7 +52,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"dependencies": {

View File

@ -39,7 +39,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"dependencies": {

View File

@ -38,7 +38,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"dependencies": {

View File

@ -40,7 +40,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "pack-up watch"

View File

@ -39,7 +39,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"watch": "pack-up watch"
},
"dependencies": {

View File

@ -38,7 +38,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:unit": "run -T jest",
"test:unit:watch": "run -T jest --watch",
"watch": "pack-up watch"

View File

@ -34,7 +34,6 @@
"build": "pack-up build",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test:ts": "run -T tsc --noEmit",
"watch": "pack-up watch"
},

View File

@ -54,7 +54,6 @@
"check": "node -r esbuild-register scripts/check",
"clean": "run -T rimraf ./dist",
"lint": "run -T eslint .",
"prepublishOnly": "yarn clean && yarn build",
"test": "test:ts && test:unit",
"test:ts": "run -T tsc --noEmit",
"test:unit": "run -T jest",

View File

@ -19,4 +19,6 @@ if [[ -z "$distTag" ]]; then
fi
# publish packages
./node_modules/.bin/nx run-many --target=clean --nx-ignore-cycles
./node_modules/.bin/nx run-many --target=build --nx-ignore-cycles
./node_modules/.bin/lerna publish --no-push --no-git-tag-version --force-publish --exact "$version" --dist-tag "$distTag" $@

View File

@ -11,6 +11,8 @@ echo "Please enter the version you want to publish"
read -r version
# publish packages
./node_modules/.bin/nx run-many --target=clean --nx-ignore-cycles
./node_modules/.bin/nx run-many --target=build --nx-ignore-cycles
./node_modules/.bin/lerna publish --no-push --force-publish --dist-tag latest --exact "$version"
# push main branch