@theholocron/bundlewatch-config 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @theholocron/bundlewatch-config
2
+
3
+ ## 1.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`4309ce8`](https://github.com/theholocron/configs/commit/4309ce860374743fa4a4ea781820f3875e647a46) Thanks [@iamnewton](https://github.com/iamnewton)! - Releasing more, as a test
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # Bundlewatch Config
2
+
3
+ A [bundlewatch configuration](https://bundlewatch.io/#/reference/configuration) for monitoring file size for libraries.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install --save-dev @theholocron/bundlewatch-config
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ In your project `package.json` add the following:
14
+
15
+ ```json
16
+ {
17
+ "scripts": {
18
+ "audit:bundle": "bundlewatch --config ./node_modules/@theholocron/bundlewatch-config/index.js",
19
+ "audit": "run-p audit:*"
20
+ }
21
+ }
22
+ ```
23
+
24
+ **Note**: `run-p` uses [`npm-run-all`](https://www.npmjs.com/package/npm-run-all) package to run tasks concurrently, but you could also use [`concurrently`](https://www.npmjs.com/package/concurrently).
@@ -0,0 +1,12 @@
1
+ export default {
2
+ files: [
3
+ {
4
+ path: "./dist/**/*.css",
5
+ maxSize: "50 kB",
6
+ },
7
+ {
8
+ path: "./dist/**/*.js",
9
+ maxSize: "100 kB",
10
+ },
11
+ ],
12
+ };
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@theholocron/bundlewatch-config",
3
+ "homepage": "https://github.com/theholocron/configs/tree/master/packages/bundlewatch-config#readme",
4
+ "description": "A Bundlewatch configuration for monitoring the file size of libraries in the Galaxy.",
5
+ "author": "Newton Koumantzelis",
6
+ "version": "1.16.0",
7
+ "main": "bundlewatch.config.js",
8
+ "type": "module",
9
+ "repository": "https://github.com/theholocron/configs.git",
10
+ "bugs": "https://github.com/theholocron/configs/issues",
11
+ "releases": "https://github.com/theholocron/configs/releases",
12
+ "wiki": "https://github.com/theholocron/configs/wiki",
13
+ "license": "GPL-3.0",
14
+ "publishConfig": {
15
+ "access": "public"
16
+ },
17
+ "dependencies": {
18
+ "bundlewatch": "^0.4.0"
19
+ }
20
+ }