Skip to content

Commit

Permalink
fix: build compodoc, storybook and the website as expected in the rel…
Browse files Browse the repository at this point in the history
…ease
  • Loading branch information
C0ZEN committed Aug 1, 2021
1 parent 12c43a6 commit d39d16e
Show file tree
Hide file tree
Showing 10 changed files with 688 additions and 16 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ node_modules
coverage
reports
jest/test.ts
gh-pages
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ jobs:
${{ runner.os }}-
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build:website
- name: Website test with coverage
run: npm run test:website:ci:coverage
- name: Website build
run: npm run build:website:gh-pages
env:
CI: true
- name: Website Storybook
run: npm run storybook:build-with-docs:website:gh-pages
- name: Website Compodoc
run: npm run compodoc:website:gh-pages
- name: Release
run: npm run semver
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ token.json
# System Files
.DS_Store
Thumbs.db
gh-pages

9 changes: 0 additions & 9 deletions .lintstagedrc

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ node_modules
apps/website/.eslintcache
package-lock.json
coverage
gh-pages
22 changes: 21 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,22 @@
"parallel": false
}
},
"build-storybook-with-docs-gh-pages": {
"builder": "@nrwl/workspace:run-commands",
"options": {
"commands": ["npx nx run website:compodoc", "npx nx run website:build-storybook"],
"parallel": false
}
},
"compodoc": {
"builder": "@twittwer/compodoc:compodoc",
"options": {
"tsConfig": "apps/website/tsconfig.editor.json",
"outputPath": "dist/compodoc/website",
"disableCoverage": false,
"disablePrivate": false,
"disableInternal": false
"disableInternal": false,
"unitTestCoverage": "coverage/apps/website/coverage-summary.json"
},
"configurations": {
"json": {
Expand All @@ -183,6 +191,18 @@
"json-watch": {
"exportFormat": "json",
"watch": true
},
"serve": {
"watch": true,
"serve": true,
"port": 4100
},
"gh-pages": {
"outputPath": "gh-pages/compodoc",
"baseHref": "compodoc",
"exportFormat": "html",
"disablePrivate": true,
"disableInternal": true
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/website/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
// ],

// A list of reporter names that Jest uses when writing coverage reports
coverageReporters: [`json`, `text-summary`, `lcov`],
coverageReporters: [`json`, `text-summary`, `lcov`, `json-summary`],

// An object that configures minimum threshold enforcement for coverage results
// coverageThreshold: undefined,
Expand Down
9 changes: 9 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
'*.{ts,js}': files => {return [
`npm run affected:lint:ts:hook --files=${files.join(',')}`,
]},
'*.{md,json,yml,html}': [
'npm run lint:workspace',
'npm run affected:lint:other',
],
};
Loading

0 comments on commit d39d16e

Please sign in to comment.