Skip to content

Commit

Permalink
chore(v2): add lerna-changelog (#1952)
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey authored and yangshun committed Nov 8, 2019
1 parent 639d8d3 commit 58751b4
Show file tree
Hide file tree
Showing 5 changed files with 242 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.vscode
.idea
*.code-workspace
.changelog

node_modules

Expand Down
12 changes: 8 additions & 4 deletions CHANGELOG-2.x.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Docusaurus 2 Changelog

## Unreleased
- More efficient hot reload & consistent generated file.
- Set babel `compact` options to `true` which removes "superfluous whitespace characters and line terminators.
- Skip fileHash caching on production calculation to improve build performance. The runtime cache is only useful in development.
- Obtain git timestamp for `showLastUpdateAuthor`/ `showLastUpdateTime` asynchronously instead of synchronously. This improves build performance greatly.

#### :running_woman: Performance
* `docusaurus-plugin-content-docs`, `docusaurus-utils`, `docusaurus`
* [#1951](https://github.com/facebook/docusaurus/pull/1951) perf(v2): skip runtime fileHash cache in prod & get timestamp asynchronously ([@endiliey](https://github.com/endiliey))
* [#1950](https://github.com/facebook/docusaurus/pull/1950) perf(v2): more efficient hot reload & consistent filegen ([@endiliey](https://github.com/endiliey))

#### Committers: 1
- Endi ([@endiliey](https://github.com/endiliey))

## 2.0.0-alpha.33

Expand Down
15 changes: 14 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@
"lerna": "3.14.1",
"version": "2.0.0-alpha.33",
"npmClient": "yarn",
"useWorkspaces": true
"useWorkspaces": true,
"changelog": {
"repo": "facebook/docusaurus",
"labels": {
"tag: new feature": ":rocket: New Feature",
"tag: breaking change": ":boom: Breaking Change",
"tag: bug fix": ":bug: Bug Fix",
"tag: polish": ":nail_care: Polish",
"tag: documentation": ":memo: Documentation",
"tag: internal": ":house: Internal",
"tag: performance": ":running_woman: Performance"
},
"cacheDir": ".changelog"
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"build": "yarn tsc && yarn build:v2",
"build:v1": "yarn workspace docusaurus-1-website build",
"build:v2": "yarn workspace docusaurus-2-website build",
"changelog": "lerna-changelog",
"postinstall": "yarn tsc",
"prettier": "prettier --config .prettierrc --write \"**/*.{js,ts}\"",
"prettier:diff": "prettier --config .prettierrc --list-different \"**/*.{js,ts}\"",
Expand Down Expand Up @@ -57,6 +58,7 @@
"husky": "^1.3.1",
"jest": "^24.9.0",
"lerna": "^3.18.1",
"lerna-changelog": "^0.8.2",
"lint-staged": "^7.2.0",
"picomatch": "^2.1.0",
"prettier": "^1.18.2",
Expand Down
Loading

0 comments on commit 58751b4

Please sign in to comment.