-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9132588
Showing
24 changed files
with
5,269 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Automated checks | ||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4.1.7 | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: latest | ||
|
||
- uses: actions/setup-node@v4.0.2 | ||
with: | ||
cache: pnpm | ||
node-version: 20 | ||
|
||
- name: Build | ||
run: | | ||
pnpm install | ||
pnpm build | ||
- name: Knip | ||
run: pnpm knip | ||
|
||
- name: Prettier | ||
run: pnpm prettier --check src "*.{ts,json,md}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dist/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pnpm lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"git": { | ||
"commitMessage": "chore: release v${version}", | ||
"requireBranch": "main", | ||
"tagName": "v${version}" | ||
}, | ||
"github": { | ||
"release": true, | ||
"comments": { | ||
"submit": true | ||
} | ||
}, | ||
"npm": { | ||
"publishArgs": ["--provenance"] | ||
}, | ||
"plugins": { | ||
"@release-it/conventional-changelog": { | ||
"preset": "conventionalcommits", | ||
"infile": "CHANGELOG.md", | ||
"header": "# Changelog" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# `@birchill/inject-manifest-plugin` | ||
|
||
An rspack plugin that generates a manifest for injecting into a service worker. | ||
Based on the `InjectManifestPlugin` part of the | ||
[`workbox-webpack-plugin`](https://github.com/GoogleChrome/workbox/) package | ||
but adapted to rspack. | ||
|
||
## Usage | ||
|
||
```js | ||
// TODO | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"entry": ["src/index.ts"], | ||
"ignore": ["tsup.config.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"name": "@birchill/inject-manifest-plugin", | ||
"version": "0.1.0", | ||
"description": "rspack plugin to inject a manifest file into a service worker file", | ||
"repository": "https://github.com/birchill/inject-manifest-plugin/", | ||
"keywords": [ | ||
"service worker", | ||
"manifest" | ||
], | ||
"author": "Birchill, Inc.", | ||
"license": "MIT", | ||
"type": "module", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist/**" | ||
], | ||
"publishConfig": { | ||
"registry": "https://registry.npmjs.org" | ||
}, | ||
"dependencies": { | ||
"fast-json-stable-stringify": "^2.1.0", | ||
"pretty-bytes": "^6.1.1", | ||
"schema-utils": "^4.2.0", | ||
"webpack-sources": "^3.2.3" | ||
}, | ||
"devDependencies": { | ||
"@release-it/conventional-changelog": "8.0.1", | ||
"@rspack/core": "1.0.0-alpha.3", | ||
"@types/node": "20.14.10", | ||
"@types/webpack-sources": "3.2.3", | ||
"husky": "9.0.11", | ||
"knip": "5.25.2", | ||
"lint-staged": "15.2.7", | ||
"prettier": "3.3.2", | ||
"release-it": "17.5.0", | ||
"tsup": "8.1.0", | ||
"typescript": "5.5.3" | ||
}, | ||
"peerDependencies": { | ||
"@rspack/core": "^1.0.0-alpha.3" | ||
}, | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"prepublishOnly": "pnpm build", | ||
"build": "tsup", | ||
"release": "release-it", | ||
"prepare": "husky" | ||
}, | ||
"prettier": { | ||
"singleQuote": true, | ||
"trailingComma": "es5" | ||
}, | ||
"lint-staged": { | ||
"*.{ts,json}": [ | ||
"prettier --write" | ||
] | ||
} | ||
} |
Oops, something went wrong.