Skip to content

Commit d0374a3

Browse files
Merge branch 'main' into gzip-diff-option
2 parents 8dfa4d8 + c72e37f commit d0374a3

File tree

18 files changed

+8935
-3980
lines changed

18 files changed

+8935
-3980
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "hashicorp/nextjs-bundle-analysis" }
6+
],
7+
"commit": false,
8+
"linked": [],
9+
"access": "public",
10+
"baseBranch": "main",
11+
"updateInternalDependencies": "patch",
12+
"ignore": [],
13+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
14+
"useCalculatedVersionForSnapshots": true,
15+
"onlyUpdatePeerDependentsWhenOutOfRange": true
16+
}
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Canary Release
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- synchronize
8+
- reopened
9+
- labeled
10+
11+
jobs:
12+
release-canary:
13+
uses: hashicorp/web-platform-packages/.github/workflows/canary-release.yml@5eee43c8a4a8f311e08f473132c617f757a8c6b5
14+
secrets:
15+
CHANGESETS_PAT: ${{ secrets.CHANGESETS_PAT }}
16+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
uses: hashicorp/web-platform-packages/.github/workflows/release.yml@5eee43c8a4a8f311e08f473132c617f757a8c6b5
11+
secrets:
12+
CHANGESETS_PAT: ${{ secrets.CHANGESETS_PAT }}
13+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# nextjs-bundle-analysis
2+
3+
## 0.5.0
4+
5+
### Minor Changes
6+
7+
- [#44](https://github.com/hashicorp/nextjs-bundle-analysis/pull/44) [`067cb5d`](https://github.com/hashicorp/nextjs-bundle-analysis/commit/067cb5de682d51ad30b8aac2f69437303825c3b8) Thanks [@dstaley](https://github.com/dstaley)! - Improve monorepo support by adding the `name` from `package.json` to the generated comment. Add support for a `skipCommentIfEmpty` configuration option that will set the comment to an empty string when no pages have changed size.

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Copyright (c) 2021 HashiCorp, Inc.
2+
13
# Mozilla Public License Version 2.0
24

35
1. Definitions

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ For example, if you build to `dist`, you should:
4747

4848
(Optional, defaults to `false`) If set, the display table will show the gzip size difference for routes even when a budget is set.
4949

50+
### `skipCommentIfEmpty (boolean)`
51+
52+
(Optional, defaults to `false`) When set to `true`, if no pages have changed size the generated comment will be an empty string.
53+
5054
## Caveats
5155

5256
- This plugin only analyzes the direct bundle output from next.js. If you have added any other scripts via the `<script>` tag, especially third party scripts and things like analytics or other tracking scripts, these are not included in the analysis. Scripts of this nature should _probably_ be loaded in behind a consent manager and should not make an impact on your initial load, and as long as this is how you handle them it should make no difference, but it's important to be aware of this and account for the extra size added by these scripts if they are present in your app.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
export default function IndexPage() {
27
return <p>hello world</p>
38
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
module.exports = {
27
distDir: 'dist',
38
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
16
export default function IndexPage() {
27
return <p>hello world</p>
38
}

0 commit comments

Comments
 (0)