Skip to content

Commit

Permalink
ci: Fix publishing in x-components. Normalize build scripts. (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
javieri-empathy authored Jul 16, 2021
1 parent 52c8f09 commit c3c2f85
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 19 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ jobs:
token: ${{ secrets.SUPPORT_TOKEN }}
- name: Install lerna and all packages
run: npm ci
- name: Build all packages
run: npm run build
- name: Run linter in all packages
run: npm run lint
- name: Run tests in all packages
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
fetch-depth: 0
- name: Install lerna and all packages
run: npm ci
- name: Build all packages
run: npm run build
- name: Run linter in all packages
run: npm run lint
- name: Run tests in all packages
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
fetch-depth: 0
- name: Install lerna and all packages
run: npm ci
- name: Build all packages
run: npm run build
- name: Run linter in all packages
run: npm run lint
- name: Run tests in all packages
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:
token: ${{ secrets.SUPPORT_TOKEN }}
- name: Install lerna and all packages
run: npm ci
- name: Build all packages
run: npm run build
- name: Run linter in all packages
run: npm run lint
- name: Run tests in all packages
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lint": "lerna run lint",
"test": "lerna run test",
"prepare-release:stable": "lerna version --conventional-commits --conventional-graduate --no-git-tag-version --yes",
"release:alpha": "lerna publish --conventional-commits --conventional-prerelease --yes",
"release:alpha": "lerna publish --conventional-commits --conventional-prerelease --yes --no-push",
"publish-release": "node scripts/publish-release"
},
"devDependencies": {
Expand Down
5 changes: 3 additions & 2 deletions packages/deep-merge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@
},
"scripts": {
"build": "tsc && tsc --project tsconfig.esm.json",
"build:local": "webpack --mode production && npm pack",
"clean": "rimraf dist && rimraf coverage",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "eslint src",
"postbuild": "npm pack",
"postinstall": "npm run build",
"prepublishOnly": "npm run build",
"prebuild": "npm run clean && npm run lint && echo Using TypeScript && tsc --version",
"prebuild": "npm run clean",
"test": "jest"
},
"dependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/get-safe-property-chain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"build": "tsc && tsc --project tsconfig.esm.json",
"build:watch": "tsc --watch",
"lint": "eslint src",
"postbuild": "npm pack",
"postinstall": "npm run build",
"prepublishOnly": "npm run build",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
Expand Down
8 changes: 5 additions & 3 deletions packages/jest-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
"directory": "packages/jest-utils"
},
"scripts": {
"build": "npm pack",
"prebuild": "tsc",
"build:watch": "tsc --watch"
"build": "tsc",
"build:watch": "tsc --watch",
"postbuild": "npm pack",
"postinstall": "npm run build",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@types/jest": "^24.0.12 <= 24.0.13",
Expand Down
3 changes: 3 additions & 0 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"build": "tsc && tsc --project tsconfig.esm.json",
"build:watch": "tsc --watch",
"lint": "eslint src",
"postbuild": "npm pack",
"postinstall": "npm run build",
"prepublishOnly": "npm run build",
"test": "jest"
},
"dependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/search-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@
"node": ">=6.0.0"
},
"scripts": {
"build": "tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json && npm run gen:docs && npm pack",
"build": "tsc --project tsconfig.cjs.json && tsc --project tsconfig.esm.json && npm run gen:docs",
"build:watch": "tsc --watch",
"gen:model-docs": "api-extractor run -l",
"gen:typescript-docs": "api-documenter markdown -i report -o docs",
"gen:docs": "npm run gen:model-docs && npm run gen:typescript-docs",
"postbuild": "npm pack",
"postinstall": "npm run build",
"prepublishOnly": "npm run build",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
Expand Down
7 changes: 5 additions & 2 deletions packages/search-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@
"node": ">=6.0.0"
},
"scripts": {
"build": "rollup -c && npm run gen:docs && npm pack",
"build": "rollup -c && npm run gen:docs",
"build:watch": "rollup -c -w",
"gen:model-docs": "api-extractor run -c search-types-extractor.json -l && api-extractor run -c schema-extractor.json -l && api-extractor run -l",
"gen:typescript-docs": "api-documenter markdown -i report -o docs",
"gen:docs": "npm run gen:model-docs && npm run gen:typescript-docs"
"gen:docs": "npm run gen:model-docs && npm run gen:typescript-docs",
"postbuild": "npm pack",
"postinstall": "npm run build",
"prepublishOnly": "npm run build"
},
"dependencies": {
"tslib": "~1.11.1"
Expand Down
5 changes: 4 additions & 1 deletion packages/storage-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
"lint": "eslint src",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage"
"test:coverage": "jest --coverage",
"postbuild": "npm pack",
"postinstall": "npm run build",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@empathyco/x-logger": "^1.1.2-alpha.1",
Expand Down
5 changes: 4 additions & 1 deletion packages/x-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@
},
"scripts": {
"serve": "vue-cli-service serve --skip-plugins eslint",
"build": "ts-node --project ./build/tsconfig.json ./build/build.ts && npm pack ./dist",
"build": "ts-node --project ./build/tsconfig.json ./build/build.ts",
"build:website": "vue-cli-service build",
"gen:docs": "rimraf ./docs && npm run gen:typescript-docs && npm run gen:component-docs",
"gen:typescript-docs": "api-documenter markdown --input-folder dist/report --output-folder docs/API-reference/api",
"gen:component-docs": "vue-docgen",
"postbuild": "npm pack ./dist",
"postinstall": "npm run build",
"prepublishOnly": "npm run build",
"test:unit": "npm run test:unit-jest && npm run test:unit-cypress",
"test:unit-jest": "vue-cli-service test:unit",
"test:unit-cypress": "cypress run-ct",
Expand Down

0 comments on commit c3c2f85

Please sign in to comment.