From 7d89155b9ab8304415bd5ffeb78d8c9d0fdf92f3 Mon Sep 17 00:00:00 2001 From: Kelly Mears Date: Thu, 6 Jul 2023 03:11:26 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test:=20improve=20integration=20?= =?UTF-8?q?(#2361)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - normalize examples/* - improve integration tests - update **/contributors.yml ## Type of change **PATCH: backwards compatible change** --- contributors.yml | 2 +- examples/babel/package.json | 6 +- examples/basic/package.json | 1 + examples/config-json/bud.config.json | 15 +- examples/config-json/package.json | 3 +- examples/config-json/src/app.js | 2 +- examples/config-yml/package.json | 2 + examples/config-yml/src/app.js | 2 +- examples/critical-css/.gitignore | 2 - examples/critical-css/bud.config.cjs | 12 - examples/critical-css/bud.config.js | 10 + examples/critical-css/package.json | 2 + examples/critical-css/src/app.js | 3 +- examples/critical-css/tsconfig.json | 12 + examples/emotion/bud.config.cjs | 10 - examples/emotion/bud.config.js | 5 + examples/emotion/package.json | 2 + examples/esbuild/bud.config.cjs | 3 - examples/esbuild/bud.config.js | 3 + examples/esbuild/package.json | 2 + examples/eslint/.env | 3 - examples/eslint/bud.config.ts | 4 +- examples/eslint/package.json | 8 +- examples/html-template/bud.config.cjs | 12 - examples/html-template/bud.config.js | 10 + examples/html-template/package.json | 9 +- examples/imagemin/.env | 3 - .../{bud.config.mjs => bud.config.js} | 2 +- examples/imagemin/package.json | 7 +- examples/imagemin/tsconfig.json | 5 +- examples/markdown/package.json | 6 +- examples/multi-compiler/bud.config.mts | 27 -- examples/multi-compiler/bud.config.ts | 25 ++ examples/multi-compiler/package.json | 1 + examples/multi-compiler/tsconfig.json | 12 + examples/node-api/02-factory.js | 87 ----- .../node-api/{01-simple.js => node-script.js} | 7 +- examples/node-api/package.json | 14 +- examples/postcss-sass/bud.config.cjs | 1 - examples/postcss-sass/package.json | 7 +- .../postcss-sass/src/{app.scss => index.scss} | 0 examples/postcss/package.json | 5 +- examples/preset-recommend/.env | 2 - examples/preset-recommend/bud.config.cjs | 3 - examples/preset-recommend/bud.config.js | 3 + examples/preset-recommend/package.json | 6 +- examples/purgecss/.gitignore | 5 - examples/purgecss/bud.config.cjs | 12 - examples/purgecss/bud.config.js | 11 + examples/purgecss/jsconfig.json | 5 - examples/purgecss/package.json | 7 +- examples/purgecss/src/app.css | 1 - examples/purgecss/src/{main.css => index.css} | 0 examples/purgecss/{public => src}/index.html | 1 + examples/purgecss/tsconfig.json | 15 + examples/react/.env | 3 - examples/react/bud.config.js | 5 +- examples/react/package.json | 1 + examples/remote-sources/.env | 3 - examples/remote-sources/.gitignore | 6 - .../{bud.config.mjs => bud.config.js} | 5 - examples/remote-sources/package.json | 11 +- examples/remote-sources/src/index.html | 18 - examples/remote-sources/src/scripts/app.js | 11 +- ...tailwind.config.cjs => tailwind.config.js} | 4 +- examples/remote-sources/tsconfig.json | 15 +- examples/sage/package.json | 1 + examples/sage/resources/scripts/app.js | 3 +- examples/sass-customized/package.json | 4 - examples/sass-tailwindcss/package.json | 8 +- examples/sass/package.json | 9 +- examples/sass/src/index.scss | 2 +- examples/solid/.env | 3 - .../solid/{bud.config.mjs => bud.config.js} | 0 examples/solid/package.json | 7 +- examples/solid/src/app.js | 3 +- examples/stylelint/package.json | 6 +- examples/swc/package.json | 7 +- examples/swc/src/index.js | 2 +- examples/tailwindcss/.env | 3 - examples/tailwindcss/.gitignore | 5 - examples/tailwindcss/bud.config.cjs | 7 - examples/tailwindcss/bud.config.js | 16 + examples/tailwindcss/package.json | 11 +- examples/tailwindcss/public/index.html | 22 -- .../tailwindcss/src/{app.css => index.css} | 0 examples/tailwindcss/src/{app.js => index.js} | 4 +- examples/tailwindcss/tailwind.config.js | 4 +- examples/typescript/package.json | 6 +- examples/vue-3/jsconfig.json | 11 - examples/vue-3/package.json | 10 +- examples/vue-3/tsconfig.json | 8 + examples/vue-legacy/jsconfig.json | 11 - examples/vue-legacy/package.json | 7 +- examples/vue-legacy/tsconfig.json | 9 + examples/vue-typescript/package.json | 7 +- examples/webpack-plugin/.gitignore | 5 - examples/webpack-plugin/package.json | 9 +- examples/wordpress-editor/package.json | 6 +- examples/wordpress-theme/.env | 4 - examples/wordpress-theme/composer.json | 2 +- examples/wordpress-theme/docker-compose.yml | 31 -- examples/wordpress-theme/functions.php | 242 ++++--------- examples/wordpress-theme/package.json | 4 +- examples/wordpress-theme/theme.json | 11 +- .../@repo/markdown-kit/contributors/index.js | 7 +- sources/@repo/markdown-kit/readme/index.ts | 10 +- .../markdown-kit/readme/renderer/index.ts | 10 +- .../@repo/markdown-kit/releases/release.ts | 3 +- sources/@repo/test-kit/integration-test.ts | 62 +++- sources/@roots/blade-loader/contributors.yml | 2 +- sources/@roots/blade-loader/package.json | 4 +- .../browserslist-config/contributors.yml | 2 +- .../@roots/browserslist-config/package.json | 6 +- sources/@roots/bud-api/contributors.yml | 2 +- sources/@roots/bud-api/package.json | 6 +- sources/@roots/bud-babel/contributors.yml | 2 +- sources/@roots/bud-babel/package.json | 6 +- sources/@roots/bud-build/contributors.yml | 2 +- sources/@roots/bud-build/package.json | 6 +- sources/@roots/bud-cache/contributors.yml | 2 +- sources/@roots/bud-cache/package.json | 6 +- sources/@roots/bud-client/contributors.yml | 2 +- sources/@roots/bud-client/package.json | 6 +- sources/@roots/bud-compiler/contributors.yml | 2 +- sources/@roots/bud-compiler/package.json | 6 +- sources/@roots/bud-compress/contributors.yml | 2 +- sources/@roots/bud-compress/package.json | 6 +- .../@roots/bud-criticalcss/contributors.yml | 2 +- sources/@roots/bud-criticalcss/package.json | 6 +- sources/@roots/bud-dashboard/contributors.yml | 2 +- sources/@roots/bud-dashboard/package.json | 6 +- sources/@roots/bud-emotion/contributors.yml | 2 +- sources/@roots/bud-emotion/package.json | 6 +- .../@roots/bud-entrypoints/contributors.yml | 2 +- sources/@roots/bud-entrypoints/package.json | 6 +- sources/@roots/bud-esbuild/contributors.yml | 2 +- sources/@roots/bud-esbuild/package.json | 6 +- sources/@roots/bud-eslint/contributors.yml | 2 +- sources/@roots/bud-eslint/package.json | 8 +- .../@roots/bud-extensions/contributors.yml | 2 +- sources/@roots/bud-extensions/package.json | 6 +- sources/@roots/bud-framework/contributors.yml | 2 +- sources/@roots/bud-framework/package.json | 6 +- sources/@roots/bud-hooks/contributors.yml | 2 +- sources/@roots/bud-hooks/package.json | 6 +- sources/@roots/bud-imagemin/contributors.yml | 2 +- sources/@roots/bud-imagemin/package.json | 6 +- sources/@roots/bud-mdx/contributors.yml | 2 +- sources/@roots/bud-mdx/package.json | 6 +- sources/@roots/bud-minify/contributors.yml | 2 +- sources/@roots/bud-minify/package.json | 2 +- sources/@roots/bud-postcss/contributors.yml | 2 +- sources/@roots/bud-postcss/package.json | 6 +- .../bud-preset-recommend/contributors.yml | 2 +- .../@roots/bud-preset-recommend/package.json | 6 +- .../bud-preset-wordpress/contributors.yml | 2 +- .../@roots/bud-preset-wordpress/package.json | 6 +- sources/@roots/bud-prettier/contributors.yml | 2 +- sources/@roots/bud-prettier/package.json | 8 +- sources/@roots/bud-purgecss/contributors.yml | 2 +- sources/@roots/bud-purgecss/package.json | 6 +- sources/@roots/bud-react/contributors.yml | 2 +- sources/@roots/bud-react/package.json | 6 +- sources/@roots/bud-sass/contributors.yml | 2 +- sources/@roots/bud-sass/package.json | 6 +- sources/@roots/bud-server/contributors.yml | 2 +- sources/@roots/bud-server/package.json | 6 +- sources/@roots/bud-solid/contributors.yml | 2 +- sources/@roots/bud-solid/package.json | 6 +- sources/@roots/bud-stylelint/contributors.yml | 2 +- sources/@roots/bud-stylelint/package.json | 6 +- sources/@roots/bud-support/contributors.yml | 2 +- sources/@roots/bud-support/package.json | 6 +- sources/@roots/bud-swc/contributors.yml | 2 +- sources/@roots/bud-swc/package.json | 6 +- .../contributors.yml | 2 +- .../bud-tailwindcss-theme-json/package.json | 6 +- .../@roots/bud-tailwindcss/contributors.yml | 2 +- sources/@roots/bud-tailwindcss/package.json | 10 +- .../@roots/bud-typescript/contributors.yml | 2 +- sources/@roots/bud-typescript/package.json | 6 +- sources/@roots/bud-vue/contributors.yml | 2 +- sources/@roots/bud-vue/package.json | 8 +- .../contributors.yml | 2 +- .../bud-wordpress-dependencies/package.json | 6 +- .../bud-wordpress-externals/contributors.yml | 2 +- .../bud-wordpress-externals/package.json | 6 +- .../bud-wordpress-theme-json/contributors.yml | 2 +- .../bud-wordpress-theme-json/package.json | 6 +- sources/@roots/bud/contributors.yml | 2 +- sources/@roots/bud/package.json | 6 +- sources/@roots/bud/src/index.ts | 4 +- sources/@roots/container/contributors.yml | 2 +- sources/@roots/container/package.json | 6 +- .../contributors.yml | 2 +- .../critical-css-webpack-plugin/package.json | 6 +- sources/@roots/dependencies/contributors.yml | 2 +- sources/@roots/dependencies/package.json | 6 +- .../contributors.yml | 2 +- .../entrypoints-webpack-plugin/package.json | 6 +- sources/@roots/eslint-config/contributors.yml | 2 +- sources/@roots/eslint-config/package.json | 6 +- sources/@roots/filesystem/contributors.yml | 2 +- sources/@roots/filesystem/package.json | 6 +- sources/@roots/sage/contributors.yml | 2 +- sources/@roots/sage/package.json | 8 +- .../contributors.yml | 2 +- .../package.json | 6 +- .../contributors.yml | 2 +- .../package.json | 6 +- sources/@roots/wordpress-hmr/contributors.yml | 2 +- sources/@roots/wordpress-hmr/package.json | 6 +- .../contributors.yml | 2 +- .../package.json | 6 +- .../wordpress-transforms/contributors.yml | 7 +- .../@roots/wordpress-transforms/package.json | 8 +- .../create-bud-app/templates/package.json.hbs | 4 +- .../__snapshots__/babel.test.ts.snap | 2 +- .../__snapshots__/html-template.test.ts.snap | 2 +- .../__snapshots__/tailwindcss.test.ts.snap | 11 - tests/integration/babel.test.ts | 17 +- tests/integration/purgecss.test.ts | 8 +- tests/integration/sage.test.ts | 337 ++++++++++-------- tests/integration/tailwindcss.test.ts | 9 +- tests/util/project/package.json | 1 + 226 files changed, 828 insertions(+), 1113 deletions(-) delete mode 100644 examples/critical-css/.gitignore delete mode 100644 examples/critical-css/bud.config.cjs create mode 100644 examples/critical-css/bud.config.js create mode 100644 examples/critical-css/tsconfig.json delete mode 100644 examples/emotion/bud.config.cjs create mode 100644 examples/emotion/bud.config.js delete mode 100644 examples/esbuild/bud.config.cjs create mode 100644 examples/esbuild/bud.config.js delete mode 100644 examples/eslint/.env delete mode 100644 examples/html-template/bud.config.cjs create mode 100644 examples/html-template/bud.config.js delete mode 100644 examples/imagemin/.env rename examples/imagemin/{bud.config.mjs => bud.config.js} (81%) delete mode 100644 examples/multi-compiler/bud.config.mts create mode 100644 examples/multi-compiler/bud.config.ts create mode 100644 examples/multi-compiler/tsconfig.json delete mode 100644 examples/node-api/02-factory.js rename examples/node-api/{01-simple.js => node-script.js} (71%) delete mode 100644 examples/postcss-sass/bud.config.cjs rename examples/postcss-sass/src/{app.scss => index.scss} (100%) delete mode 100644 examples/preset-recommend/.env delete mode 100644 examples/preset-recommend/bud.config.cjs create mode 100644 examples/preset-recommend/bud.config.js delete mode 100644 examples/purgecss/.gitignore delete mode 100644 examples/purgecss/bud.config.cjs create mode 100644 examples/purgecss/bud.config.js delete mode 100644 examples/purgecss/jsconfig.json delete mode 100644 examples/purgecss/src/app.css rename examples/purgecss/src/{main.css => index.css} (100%) rename examples/purgecss/{public => src}/index.html (89%) create mode 100644 examples/purgecss/tsconfig.json delete mode 100644 examples/react/.env delete mode 100644 examples/remote-sources/.env delete mode 100644 examples/remote-sources/.gitignore rename examples/remote-sources/{bud.config.mjs => bud.config.js} (67%) delete mode 100644 examples/remote-sources/src/index.html rename examples/remote-sources/{tailwind.config.cjs => tailwind.config.js} (59%) delete mode 100644 examples/solid/.env rename examples/solid/{bud.config.mjs => bud.config.js} (100%) delete mode 100644 examples/tailwindcss/.env delete mode 100644 examples/tailwindcss/.gitignore delete mode 100644 examples/tailwindcss/bud.config.cjs create mode 100644 examples/tailwindcss/bud.config.js delete mode 100644 examples/tailwindcss/public/index.html rename examples/tailwindcss/src/{app.css => index.css} (100%) rename examples/tailwindcss/src/{app.js => index.js} (50%) delete mode 100644 examples/vue-3/jsconfig.json create mode 100644 examples/vue-3/tsconfig.json delete mode 100644 examples/vue-legacy/jsconfig.json create mode 100644 examples/vue-legacy/tsconfig.json delete mode 100644 examples/webpack-plugin/.gitignore delete mode 100644 examples/wordpress-theme/.env delete mode 100644 examples/wordpress-theme/docker-compose.yml delete mode 100644 tests/integration/__snapshots__/tailwindcss.test.ts.snap diff --git a/contributors.yml b/contributors.yml index 83aefe5e14..e345eef033 100644 --- a/contributors.yml +++ b/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 869 + contributions: 875 email: developers@tinypixel.dev - name: QWp6t login: QWp6t diff --git a/examples/babel/package.json b/examples/babel/package.json index c03d374a38..b06a056d00 100644 --- a/examples/babel/package.json +++ b/examples/babel/package.json @@ -1,13 +1,13 @@ { "name": "@examples/babel", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", "devDependencies": { "@roots/bud": "latest", - "@roots/bud-babel": "latest", - "@roots/bud-postcss": "latest" + "@roots/bud-babel": "latest" } } diff --git a/examples/basic/package.json b/examples/basic/package.json index 266ca43eea..1666736063 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -1,5 +1,6 @@ { "name": "@examples/basic", + "$schema": "https://bud.js.org/bud.package.json", "private": true, "type": "module", "browserslist": [ diff --git a/examples/config-json/bud.config.json b/examples/config-json/bud.config.json index 4505432ed9..623ad6dee8 100644 --- a/examples/config-json/bud.config.json +++ b/examples/config-json/bud.config.json @@ -1,10 +1,9 @@ { - entry: ['app', ['app.js']], - assets: [['src/**/*.html']], - babel: { - setPluginOptions: [ - '@babel/plugin-transform-runtime', - {helpers: false, regenerator: false}, - ], - }, + "entry": ["app", ["app.js"]], + "babel": { + "setPluginOptions": [ + "@babel/plugin-transform-runtime", + {"helpers": false, "regenerator": false} + ] + } } diff --git a/examples/config-json/package.json b/examples/config-json/package.json index 2c78b551bc..c8c06bc581 100644 --- a/examples/config-json/package.json +++ b/examples/config-json/package.json @@ -1,10 +1,11 @@ { "name": "@examples/config-json", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", "devDependencies": { "@roots/bud": "latest", "@roots/bud-babel": "latest" diff --git a/examples/config-json/src/app.js b/examples/config-json/src/app.js index 3b6a5ac2fc..b76e24150b 100644 --- a/examples/config-json/src/app.js +++ b/examples/config-json/src/app.js @@ -2,4 +2,4 @@ import './global.css' document.querySelector('#root')?.classList.add('init') -module?.hot?.accept(console.error) +if (import.meta.webpackHot) import.meta.webpackHot.accept(console.error) diff --git a/examples/config-yml/package.json b/examples/config-yml/package.json index 9d91c12c0c..eca115e33e 100644 --- a/examples/config-yml/package.json +++ b/examples/config-yml/package.json @@ -1,6 +1,8 @@ { "name": "@examples/config-yml", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], diff --git a/examples/config-yml/src/app.js b/examples/config-yml/src/app.js index 3b6a5ac2fc..b76e24150b 100644 --- a/examples/config-yml/src/app.js +++ b/examples/config-yml/src/app.js @@ -2,4 +2,4 @@ import './global.css' document.querySelector('#root')?.classList.add('init') -module?.hot?.accept(console.error) +if (import.meta.webpackHot) import.meta.webpackHot.accept(console.error) diff --git a/examples/critical-css/.gitignore b/examples/critical-css/.gitignore deleted file mode 100644 index 661b80a4ba..0000000000 --- a/examples/critical-css/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/node_modules -/.budfiles diff --git a/examples/critical-css/bud.config.cjs b/examples/critical-css/bud.config.cjs deleted file mode 100644 index f7ed82a32b..0000000000 --- a/examples/critical-css/bud.config.cjs +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = async app => { - app - .html({ - template: app.path('public/index.html'), - }) - .hash() - .entry('app', ['app.css']) - .entry('app2', ['app2.css']) - .splitChunks() - .critical.src(app.path(`public/index.html`)) - .enable() -} diff --git a/examples/critical-css/bud.config.js b/examples/critical-css/bud.config.js new file mode 100644 index 0000000000..683a7ed453 --- /dev/null +++ b/examples/critical-css/bud.config.js @@ -0,0 +1,10 @@ +/** + * @param {import('@roots/bud').Bud} bud + */ +export default async bud => { + bud.entry('app', ['app.css']).entry('app2', ['app2.css']) + + bud.html({template: bud.path('public/index.html')}) + + bud.critical.set(`src`, app.path(`public/index.html`)).enable() +} diff --git a/examples/critical-css/package.json b/examples/critical-css/package.json index f80704c198..7135a5ba95 100644 --- a/examples/critical-css/package.json +++ b/examples/critical-css/package.json @@ -1,6 +1,8 @@ { "name": "@examples/critical-css", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], diff --git a/examples/critical-css/src/app.js b/examples/critical-css/src/app.js index e46b2a8bd8..952351e9aa 100644 --- a/examples/critical-css/src/app.js +++ b/examples/critical-css/src/app.js @@ -10,4 +10,5 @@ const changeBg = () => { */ changeBg() -module?.hot?.accept(err => changeBg()) +if (import.meta.webpackHot) + import.meta.webpackHot.accept(err => changeBg()) diff --git a/examples/critical-css/tsconfig.json b/examples/critical-css/tsconfig.json new file mode 100644 index 0000000000..11bb15bab1 --- /dev/null +++ b/examples/critical-css/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "@roots/bud/config/tsconfig.json", + "compilerOptions": { + "paths": { + "@src/*": ["./src/*"] + }, + "types": ["@roots/bud", "@roots/bud-criticalcss"] + }, + "files": ["bud.config.js"], + "include": ["./src"], + "exclude": ["./dist"] +} diff --git a/examples/emotion/bud.config.cjs b/examples/emotion/bud.config.cjs deleted file mode 100644 index 04d7f81978..0000000000 --- a/examples/emotion/bud.config.cjs +++ /dev/null @@ -1,10 +0,0 @@ -module.exports = async app => { - app - .html({ - template: app.path('public/index.html'), - }) - .entry('app', 'app.js') - .when(app.isProduction, () => { - app.runtime('single').splitChunks().minimize() - }) -} diff --git a/examples/emotion/bud.config.js b/examples/emotion/bud.config.js new file mode 100644 index 0000000000..78e834550c --- /dev/null +++ b/examples/emotion/bud.config.js @@ -0,0 +1,5 @@ +export default async app => { + app + .html({template: app.path('public/index.html')}) + .entry('app', 'app.js') +} diff --git a/examples/emotion/package.json b/examples/emotion/package.json index 1eeaa2403b..0e86d78a8b 100644 --- a/examples/emotion/package.json +++ b/examples/emotion/package.json @@ -1,6 +1,8 @@ { "name": "@examples/emotion", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], diff --git a/examples/esbuild/bud.config.cjs b/examples/esbuild/bud.config.cjs deleted file mode 100644 index 42cd69c5ca..0000000000 --- a/examples/esbuild/bud.config.cjs +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = async bud => { - bud.html().entry({app: 'app.js'}).runtime().splitChunks().hash() -} diff --git a/examples/esbuild/bud.config.js b/examples/esbuild/bud.config.js new file mode 100644 index 0000000000..4f08e85d1b --- /dev/null +++ b/examples/esbuild/bud.config.js @@ -0,0 +1,3 @@ +export default async bud => { + bud.html().entry({app: 'app.js'}) +} diff --git a/examples/esbuild/package.json b/examples/esbuild/package.json index 11ae3f97c9..fa2aebdd40 100644 --- a/examples/esbuild/package.json +++ b/examples/esbuild/package.json @@ -1,6 +1,8 @@ { "name": "@examples/esbuild", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], diff --git a/examples/eslint/.env b/examples/eslint/.env deleted file mode 100644 index a3320e8b21..0000000000 --- a/examples/eslint/.env +++ /dev/null @@ -1,3 +0,0 @@ -APP_TITLE='Create Bud App' -APP_DESCRIPTION='Project description' -APP_COLOR='#fff' diff --git a/examples/eslint/bud.config.ts b/examples/eslint/bud.config.ts index 12a934e25a..ed43a69ab2 100644 --- a/examples/eslint/bud.config.ts +++ b/examples/eslint/bud.config.ts @@ -1,3 +1,5 @@ import {type Bud} from '@roots/bud' -export default async (bud: Bud) => {} +export default async (bud: Bud) => { + bud.eslint.extends('@roots/eslint-config') +} diff --git a/examples/eslint/package.json b/examples/eslint/package.json index 9f0d75220d..41efb9bbbb 100644 --- a/examples/eslint/package.json +++ b/examples/eslint/package.json @@ -1,16 +1,14 @@ { "name": "@examples/eslint", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", "type": "module", - "engines": { - "node": "18.12.1" - }, "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { "@roots/bud": "latest", - "@roots/bud-eslint": "latest" + "@roots/bud-eslint": "latest", + "@roots/eslint-config": "latest" } } diff --git a/examples/html-template/bud.config.cjs b/examples/html-template/bud.config.cjs deleted file mode 100644 index 63f25fef15..0000000000 --- a/examples/html-template/bud.config.cjs +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = async app => - app - .html({ - template: app.path('public/index.html'), - replace: { - TITLE: 'Demo', - DESCRIPTION: 'html templating example', - EXAMPLE: '#root content', - }, - favicon: app.path('public/favicon.ico'), - }) - .entry('app', '@src/index') diff --git a/examples/html-template/bud.config.js b/examples/html-template/bud.config.js new file mode 100644 index 0000000000..8e9be29f90 --- /dev/null +++ b/examples/html-template/bud.config.js @@ -0,0 +1,10 @@ +export default async app => + app.html({ + template: app.path('public/index.html'), + replace: { + TITLE: 'Demo', + DESCRIPTION: 'html templating example', + EXAMPLE: '#root content', + }, + favicon: app.path('public/favicon.ico'), + }) diff --git a/examples/html-template/package.json b/examples/html-template/package.json index fa525fdc7d..1702e08ca9 100644 --- a/examples/html-template/package.json +++ b/examples/html-template/package.json @@ -1,15 +1,12 @@ { - "name": "@examples/template", + "name": "@examples/html-template", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest" } } diff --git a/examples/imagemin/.env b/examples/imagemin/.env deleted file mode 100644 index a3320e8b21..0000000000 --- a/examples/imagemin/.env +++ /dev/null @@ -1,3 +0,0 @@ -APP_TITLE='Create Bud App' -APP_DESCRIPTION='Project description' -APP_COLOR='#fff' diff --git a/examples/imagemin/bud.config.mjs b/examples/imagemin/bud.config.js similarity index 81% rename from examples/imagemin/bud.config.mjs rename to examples/imagemin/bud.config.js index 77c9835c6f..4bb5571302 100644 --- a/examples/imagemin/bud.config.mjs +++ b/examples/imagemin/bud.config.js @@ -2,6 +2,6 @@ * @type {(app: import('@roots/bud').Bud) => Promise} */ export default async app => { - app.entry(`app`, `app.js`).minimize() + app.entry(`app`, `app.js`) app.imagemin.encode(`jpeg`, {quality: 75}).encode(`png`, {quality: 100}) } diff --git a/examples/imagemin/package.json b/examples/imagemin/package.json index a1d07dd793..d81a9ca8d9 100644 --- a/examples/imagemin/package.json +++ b/examples/imagemin/package.json @@ -1,15 +1,12 @@ { "name": "@examples/imagemin", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-imagemin": "latest" } diff --git a/examples/imagemin/tsconfig.json b/examples/imagemin/tsconfig.json index db724bb3ad..3f3bf41556 100644 --- a/examples/imagemin/tsconfig.json +++ b/examples/imagemin/tsconfig.json @@ -1,13 +1,12 @@ { "extends": "@roots/bud/config/tsconfig.json", "compilerOptions": { - "module": "esnext", - "target": "esnext", "paths": { "@src/*": ["./src/*"] }, "types": ["@roots/bud", "@roots/bud-imagemin"] }, - "include": ["./src", "./bud.config.mjs"], + "files": ["bud.config.js"], + "include": ["./src"], "exclude": ["./dist"] } diff --git a/examples/markdown/package.json b/examples/markdown/package.json index 38bdaa5c59..9f957da4df 100644 --- a/examples/markdown/package.json +++ b/examples/markdown/package.json @@ -1,10 +1,8 @@ { "name": "@examples/markdown", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], diff --git a/examples/multi-compiler/bud.config.mts b/examples/multi-compiler/bud.config.mts deleted file mode 100644 index 2e11394a86..0000000000 --- a/examples/multi-compiler/bud.config.mts +++ /dev/null @@ -1,27 +0,0 @@ -import type {Bud} from '@roots/bud' - -/** - * Configuration which runs two instances of bud. - * - * Each can be uniquely configured. - * ``` - */ -export default async ({make, path, ...app}: Bud) => { - await Promise.all([ - /** - * Make `theme` workspace in `./theme` and setup entrypoints - * Files will be output to `./theme/dist` - */ - make({label: 'theme', basedir: path('theme')}, async theme => - theme.entry('theme', ['theme.js', 'theme.css']), - ), - - /** - * Make plugin workspace in `./plugin` and setup entrypoints - * Files will be output to `./plugin/dist` - */ - make({label: 'plugin', basedir: path('plugin')}, async plugin => - plugin.entry('plugin', ['plugin.js', 'plugin.css']), - ), - ]) -} diff --git a/examples/multi-compiler/bud.config.ts b/examples/multi-compiler/bud.config.ts new file mode 100644 index 0000000000..be1f63f162 --- /dev/null +++ b/examples/multi-compiler/bud.config.ts @@ -0,0 +1,25 @@ +import {bud} from '@roots/bud' + +/** + * Configuration which runs two instances of bud. + * + * Each can be uniquely configured. + * ``` + */ +await Promise.all([ + /** + * Make `theme` workspace in `./theme` and setup entrypoints + * Files will be output to `./theme/dist` + */ + bud.make({label: 'theme', basedir: bud.path('theme')}, async theme => + theme.entry('theme', ['theme.js', 'theme.css']), + ), + + /** + * Make plugin workspace in `./plugin` and setup entrypoints + * Files will be output to `./plugin/dist` + */ + bud.make({label: 'plugin', basedir: bud.path('plugin')}, async plugin => + plugin.entry('plugin', ['plugin.js', 'plugin.css']), + ), +]) diff --git a/examples/multi-compiler/package.json b/examples/multi-compiler/package.json index f44d5a9502..361226f738 100644 --- a/examples/multi-compiler/package.json +++ b/examples/multi-compiler/package.json @@ -1,5 +1,6 @@ { "name": "@examples/multi", + "$schema": "https://bud.js.org/bud.package.json", "private": true, "type": "module", "browserslist": [ diff --git a/examples/multi-compiler/tsconfig.json b/examples/multi-compiler/tsconfig.json new file mode 100644 index 0000000000..6e0a3df9ef --- /dev/null +++ b/examples/multi-compiler/tsconfig.json @@ -0,0 +1,12 @@ +{ + "extends": "@roots/bud/config/tsconfig.json", + "compilerOptions": { + "paths": { + "@src/*": ["./src/*"] + }, + "types": ["@roots/bud"] + }, + "files": ["bud.config.ts"], + "include": ["./src"], + "exclude": ["./dist"] +} diff --git a/examples/node-api/02-factory.js b/examples/node-api/02-factory.js deleted file mode 100644 index 656688f864..0000000000 --- a/examples/node-api/02-factory.js +++ /dev/null @@ -1,87 +0,0 @@ -import {join} from 'node:path' -import {factory, instances, get} from '@roots/bud' - -/** - * Run this example with: - * - * ```sh - * yarn node factory.js - * ``` - */ - -/** - * Before anything has ran you should expect {@link instances} to be defined but empty. - */ -console.assert(Object.entries(instances).length === 0) - -/** - * When you use {@link factory} to create a new instance of {@link bud} - */ -const bud = await factory() - -/** - * You can observe our old assertion is no longer valid. - * {@link bud} was registered to {@link instances} - */ -console.assert(Object.entries(instances).length !== 0) - -/** - * If we call {@link factory} again we get {@link bud} again. This is because - * we are requesting an instance with the same {@link bud.context.basedir}. - * - * We are using the default context so the basedir is the current working directory. - */ -const bud2 = await factory() -console.assert(bud2 === bud) - -/** bud.js instance still only created once */ -console.assert(Object.keys(instances).length === 1) -console.log(Object.keys(instances)) - -/** - * Since they are literally the same object - * a change made to {@link bud} is a change made to {@link bud2} - */ -bud.setPath(`@dist`, `dist/changed-path`) -console.assert(bud2.path(`@dist`) === bud.path(`@dist`)) - -/** - * If we want a separate instance of {@link bud} - * we can pass a {@link bud.context} with a unique {@link bud.context.basedir} - */ -const bud3 = await factory({basedir: join(process.cwd(), `src/demo`)}) - -console.assert(bud3 !== bud) // it's a new instance -console.assert(Object.keys(instances).length === 2) // it's registered with a unique key -console.log(Object.keys(instances)) // see for yourself in the terminal - -/** - * Generally you probably don't want multiple instances referring to the same directory. - * But, we can force a fresh instance regardless of its context by explicitly - * requesting it with {@link factory}. This might be helpful for testing. - */ - -/** normally would return the {@link bud} instance */ -const bud4Context = {basedir: process.cwd()} - -/** but we'll skip the {@link instances} cache */ -const bud4Options = {cache: false} - -/** Pass an options object as a second parameter to {@link factory} */ -const bud4 = await factory(bud4Context, bud4Options) - -/** They are different instances despite sharing the same context */ -console.assert(bud4 !== bud) - -/** But, note that the new instance is not registered in the {@link instances} registry */ -console.assert(Object.keys(instances).length === 2) - -/** - * You can request an instance from the registry using {@link get} - */ -const bud6 = get(process.cwd()) -/** - * The returned instance is the same object referenced by {@link bud} and {@link bud2} - */ -console.assert(bud6 === bud) -console.assert(bud6 === bud2) diff --git a/examples/node-api/01-simple.js b/examples/node-api/node-script.js similarity index 71% rename from examples/node-api/01-simple.js rename to examples/node-api/node-script.js index 318b9f0b61..8318b24438 100644 --- a/examples/node-api/01-simple.js +++ b/examples/node-api/node-script.js @@ -4,7 +4,7 @@ import {factory} from '@roots/bud' * Run this example with: * * ```sh - * yarn node 01-simple.js + * yarn node node-script.js * ``` */ @@ -23,11 +23,6 @@ bud.setPath(`@dist`, `dist/build-a`) */ await bud.extensions.add([`@roots/bud-swc`]) -/** - * Set entrypoints and do other config as usual - */ -bud.minimize(false).splitChunks(false) - /** * Run build */ diff --git a/examples/node-api/package.json b/examples/node-api/package.json index bc48560ec9..0ceedde7a6 100644 --- a/examples/node-api/package.json +++ b/examples/node-api/package.json @@ -1,18 +1,14 @@ { "name": "@examples/node-api", "private": true, - "engines": { - "node": "18.12.1" - }, - "packageManager": "npm@8.19.2", + "$schema": "https://bud.js.org/bud.package.json", "type": "module", + "browserslist": [ + "extends @roots/browserslist-config" + ], "devDependencies": { - "@roots/browserslist-config": "workspace:*", "@roots/bud": "workspace:*", "@roots/bud-swc": "workspace:*", "webpack-cli": "5.0.1" - }, - "browserslist": [ - "extends @roots/browserslist-config" - ] + } } diff --git a/examples/postcss-sass/bud.config.cjs b/examples/postcss-sass/bud.config.cjs deleted file mode 100644 index 03b7587d26..0000000000 --- a/examples/postcss-sass/bud.config.cjs +++ /dev/null @@ -1 +0,0 @@ -module.exports = async app => app.entry('app', ['app.scss']) diff --git a/examples/postcss-sass/package.json b/examples/postcss-sass/package.json index 09384b392f..5d35cc26be 100644 --- a/examples/postcss-sass/package.json +++ b/examples/postcss-sass/package.json @@ -1,15 +1,12 @@ { "name": "@examples/postcss-sass", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-postcss": "latest", "@roots/bud-sass": "latest" diff --git a/examples/postcss-sass/src/app.scss b/examples/postcss-sass/src/index.scss similarity index 100% rename from examples/postcss-sass/src/app.scss rename to examples/postcss-sass/src/index.scss diff --git a/examples/postcss/package.json b/examples/postcss/package.json index 821cc693a5..f340504cee 100644 --- a/examples/postcss/package.json +++ b/examples/postcss/package.json @@ -1,10 +1,7 @@ { "name": "@examples/postcss", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, "type": "module", "browserslist": [ "extends @roots/browserslist-config" diff --git a/examples/preset-recommend/.env b/examples/preset-recommend/.env deleted file mode 100644 index 4528e32800..0000000000 --- a/examples/preset-recommend/.env +++ /dev/null @@ -1,2 +0,0 @@ -APP_TITLE='Recommended Preset' -APP_DESCRIPTION='Demo of recommended preset' diff --git a/examples/preset-recommend/bud.config.cjs b/examples/preset-recommend/bud.config.cjs deleted file mode 100644 index fb14aa7809..0000000000 --- a/examples/preset-recommend/bud.config.cjs +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = async app => { - app.entry('app', await app.glob('@src/index.{js,css}')).minimize() -} diff --git a/examples/preset-recommend/bud.config.js b/examples/preset-recommend/bud.config.js new file mode 100644 index 0000000000..f6897e68f1 --- /dev/null +++ b/examples/preset-recommend/bud.config.js @@ -0,0 +1,3 @@ +export default async app => { + app.entry('app', await app.glob('@src/index.{js,css}')) +} diff --git a/examples/preset-recommend/package.json b/examples/preset-recommend/package.json index 88fb9ba08d..f2b7c743f0 100644 --- a/examples/preset-recommend/package.json +++ b/examples/preset-recommend/package.json @@ -1,10 +1,8 @@ { "name": "@examples/preset-recommend", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], diff --git a/examples/purgecss/.gitignore b/examples/purgecss/.gitignore deleted file mode 100644 index aaefb2a698..0000000000 --- a/examples/purgecss/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -node_modules -dist - -# You probably will want to remove these entries -.bud diff --git a/examples/purgecss/bud.config.cjs b/examples/purgecss/bud.config.cjs deleted file mode 100644 index 4e0d3e9e9c..0000000000 --- a/examples/purgecss/bud.config.cjs +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = async app => - app - .html({ - template: app.path('public/index.html'), - }) - .entry({ - app: 'app.css', - }) - .purgecss({ - content: [app.path('public/*.html')], - css: [app.path('src/**/*.css')], - }) diff --git a/examples/purgecss/bud.config.js b/examples/purgecss/bud.config.js new file mode 100644 index 0000000000..b0e2cb0311 --- /dev/null +++ b/examples/purgecss/bud.config.js @@ -0,0 +1,11 @@ +/** + * @param {import('@roots/bud').Bud} bud + */ +export default async bud => { + bud.html({template: bud.path('src/index.html')}) + + bud.purgecss({ + content: [bud.path('src/*.html')], + css: [bud.path('src/**/*.css')], + }) +} diff --git a/examples/purgecss/jsconfig.json b/examples/purgecss/jsconfig.json deleted file mode 100644 index 8698f55907..0000000000 --- a/examples/purgecss/jsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "typeAcquisition": { - "enable": true - } -} diff --git a/examples/purgecss/package.json b/examples/purgecss/package.json index 8c8de9cd60..b9b090e7ae 100644 --- a/examples/purgecss/package.json +++ b/examples/purgecss/package.json @@ -1,15 +1,12 @@ { "name": "@examples/purgecss", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-postcss": "latest", "@roots/bud-purgecss": "latest" diff --git a/examples/purgecss/src/app.css b/examples/purgecss/src/app.css deleted file mode 100644 index 5b0d888d51..0000000000 --- a/examples/purgecss/src/app.css +++ /dev/null @@ -1 +0,0 @@ -@import 'main'; diff --git a/examples/purgecss/src/main.css b/examples/purgecss/src/index.css similarity index 100% rename from examples/purgecss/src/main.css rename to examples/purgecss/src/index.css diff --git a/examples/purgecss/public/index.html b/examples/purgecss/src/index.html similarity index 89% rename from examples/purgecss/public/index.html rename to examples/purgecss/src/index.html index 10f3e4b92b..d438240415 100644 --- a/examples/purgecss/public/index.html +++ b/examples/purgecss/src/index.html @@ -15,5 +15,6 @@

PostCSS

PurgeCss test

+ diff --git a/examples/purgecss/tsconfig.json b/examples/purgecss/tsconfig.json new file mode 100644 index 0000000000..e3b83fea04 --- /dev/null +++ b/examples/purgecss/tsconfig.json @@ -0,0 +1,15 @@ +{ + "extends": "@roots/bud/config/tsconfig.json", + "compilerOptions": { + "types": [ + "@roots/bud", + "@roots/bud-postcss", + "@roots/bud-purgecss", + "node", + "webpack/module", + ] + }, + "files": ["bud.config.js"], + "include": ["src"], + "exclude": ["node_modules"] +} diff --git a/examples/react/.env b/examples/react/.env deleted file mode 100644 index 3f13114f8c..0000000000 --- a/examples/react/.env +++ /dev/null @@ -1,3 +0,0 @@ -PUBLIC_APP_TITLE='Create Bud App' -PUBLIC_APP_DESCRIPTION='Project description' -PUBLIC_APP_COLOR='#fff' diff --git a/examples/react/bud.config.js b/examples/react/bud.config.js index 751749210c..13755c7d9e 100644 --- a/examples/react/bud.config.js +++ b/examples/react/bud.config.js @@ -1,6 +1,3 @@ export default async app => { - app - .entry(`app`, [`app.js`, `app.css`]) - .runtime(`single`) - .when(app.isProduction, () => app.splitChunks().minimize()) + app.entry(`app`, [`app.js`, `app.css`]) } diff --git a/examples/react/package.json b/examples/react/package.json index c2b007aa23..05aa03e337 100644 --- a/examples/react/package.json +++ b/examples/react/package.json @@ -1,5 +1,6 @@ { "name": "@examples/react", + "$schema": "https://bud.js.org/bud.package.json", "private": true, "type": "module", "browserslist": [ diff --git a/examples/remote-sources/.env b/examples/remote-sources/.env deleted file mode 100644 index 06be61ffeb..0000000000 --- a/examples/remote-sources/.env +++ /dev/null @@ -1,3 +0,0 @@ -TEST=VALUE -PUBLIC_APP_TITLE='bud.js test app' -PUBLIC_APP_DESCRIPTION=test app description diff --git a/examples/remote-sources/.gitignore b/examples/remote-sources/.gitignore deleted file mode 100644 index 5ed1a22fea..0000000000 --- a/examples/remote-sources/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.budfiles -!.budfiles/@examples/remote-sources/node_modules -!.budfiles/@examples/remote-sources/bud.lock -/dist -/node_modules -!.env diff --git a/examples/remote-sources/bud.config.mjs b/examples/remote-sources/bud.config.js similarity index 67% rename from examples/remote-sources/bud.config.mjs rename to examples/remote-sources/bud.config.js index 2bd1e7ca95..1258aa8b67 100644 --- a/examples/remote-sources/bud.config.mjs +++ b/examples/remote-sources/bud.config.js @@ -1,12 +1,7 @@ -// @ts-check - /** * @param {import('@roots/bud').Bud} bud */ export default async bud => { - bud.use([`@roots/bud-swc`, `@roots/bud-tailwindcss`]) - bud.entry(`app`, [`scripts/app`, `styles/app`]) - bud.cdn.enable() } diff --git a/examples/remote-sources/package.json b/examples/remote-sources/package.json index d968e35b16..3f8db38279 100644 --- a/examples/remote-sources/package.json +++ b/examples/remote-sources/package.json @@ -1,18 +1,11 @@ { "name": "@examples/remote-sources", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "bud": { - "extensions": { - "discovery": false - } - }, "devDependencies": { "@roots/bud": "latest", "@roots/bud-swc": "latest", diff --git a/examples/remote-sources/src/index.html b/examples/remote-sources/src/index.html deleted file mode 100644 index d800ea5fac..0000000000 --- a/examples/remote-sources/src/index.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - {{APP_TITLE}} - - - - -
foobar
-
{{replaceTest}}
- - - diff --git a/examples/remote-sources/src/scripts/app.js b/examples/remote-sources/src/scripts/app.js index cb940d8a44..ca009b7482 100644 --- a/examples/remote-sources/src/scripts/app.js +++ b/examples/remote-sources/src/scripts/app.js @@ -1,10 +1,3 @@ -const init = async () => - window.requestAnimationFrame(async function ready() { - return document.body - ? await import('./components/main').then(({main}) => main()) - : window.requestAnimationFrame(ready) - }) +await import('./components/main').then(({main}) => main()) -init() - -import.meta.webpackHot?.accept(console.error) +if (import.meta.webpackHot) import.meta.webpackHot.accept(console.error) diff --git a/examples/remote-sources/tailwind.config.cjs b/examples/remote-sources/tailwind.config.js similarity index 59% rename from examples/remote-sources/tailwind.config.cjs rename to examples/remote-sources/tailwind.config.js index 7c3b7e54e8..c1beaadbf4 100644 --- a/examples/remote-sources/tailwind.config.cjs +++ b/examples/remote-sources/tailwind.config.js @@ -1,5 +1,5 @@ -module.exports = { - content: [`./src/index.html`, `./src/**/*.js`], +export default { + content: [`./src/**/*.js`], theme: { extend: { colors: { diff --git a/examples/remote-sources/tsconfig.json b/examples/remote-sources/tsconfig.json index b75ecde292..6e439c8887 100644 --- a/examples/remote-sources/tsconfig.json +++ b/examples/remote-sources/tsconfig.json @@ -1,12 +1,15 @@ { "extends": "@roots/bud/config/tsconfig.json", "compilerOptions": { - "paths": { - "@scripts/*": ["./src/scripts/*"], - "@styles/*": ["./src/styles/*"] - }, - "types": ["node", "webpack-env", "@roots/bud"] + "types": [ + "@roots/bud", + "@roots/bud-swc", + "@roots/bud-tailwindcss", + "node", + "webpack/module" + ] }, - "include": ["./src", "./bud.config.mjs"], + "files": ["bud.config.js"], + "include": ["./src"], "exclude": ["./node_modules"] } diff --git a/examples/sage/package.json b/examples/sage/package.json index b8707e1717..cfa92e7f21 100644 --- a/examples/sage/package.json +++ b/examples/sage/package.json @@ -1,5 +1,6 @@ { "name": "@examples/sage", + "$schema": "https://bud.js.org/bud.package.json", "private": true, "type": "module", "devDependencies": { diff --git a/examples/sage/resources/scripts/app.js b/examples/sage/resources/scripts/app.js index 05dc7be161..68fcc884b7 100644 --- a/examples/sage/resources/scripts/app.js +++ b/examples/sage/resources/scripts/app.js @@ -8,5 +8,6 @@ const init = () => init() if (import.meta.webpackHot) { - import.meta.webpackHot?.accept('./components/main.js', init) + if (import.meta.webpackHot) + import.meta.webpackHot.accept('./components/main.js', init) } diff --git a/examples/sass-customized/package.json b/examples/sass-customized/package.json index b05d27cd5a..76bee154c8 100644 --- a/examples/sass-customized/package.json +++ b/examples/sass-customized/package.json @@ -3,10 +3,6 @@ "$schema": "https://bud.js.org/bud.package.json", "private": true, "type": "module", - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, "bud": { "extensions": { "allowlist": [ diff --git a/examples/sass-tailwindcss/package.json b/examples/sass-tailwindcss/package.json index 26701c6730..2243806e25 100644 --- a/examples/sass-tailwindcss/package.json +++ b/examples/sass-tailwindcss/package.json @@ -1,16 +1,12 @@ { "name": "@examples/sass-tailwindcss", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-entrypoints": "latest", "@roots/bud-sass": "latest", diff --git a/examples/sass/package.json b/examples/sass/package.json index 36481d216e..8dee4601f8 100644 --- a/examples/sass/package.json +++ b/examples/sass/package.json @@ -1,15 +1,8 @@ { "name": "@examples/sass", + "$schema": "https://bud.js.org/bud.package.json", "private": true, "type": "module", - "bud": { - "extensions": { - "allowlist": [ - "@roots/bud-postcss", - "@roots/bud-sass" - ] - } - }, "dependencies": { "@roots/bud": "latest", "@roots/bud-postcss": "latest", diff --git a/examples/sass/src/index.scss b/examples/sass/src/index.scss index 69c2d080f7..a0f11dac03 100644 --- a/examples/sass/src/index.scss +++ b/examples/sass/src/index.scss @@ -1,4 +1,4 @@ -@import './vars'; +@import 'vars'; html, body { diff --git a/examples/solid/.env b/examples/solid/.env deleted file mode 100644 index a3320e8b21..0000000000 --- a/examples/solid/.env +++ /dev/null @@ -1,3 +0,0 @@ -APP_TITLE='Create Bud App' -APP_DESCRIPTION='Project description' -APP_COLOR='#fff' diff --git a/examples/solid/bud.config.mjs b/examples/solid/bud.config.js similarity index 100% rename from examples/solid/bud.config.mjs rename to examples/solid/bud.config.js diff --git a/examples/solid/package.json b/examples/solid/package.json index 25cfee293f..b9818e7e31 100644 --- a/examples/solid/package.json +++ b/examples/solid/package.json @@ -1,15 +1,12 @@ { "name": "@examples/solid", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "$schema": "https://bud.js.org/bud.package.json", + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-babel": "latest", "@roots/bud-solid": "latest" diff --git a/examples/solid/src/app.js b/examples/solid/src/app.js index 4aacf6a5ab..51715a4afc 100644 --- a/examples/solid/src/app.js +++ b/examples/solid/src/app.js @@ -14,4 +14,5 @@ const Counter = () => { render(() => , document.getElementById('root')) -module?.hot?.accept(err => console.error(err)) +if (import.meta.webpackHot) + import.meta.webpackHot.accept(err => console.error(err)) diff --git a/examples/stylelint/package.json b/examples/stylelint/package.json index bf66cefb43..c2d1a68056 100644 --- a/examples/stylelint/package.json +++ b/examples/stylelint/package.json @@ -1,16 +1,12 @@ { "name": "@examples/stylelint", "private": true, - "packageManager": "npm@8.19.2", "type": "module", - "engines": { - "node": "18.12.1" - }, + "$schema": "https://bud.js.org/bud.package.json", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-stylelint": "latest", "@roots/stylelint-config": "latest" diff --git a/examples/swc/package.json b/examples/swc/package.json index ac0fc9f07c..6372ff8238 100644 --- a/examples/swc/package.json +++ b/examples/swc/package.json @@ -1,15 +1,12 @@ { "name": "@examples/swc", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "$schema": "https://bud.js.org/bud.package.json", + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-swc": "latest" } diff --git a/examples/swc/src/index.js b/examples/swc/src/index.js index ff4ee1e200..8b23178d56 100644 --- a/examples/swc/src/index.js +++ b/examples/swc/src/index.js @@ -2,4 +2,4 @@ import './styles.css' document.querySelector('#root')?.classList.add('init') -module?.hot?.accept(console.error) +if (import.meta.webpackHot) import.meta.webpackHot.accept(console.error) diff --git a/examples/tailwindcss/.env b/examples/tailwindcss/.env deleted file mode 100644 index 37b3029f3f..0000000000 --- a/examples/tailwindcss/.env +++ /dev/null @@ -1,3 +0,0 @@ -PUBLIC_APP_TITLE='Create Bud App' -APP_DESCRIPTION='Project description' -APP_COLOR='#fff' diff --git a/examples/tailwindcss/.gitignore b/examples/tailwindcss/.gitignore deleted file mode 100644 index aaefb2a698..0000000000 --- a/examples/tailwindcss/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -node_modules -dist - -# You probably will want to remove these entries -.bud diff --git a/examples/tailwindcss/bud.config.cjs b/examples/tailwindcss/bud.config.cjs deleted file mode 100644 index dd547c9499..0000000000 --- a/examples/tailwindcss/bud.config.cjs +++ /dev/null @@ -1,7 +0,0 @@ -module.exports = async bud => { - bud - .entry({app: ['app.css', 'app.js']}) - .minimize() - .html() - .tailwind.generateImports(['colors']) -} diff --git a/examples/tailwindcss/bud.config.js b/examples/tailwindcss/bud.config.js new file mode 100644 index 0000000000..a30f94062d --- /dev/null +++ b/examples/tailwindcss/bud.config.js @@ -0,0 +1,16 @@ +/** + * This is totally optional. This example is otherwise zero-config. As in, you + * could delete this entire file and lines 3-5 of `src/index.js` and it would + * build. + * + * This call enables direct use of color values in your application scripts. + * + * @example + * ```js + * import colors from '@tailwind/colors' + * document.body.style.backgroundColor = colors.indigo[600] + * ``` + */ +export default async bud => { + bud.tailwind.generateImports(['colors']) +} diff --git a/examples/tailwindcss/package.json b/examples/tailwindcss/package.json index d2dd56cca1..154419faaf 100644 --- a/examples/tailwindcss/package.json +++ b/examples/tailwindcss/package.json @@ -1,20 +1,13 @@ { "name": "@examples/tailwindcss", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "bud": { - "extensions": { - "denylist": [ - "@roots/bud-swc" - ] - } - }, "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", - "@roots/bud-babel": "latest", "@roots/bud-postcss": "latest", "@roots/bud-tailwindcss": "latest" } diff --git a/examples/tailwindcss/public/index.html b/examples/tailwindcss/public/index.html deleted file mode 100644 index a898e3439c..0000000000 --- a/examples/tailwindcss/public/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - %APP_TITLE% - - - - - -
-

TailwindCss

-
- - diff --git a/examples/tailwindcss/src/app.css b/examples/tailwindcss/src/index.css similarity index 100% rename from examples/tailwindcss/src/app.css rename to examples/tailwindcss/src/index.css diff --git a/examples/tailwindcss/src/app.js b/examples/tailwindcss/src/index.js similarity index 50% rename from examples/tailwindcss/src/app.js rename to examples/tailwindcss/src/index.js index 2fcbc87c6e..6e59f1ae61 100644 --- a/examples/tailwindcss/src/app.js +++ b/examples/tailwindcss/src/index.js @@ -1,5 +1,7 @@ +import './index.css' + import colors from '@tailwind/colors' document.body.style.backgroundColor = colors.indigo[600] -module?.hot?.accept(console.error) +if (import.meta.webpackHot) import.meta.webpackHot.accept(console.error) diff --git a/examples/tailwindcss/tailwind.config.js b/examples/tailwindcss/tailwind.config.js index c9f22965f7..05ccb7e2b7 100644 --- a/examples/tailwindcss/tailwind.config.js +++ b/examples/tailwindcss/tailwind.config.js @@ -1,5 +1,5 @@ -module.exports = { - content: ['src/**/*.{js,css,html}', 'static/**/*.{js,css,html}'], +export default { + content: ['src/**/*.{js,css,html}'], theme: { extend: { colors: {}, diff --git a/examples/typescript/package.json b/examples/typescript/package.json index ee6a3fe6a5..b41da73470 100644 --- a/examples/typescript/package.json +++ b/examples/typescript/package.json @@ -1,13 +1,11 @@ { "name": "@examples/typescript", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", - "scripts": { - "build": "yarn ts-bud build" - }, "devDependencies": { "@roots/bud": "latest", "@roots/bud-babel": "latest", diff --git a/examples/vue-3/jsconfig.json b/examples/vue-3/jsconfig.json deleted file mode 100644 index 9e07719cea..0000000000 --- a/examples/vue-3/jsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@roots/bud/config/jsconfig.json", - "compilerOptions": { - "paths": { - "@*": ["./*"] - }, - "types": ["@roots/bud-vue"] - }, - "include": ["src", "bud.config.js"], - "exclude": ["node_modules", "dist"] -} diff --git a/examples/vue-3/package.json b/examples/vue-3/package.json index c63f2c0cb8..9b56fa9af3 100644 --- a/examples/vue-3/package.json +++ b/examples/vue-3/package.json @@ -1,16 +1,12 @@ { - "name": "@examples/vue", + "name": "@examples/vue-3", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest", "@roots/bud-sass": "latest", "@roots/bud-vue": "latest" diff --git a/examples/vue-3/tsconfig.json b/examples/vue-3/tsconfig.json new file mode 100644 index 0000000000..3c5e46e3e1 --- /dev/null +++ b/examples/vue-3/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@roots/bud/config/tsconfig.json", + "compilerOptions": { + "types": ["@roots/bud", "@roots/bud-vue"] + }, + "include": ["src"], + "exclude": ["node_modules", "dist"] +} diff --git a/examples/vue-legacy/jsconfig.json b/examples/vue-legacy/jsconfig.json deleted file mode 100644 index 35c6e4bc9d..0000000000 --- a/examples/vue-legacy/jsconfig.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "@roots/bud/config/jsconfig.json", - "compilerOptions": { - "paths": { - "@*": ["./*"] - }, - "types": ["@roots/bud", "@roots/bud-vue"] - }, - "include": ["src", "bud.config.js"], - "exclude": ["node_modules", "dist"] -} diff --git a/examples/vue-legacy/package.json b/examples/vue-legacy/package.json index 0c259e793a..14729803e0 100644 --- a/examples/vue-legacy/package.json +++ b/examples/vue-legacy/package.json @@ -1,13 +1,14 @@ { "name": "@examples/vue-legacy", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", "devDependencies": { - "@roots/bud": "*", - "@roots/bud-vue": "*" + "@roots/bud": "latest", + "@roots/bud-vue": "latest" }, "dependencies": { "vue": "2.7.14", diff --git a/examples/vue-legacy/tsconfig.json b/examples/vue-legacy/tsconfig.json new file mode 100644 index 0000000000..b5e54e2992 --- /dev/null +++ b/examples/vue-legacy/tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "@roots/bud/config/tsconfig.json", + "compilerOptions": { + "types": ["@roots/bud", "@roots/bud-vue"] + }, + "files": ["bud.config.js"], + "include": ["src"], + "exclude": ["node_modules", "dist"] +} diff --git a/examples/vue-typescript/package.json b/examples/vue-typescript/package.json index 82decfc98a..15b87fd4a5 100644 --- a/examples/vue-typescript/package.json +++ b/examples/vue-typescript/package.json @@ -1,14 +1,11 @@ { "name": "@examples/vue-typescript", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", "devDependencies": { "@roots/bud": "latest", "@roots/bud-sass": "latest", diff --git a/examples/webpack-plugin/.gitignore b/examples/webpack-plugin/.gitignore deleted file mode 100644 index aaefb2a698..0000000000 --- a/examples/webpack-plugin/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -node_modules -dist - -# You probably will want to remove these entries -.bud diff --git a/examples/webpack-plugin/package.json b/examples/webpack-plugin/package.json index c21618f43b..110f4848d8 100644 --- a/examples/webpack-plugin/package.json +++ b/examples/webpack-plugin/package.json @@ -1,15 +1,12 @@ { "name": "@examples/webpack-plugin", - "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "$schema": "https://bud.js.org/bud.package.json", + "private": "true", + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], "devDependencies": { - "@roots/browserslist-config": "latest", "@roots/bud": "latest" } } diff --git a/examples/wordpress-editor/package.json b/examples/wordpress-editor/package.json index 347c444d4a..a1c9f64052 100644 --- a/examples/wordpress-editor/package.json +++ b/examples/wordpress-editor/package.json @@ -1,10 +1,8 @@ { "name": "@examples/wordpress-editor", + "$schema": "https://bud.js.org/bud.package.json", "private": true, - "packageManager": "npm@8.19.2", - "engines": { - "node": "18.12.1" - }, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], diff --git a/examples/wordpress-theme/.env b/examples/wordpress-theme/.env deleted file mode 100644 index 9bace9be3d..0000000000 --- a/examples/wordpress-theme/.env +++ /dev/null @@ -1,4 +0,0 @@ -APP_TITLE=Create Bud App -APP_DESCRIPTION=Project description -APP_COLOR=#fff -APP_PUBLIC=/wp-content/themes/example/dist/ diff --git a/examples/wordpress-theme/composer.json b/examples/wordpress-theme/composer.json index 75cd19c325..50cbf7af3f 100644 --- a/examples/wordpress-theme/composer.json +++ b/examples/wordpress-theme/composer.json @@ -1,5 +1,5 @@ { - "name": "roots/bud-@examples/theme", + "name": "roots/example-theme", "license": "MIT", "authors": [ { diff --git a/examples/wordpress-theme/docker-compose.yml b/examples/wordpress-theme/docker-compose.yml deleted file mode 100644 index 660743c54d..0000000000 --- a/examples/wordpress-theme/docker-compose.yml +++ /dev/null @@ -1,31 +0,0 @@ -version: '3' - -services: - db: - image: mysql:8.0 - volumes: - - db_data:/var/lib/mysql - restart: always - environment: - MYSQL_ROOT_PASSWORD: wordpress - MYSQL_DATABASE: wordpress - MYSQL_USER: wordpress - MYSQL_PASSWORD: wordpress - - wordpress: - depends_on: - - db - image: wordpress:latest - ports: - - '8000:80' - restart: always - environment: - WORDPRESS_DB_HOST: db:3306 - WORDPRESS_DB_USER: wordpress - WORDPRESS_DB_PASSWORD: wordpress - working_dir: /var/www/html - volumes: - - ./:/var/www/html/wp-content/themes/example - -volumes: - db_data: diff --git a/examples/wordpress-theme/functions.php b/examples/wordpress-theme/functions.php index 6015556eee..5e8fb1bd2b 100644 --- a/examples/wordpress-theme/functions.php +++ b/examples/wordpress-theme/functions.php @@ -1,11 +1,8 @@ modules = Collection::make( - $entrypoint->$type - ); - - $hasDependencies = $type == 'js' && - property_exists($entrypoint, 'dependencies'); - - $entrypoint->dependencies = Collection::make( - $hasDependencies - ? $entrypoint->dependencies - : [], - ); - - return $entrypoint->modules->map( - function ($module, $index) use ($type, $name, $entrypoint) { - $name = "{$type}.{$name}.{$index}"; - - $dependencies = $entrypoint->dependencies->all(); - - $entrypoint->dependencies->push($name); - - return (object) [ - 'name' => $name, - 'uri' => $module, - 'deps' => $dependencies, - ]; - } - ); + string $name, + string $type, + Object $entrypoint +) { + $entrypoint->modules = Collection::make( + $entrypoint->$type + ); + + $hasDependencies = $type == 'js' && + property_exists($entrypoint, 'dependencies'); + + $entrypoint->dependencies = Collection::make( + $hasDependencies + ? $entrypoint->dependencies + : [], + ); + + return $entrypoint->modules->map( + function ($module, $index) use ($type, $name, $entrypoint) { + $name = "{$type}.{$name}.{$index}"; + + $dependencies = $entrypoint->dependencies->all(); + + $entrypoint->dependencies->push($name); + + return (object) [ + 'name' => $name, + 'uri' => $module, + 'deps' => $dependencies, + ]; + } + ); } -/** - * Enqueue all assets from a bundle key. - * - * @param {string} bundleName - * @return void - */ -function bundle(string $bundleName): void +function bundle(string $bundleName) { - /** - * Filter specified bundle - */ - $filterBundle = function ($_a, $key) use ($bundleName) { - return $key === $bundleName; - }; - - /** - * Prepare entrypoints - */ - $prepEntry = function ($item, $name): object { - return (object) [ - 'js' => entrypoint($name, 'js', $item), - 'css' => entrypoint($name, 'css', $item) - ]; - }; - - /** - * Filter out HMR assets - */ - $filterHot = function ($entry): bool { - return !strpos($entry->uri, 'hot-update'); - }; - - - /** - * Manifest source - */ - getManifest() - - /** - * Filter for requested bundle - */ - ->filter($filterBundle) - - /** - * Prepare entrypoints - */ - ->map($prepEntry) - - /** - * Enqueue scripts - */ - ->each(function ($entrypoint) use ($filterHot): void { - $entrypoint - ->js - ->filter($filterHot) - ->each(function ($entry) { - wp_enqueue_script(...[ - $entry->name, - $entry->uri, - $entry->deps, - null, - true, - ]); - }); - - $entrypoint - ->css - ->filter($filterHot) - ->each(function ($entry) { - wp_enqueue_style(...[ - $entry->name, - $entry->uri, - $entry->deps, - null, - ]); - }); - }); + $filterHot = fn ($entry) => !strpos($entry->uri, 'hot-update'); + + getManifest() + ->filter(fn ($value, $key) => $key === $bundleName) + ->map(fn ($item, $name) => (object) [ + 'js' => entrypoint($name, 'js', $item), + 'css' => entrypoint($name, 'css', $item) + ]) + ->each(function ($entrypoint) use ($filterHot) { + $entrypoint->js->filter($filterHot)->each( + fn ($entry) => + wp_enqueue_script($entry->name, $entry->uri, $entry->deps, null, true) + ); + + $entrypoint->css->filter($filterHot)->each( + fn ($entry) => + wp_enqueue_style($entry->name, $entry->uri, $entry->deps, null) + ); + }); }; -/** - * Register the theme assets. - * - * @return void - */ -add_action('wp_enqueue_scripts', function () { - bundle('bud-app'); -}, 100); - -/** - * Register the theme assets with the block editor. - * - * @return void - */ -add_action('enqueue_block_editor_assets', function () { - bundle('bud-editor'); -}, 100); +add_action('wp_enqueue_scripts', fn () => bundle('bud-app'), 100); +add_action('enqueue_block_editor_assets', fn () => bundle('bud-editor'), 100); diff --git a/examples/wordpress-theme/package.json b/examples/wordpress-theme/package.json index bf7a824e1c..0f2788e104 100644 --- a/examples/wordpress-theme/package.json +++ b/examples/wordpress-theme/package.json @@ -1,12 +1,14 @@ { "name": "@examples/wordpress-theme", + "$schema": "https://bud.js.org/bud.package.json", "private": true, + "type": "module", "browserslist": [ "extends @roots/browserslist-config" ], - "type": "module", "devDependencies": { "@roots/bud": "latest", + "@roots/bud-eslint": "latest", "@roots/bud-swc": "latest", "@roots/bud-preset-wordpress": "latest" } diff --git a/examples/wordpress-theme/theme.json b/examples/wordpress-theme/theme.json index 33e7e628bd..9a2311b2b2 100644 --- a/examples/wordpress-theme/theme.json +++ b/examples/wordpress-theme/theme.json @@ -16,18 +16,11 @@ }, "spacing": { "padding": true, - "units": [ - "px", - "%", - "em", - "rem", - "vw", - "vh" - ] + "units": ["px", "%", "em", "rem", "vw", "vh"] }, "typography": { "customFontSize": false, "dropCap": false } } -} \ No newline at end of file +} diff --git a/sources/@repo/markdown-kit/contributors/index.js b/sources/@repo/markdown-kit/contributors/index.js index c01c36528e..3910ae3813 100644 --- a/sources/@repo/markdown-kit/contributors/index.js +++ b/sources/@repo/markdown-kit/contributors/index.js @@ -80,14 +80,15 @@ async function getContributorsFromCommits(path) { ) }) .map(({author, commit}) => { + /* eslint-disable perfectionist/sort-objects */ contributors[author.login] = { ...(contributors[author.login] ?? {}), + name: commit.author.name, + login: author.login, avatar: author.avatar_url, + url: author.html_url, contributions: (contributors[author.login]?.contributions ?? 0) + 1, - login: author.login, - name: commit.author.name, - url: author.html_url, } if ( diff --git a/sources/@repo/markdown-kit/readme/index.ts b/sources/@repo/markdown-kit/readme/index.ts index c3f2b7df6b..c1eddb8029 100644 --- a/sources/@repo/markdown-kit/readme/index.ts +++ b/sources/@repo/markdown-kit/readme/index.ts @@ -1,13 +1,13 @@ -import {Filesystem, json as Json} from '@roots/bud-support/filesystem' -import globby from '@roots/bud-support/globby' - -import {templates} from './renderer/index.js' +import type {GrayMatterFile} from 'gray-matter' import {path, projectConfig} from '@repo/constants' -import type {GrayMatterFile} from 'gray-matter' +import {Filesystem, json as Json} from '@roots/bud-support/filesystem' +import globby from '@roots/bud-support/globby' import matter from 'gray-matter' import {format} from 'prettier' +import {templates} from './renderer/index.js' + const fs = new Filesystem() type Chunks = Array | Promise> diff --git a/sources/@repo/markdown-kit/readme/renderer/index.ts b/sources/@repo/markdown-kit/readme/renderer/index.ts index 7c7a610af3..bf4844ec32 100644 --- a/sources/@repo/markdown-kit/readme/renderer/index.ts +++ b/sources/@repo/markdown-kit/readme/renderer/index.ts @@ -1,12 +1,12 @@ -import type {TemplateDelegate} from './handlebars.js' - -import {Handlebars, handlebars} from './handlebars.js' - import {path} from '@repo/constants' import fs from 'fs-jetpack' import {globby} from 'globby' import {format} from 'prettier' +import type {TemplateDelegate} from './handlebars.js' + +import {handlebars, Handlebars} from './handlebars.js' + const sources = await globby( path(`sources/@repo/markdown-kit/readme/templates/*.md`), ) @@ -24,4 +24,4 @@ const templates: { } }, Promise.resolve({})) -export {Handlebars, format, handlebars, sources, templates} +export {format, handlebars, Handlebars, sources, templates} diff --git a/sources/@repo/markdown-kit/releases/release.ts b/sources/@repo/markdown-kit/releases/release.ts index 0d9ec372c0..f26526a1fd 100644 --- a/sources/@repo/markdown-kit/releases/release.ts +++ b/sources/@repo/markdown-kit/releases/release.ts @@ -1,6 +1,7 @@ -import {paths} from '@repo/constants' import {join} from 'path' +import {paths} from '@repo/constants' + import type {release} from './data.js' import {releases} from './data.js' diff --git a/sources/@repo/test-kit/integration-test.ts b/sources/@repo/test-kit/integration-test.ts index 0910e93160..98825c607c 100644 --- a/sources/@repo/test-kit/integration-test.ts +++ b/sources/@repo/test-kit/integration-test.ts @@ -1,8 +1,9 @@ +import {join} from 'path' + import {path} from '@repo/constants' import {bind} from '@roots/bud-support/decorators' import {execa} from 'execa' import fs from 'fs-jetpack' -import {join} from 'path' interface Options { buildCommand?: [string, Array?] @@ -31,19 +32,22 @@ class Project { public async build() { const build = this.options.buildCommand ?? [ `node`, - [this.path(`node_modules`, `.bin`, `bud`), `build`], + [this.getPath(`node_modules`, `.bin`, `bud`), `build`], ] const {stderr, stdout} = await execa(...build, {cwd: this.directory}) - stdout && (await fs.writeAsync(this.path(`build.stdout.log`), stdout)) - stderr && (await fs.writeAsync(this.path(`build.stderr.log`), stderr)) + stdout && + (await fs.writeAsync(this.getPath(`build.stdout.log`), stdout)) + stderr && + (await fs.writeAsync(this.getPath(`build.stderr.log`), stderr)) this.entrypoints = await fs.readAsync( - this.path(this.options.dist ?? `dist`, `entrypoints.json`), + this.getPath(this.options.dist ?? `dist`, `entrypoints.json`), `json`, ) + this.manifest = await fs.readAsync( - this.path(this.options.dist ?? `dist`, `manifest.json`), + this.getPath(this.options.dist ?? `dist`, `manifest.json`), `json`, ) @@ -51,7 +55,7 @@ class Project { Object.entries(this.manifest).map( async ([name, path]: [string, string]) => { this.assets[name] = await fs.readAsync( - this.path(this.options.dist ?? `dist`, path), + this.getPath(this.options.dist ?? `dist`, path), `utf8`, ) }, @@ -69,6 +73,31 @@ class Project { ) } + @bind + public getAsset(name: string) { + return this.assets[name] + } + + @bind + public getEntrypoint(name: string) { + return this.entrypoints[name] + } + + @bind + public getPath(...file: Array) { + return join(this.directory, ...file) + } + + @bind + public hasAsset(name: string) { + return name in this.assets + } + + @bind + public hasEntrypoint(name: string) { + return name in this.entrypoints + } + @bind public async install(): Promise { await fs.removeAsync(this.directory).catch(error => { @@ -86,7 +115,10 @@ class Project { }) await fs - .writeAsync(this.path(`.npmrc`), `registry=http://localhost:4873/`) + .writeAsync( + this.getPath(`.npmrc`), + `registry=http://localhost:4873/`, + ) .catch(error => { throw error }) @@ -98,29 +130,27 @@ class Project { .then(async result => { if (result?.stdout) await fs.writeAsync( - this.path(`install.stdout.log`), + this.getPath(`install.stdout.log`), result.stdout, ) if (result?.stderr) await fs.writeAsync( - this.path(`install.stderr.log`), + this.getPath(`install.stderr.log`), result.stderr, ) if (result?.exitCode !== 0) throw new Error(`npm install failed`) }) .catch(async error => { - await fs.writeAsync(this.path(`install.error.log`), error.stderr) + await fs.writeAsync( + this.getPath(`install.error.log`), + error.stderr, + ) throw error }) return this } - - @bind - public path(...file: Array) { - return join(this.directory, ...file) - } } export {Project as default} diff --git a/sources/@roots/blade-loader/contributors.yml b/sources/@roots/blade-loader/contributors.yml index 8455c9b6cf..296558bfbf 100644 --- a/sources/@roots/blade-loader/contributors.yml +++ b/sources/@roots/blade-loader/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 16 + contributions: 20 email: developers@tinypixel.dev - name: Brandon login: Log1x diff --git a/sources/@roots/blade-loader/package.json b/sources/@roots/blade-loader/package.json index 44641b1ff2..2830f8aa44 100644 --- a/sources/@roots/blade-loader/package.json +++ b/sources/@roots/blade-loader/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/browserslist-config/contributors.yml b/sources/@roots/browserslist-config/contributors.yml index 64b57961cc..f7c02bfc1a 100644 --- a/sources/@roots/browserslist-config/contributors.yml +++ b/sources/@roots/browserslist-config/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 29 + contributions: 32 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/browserslist-config/package.json b/sources/@roots/browserslist-config/package.json index 5bb2fc144c..ab0414bde1 100644 --- a/sources/@roots/browserslist-config/package.json +++ b/sources/@roots/browserslist-config/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-api/contributors.yml b/sources/@roots/bud-api/contributors.yml index 9da7880b45..7db7679ec9 100644 --- a/sources/@roots/bud-api/contributors.yml +++ b/sources/@roots/bud-api/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 141 + contributions: 145 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-api/package.json b/sources/@roots/bud-api/package.json index fedeb43148..32a596d2e3 100644 --- a/sources/@roots/bud-api/package.json +++ b/sources/@roots/bud-api/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-babel/contributors.yml b/sources/@roots/bud-babel/contributors.yml index 2e6b97304c..ff08ba1a85 100644 --- a/sources/@roots/bud-babel/contributors.yml +++ b/sources/@roots/bud-babel/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 72 + contributions: 76 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-babel/package.json b/sources/@roots/bud-babel/package.json index 66513f604c..0d3a079fb4 100644 --- a/sources/@roots/bud-babel/package.json +++ b/sources/@roots/bud-babel/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-build/contributors.yml b/sources/@roots/bud-build/contributors.yml index 6c801f664d..0fe2a4adc0 100644 --- a/sources/@roots/bud-build/contributors.yml +++ b/sources/@roots/bud-build/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 116 + contributions: 121 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-build/package.json b/sources/@roots/bud-build/package.json index 901d0e5bc4..95b48cdca3 100644 --- a/sources/@roots/bud-build/package.json +++ b/sources/@roots/bud-build/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-cache/contributors.yml b/sources/@roots/bud-cache/contributors.yml index c3c422386c..d6066cc647 100644 --- a/sources/@roots/bud-cache/contributors.yml +++ b/sources/@roots/bud-cache/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 69 + contributions: 73 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-cache/package.json b/sources/@roots/bud-cache/package.json index 1e0b58f443..4450e18c71 100644 --- a/sources/@roots/bud-cache/package.json +++ b/sources/@roots/bud-cache/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-client/contributors.yml b/sources/@roots/bud-client/contributors.yml index 7625ae96ae..2cd3be3343 100644 --- a/sources/@roots/bud-client/contributors.yml +++ b/sources/@roots/bud-client/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 54 + contributions: 57 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-client/package.json b/sources/@roots/bud-client/package.json index 129a156472..651dea4d78 100644 --- a/sources/@roots/bud-client/package.json +++ b/sources/@roots/bud-client/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-compiler/contributors.yml b/sources/@roots/bud-compiler/contributors.yml index 9d1401c1fa..1b7e81930d 100644 --- a/sources/@roots/bud-compiler/contributors.yml +++ b/sources/@roots/bud-compiler/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 89 + contributions: 94 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-compiler/package.json b/sources/@roots/bud-compiler/package.json index d162d53bd8..6be54804f4 100644 --- a/sources/@roots/bud-compiler/package.json +++ b/sources/@roots/bud-compiler/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-compress/contributors.yml b/sources/@roots/bud-compress/contributors.yml index 06ee630cdb..d37a44cb46 100644 --- a/sources/@roots/bud-compress/contributors.yml +++ b/sources/@roots/bud-compress/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 51 + contributions: 55 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-compress/package.json b/sources/@roots/bud-compress/package.json index 6438a3ab42..ab7a863a74 100644 --- a/sources/@roots/bud-compress/package.json +++ b/sources/@roots/bud-compress/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-criticalcss/contributors.yml b/sources/@roots/bud-criticalcss/contributors.yml index f70bf5cd5e..b16ba7e8f0 100644 --- a/sources/@roots/bud-criticalcss/contributors.yml +++ b/sources/@roots/bud-criticalcss/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 59 + contributions: 62 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-criticalcss/package.json b/sources/@roots/bud-criticalcss/package.json index d2c1852ea1..1ebe3f58f7 100644 --- a/sources/@roots/bud-criticalcss/package.json +++ b/sources/@roots/bud-criticalcss/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-dashboard/contributors.yml b/sources/@roots/bud-dashboard/contributors.yml index b1055b26c5..3cb917ceea 100644 --- a/sources/@roots/bud-dashboard/contributors.yml +++ b/sources/@roots/bud-dashboard/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 100 + contributions: 105 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-dashboard/package.json b/sources/@roots/bud-dashboard/package.json index ebc0888186..783cfd4783 100644 --- a/sources/@roots/bud-dashboard/package.json +++ b/sources/@roots/bud-dashboard/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-emotion/contributors.yml b/sources/@roots/bud-emotion/contributors.yml index 9df1d83fd1..29ed4ac46e 100644 --- a/sources/@roots/bud-emotion/contributors.yml +++ b/sources/@roots/bud-emotion/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 54 + contributions: 57 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-emotion/package.json b/sources/@roots/bud-emotion/package.json index 51c8c91469..a1a30b5bfd 100644 --- a/sources/@roots/bud-emotion/package.json +++ b/sources/@roots/bud-emotion/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-entrypoints/contributors.yml b/sources/@roots/bud-entrypoints/contributors.yml index f644ac19f8..4ac67c118b 100644 --- a/sources/@roots/bud-entrypoints/contributors.yml +++ b/sources/@roots/bud-entrypoints/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 42 + contributions: 45 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-entrypoints/package.json b/sources/@roots/bud-entrypoints/package.json index 34bf6f70eb..bef82d41ea 100644 --- a/sources/@roots/bud-entrypoints/package.json +++ b/sources/@roots/bud-entrypoints/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-esbuild/contributors.yml b/sources/@roots/bud-esbuild/contributors.yml index 7ea18345a7..2e6b97304c 100644 --- a/sources/@roots/bud-esbuild/contributors.yml +++ b/sources/@roots/bud-esbuild/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 68 + contributions: 72 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-esbuild/package.json b/sources/@roots/bud-esbuild/package.json index 0325f8cb25..ae703fc6a8 100644 --- a/sources/@roots/bud-esbuild/package.json +++ b/sources/@roots/bud-esbuild/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-eslint/contributors.yml b/sources/@roots/bud-eslint/contributors.yml index 53cf27a657..9dc0b63afc 100644 --- a/sources/@roots/bud-eslint/contributors.yml +++ b/sources/@roots/bud-eslint/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 78 + contributions: 82 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-eslint/package.json b/sources/@roots/bud-eslint/package.json index 193380ecb4..74010acaae 100644 --- a/sources/@roots/bud-eslint/package.json +++ b/sources/@roots/bud-eslint/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,13 +21,13 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" }, { - "name": "Christian Widlund", "email": "christian.widlund@gmail.com", + "name": "Christian Widlund", "url": "https://github.com/chrillep" } ], diff --git a/sources/@roots/bud-extensions/contributors.yml b/sources/@roots/bud-extensions/contributors.yml index b1055b26c5..3cb917ceea 100644 --- a/sources/@roots/bud-extensions/contributors.yml +++ b/sources/@roots/bud-extensions/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 100 + contributions: 105 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-extensions/package.json b/sources/@roots/bud-extensions/package.json index 7c90e22ee5..dc01f91bbc 100644 --- a/sources/@roots/bud-extensions/package.json +++ b/sources/@roots/bud-extensions/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-framework/contributors.yml b/sources/@roots/bud-framework/contributors.yml index 3be706bd77..132d3ca3f3 100644 --- a/sources/@roots/bud-framework/contributors.yml +++ b/sources/@roots/bud-framework/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 207 + contributions: 213 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-framework/package.json b/sources/@roots/bud-framework/package.json index 3815d9a384..bd150f1f1d 100644 --- a/sources/@roots/bud-framework/package.json +++ b/sources/@roots/bud-framework/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-hooks/contributors.yml b/sources/@roots/bud-hooks/contributors.yml index 7ea18345a7..2e6b97304c 100644 --- a/sources/@roots/bud-hooks/contributors.yml +++ b/sources/@roots/bud-hooks/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 68 + contributions: 72 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-hooks/package.json b/sources/@roots/bud-hooks/package.json index 5b267987cf..8eaa74f371 100644 --- a/sources/@roots/bud-hooks/package.json +++ b/sources/@roots/bud-hooks/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-imagemin/contributors.yml b/sources/@roots/bud-imagemin/contributors.yml index 1a440c49f3..b20d771552 100644 --- a/sources/@roots/bud-imagemin/contributors.yml +++ b/sources/@roots/bud-imagemin/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 55 + contributions: 59 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-imagemin/package.json b/sources/@roots/bud-imagemin/package.json index 3b446e68d6..c5db71b2d1 100644 --- a/sources/@roots/bud-imagemin/package.json +++ b/sources/@roots/bud-imagemin/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-mdx/contributors.yml b/sources/@roots/bud-mdx/contributors.yml index 30d2a1c6ea..29ed4ac46e 100644 --- a/sources/@roots/bud-mdx/contributors.yml +++ b/sources/@roots/bud-mdx/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 53 + contributions: 57 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-mdx/package.json b/sources/@roots/bud-mdx/package.json index 318f7c22ac..d130e1c263 100644 --- a/sources/@roots/bud-mdx/package.json +++ b/sources/@roots/bud-mdx/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-minify/contributors.yml b/sources/@roots/bud-minify/contributors.yml index c1c8eacd50..4293a2865a 100644 --- a/sources/@roots/bud-minify/contributors.yml +++ b/sources/@roots/bud-minify/contributors.yml @@ -2,5 +2,5 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 4 + contributions: 8 email: developers@tinypixel.dev diff --git a/sources/@roots/bud-minify/package.json b/sources/@roots/bud-minify/package.json index 2dd4b2f3a7..fba3d525a6 100644 --- a/sources/@roots/bud-minify/package.json +++ b/sources/@roots/bud-minify/package.json @@ -7,8 +7,8 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" } ], diff --git a/sources/@roots/bud-postcss/contributors.yml b/sources/@roots/bud-postcss/contributors.yml index 9fcce4372a..60b811ac70 100644 --- a/sources/@roots/bud-postcss/contributors.yml +++ b/sources/@roots/bud-postcss/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 71 + contributions: 75 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-postcss/package.json b/sources/@roots/bud-postcss/package.json index 8779000bb0..185c1265e5 100644 --- a/sources/@roots/bud-postcss/package.json +++ b/sources/@roots/bud-postcss/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-preset-recommend/contributors.yml b/sources/@roots/bud-preset-recommend/contributors.yml index 29ed4ac46e..5771fc53fc 100644 --- a/sources/@roots/bud-preset-recommend/contributors.yml +++ b/sources/@roots/bud-preset-recommend/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 57 + contributions: 61 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-preset-recommend/package.json b/sources/@roots/bud-preset-recommend/package.json index 87e86f51e6..62acdbd4a7 100644 --- a/sources/@roots/bud-preset-recommend/package.json +++ b/sources/@roots/bud-preset-recommend/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-preset-wordpress/contributors.yml b/sources/@roots/bud-preset-wordpress/contributors.yml index 69fb776bea..9feed1918b 100644 --- a/sources/@roots/bud-preset-wordpress/contributors.yml +++ b/sources/@roots/bud-preset-wordpress/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 73 + contributions: 76 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-preset-wordpress/package.json b/sources/@roots/bud-preset-wordpress/package.json index ff76b4a03c..cf8e707379 100644 --- a/sources/@roots/bud-preset-wordpress/package.json +++ b/sources/@roots/bud-preset-wordpress/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-prettier/contributors.yml b/sources/@roots/bud-prettier/contributors.yml index 6543ee8ad0..d687bdfe9a 100644 --- a/sources/@roots/bud-prettier/contributors.yml +++ b/sources/@roots/bud-prettier/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 50 + contributions: 54 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-prettier/package.json b/sources/@roots/bud-prettier/package.json index b78c4fef46..0a55656576 100644 --- a/sources/@roots/bud-prettier/package.json +++ b/sources/@roots/bud-prettier/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,13 +21,13 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" }, { - "name": "Nicolas Lemoine", "email": "nico.lemoine@gmail.com", + "name": "Nicolas Lemoine", "url": "https://github.com/nlemoine" } ], diff --git a/sources/@roots/bud-purgecss/contributors.yml b/sources/@roots/bud-purgecss/contributors.yml index b3ef7a586f..30d2a1c6ea 100644 --- a/sources/@roots/bud-purgecss/contributors.yml +++ b/sources/@roots/bud-purgecss/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 50 + contributions: 53 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-purgecss/package.json b/sources/@roots/bud-purgecss/package.json index 4ff0e4f0d9..4ab530d7f4 100644 --- a/sources/@roots/bud-purgecss/package.json +++ b/sources/@roots/bud-purgecss/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-react/contributors.yml b/sources/@roots/bud-react/contributors.yml index d6066cc647..a85bad2f0c 100644 --- a/sources/@roots/bud-react/contributors.yml +++ b/sources/@roots/bud-react/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 73 + contributions: 78 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-react/package.json b/sources/@roots/bud-react/package.json index ac4b1dd063..f1aa368d2b 100644 --- a/sources/@roots/bud-react/package.json +++ b/sources/@roots/bud-react/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-sass/contributors.yml b/sources/@roots/bud-sass/contributors.yml index d6066cc647..98a54a42de 100644 --- a/sources/@roots/bud-sass/contributors.yml +++ b/sources/@roots/bud-sass/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 73 + contributions: 77 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-sass/package.json b/sources/@roots/bud-sass/package.json index 08a1c0af96..087da684be 100644 --- a/sources/@roots/bud-sass/package.json +++ b/sources/@roots/bud-sass/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-server/contributors.yml b/sources/@roots/bud-server/contributors.yml index 56276167b8..a742262ac6 100644 --- a/sources/@roots/bud-server/contributors.yml +++ b/sources/@roots/bud-server/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 109 + contributions: 114 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-server/package.json b/sources/@roots/bud-server/package.json index a45702a020..364cfc8a82 100644 --- a/sources/@roots/bud-server/package.json +++ b/sources/@roots/bud-server/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-solid/contributors.yml b/sources/@roots/bud-solid/contributors.yml index a176b3a4aa..34f343175b 100644 --- a/sources/@roots/bud-solid/contributors.yml +++ b/sources/@roots/bud-solid/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 46 + contributions: 49 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-solid/package.json b/sources/@roots/bud-solid/package.json index 939f745c4a..fdc8b34d87 100644 --- a/sources/@roots/bud-solid/package.json +++ b/sources/@roots/bud-solid/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-stylelint/contributors.yml b/sources/@roots/bud-stylelint/contributors.yml index aa19aca0dd..76dcd79a8f 100644 --- a/sources/@roots/bud-stylelint/contributors.yml +++ b/sources/@roots/bud-stylelint/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 60 + contributions: 64 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-stylelint/package.json b/sources/@roots/bud-stylelint/package.json index 4d3de26e91..8f0283d809 100644 --- a/sources/@roots/bud-stylelint/package.json +++ b/sources/@roots/bud-stylelint/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-support/contributors.yml b/sources/@roots/bud-support/contributors.yml index 9d9938eecd..07180b6a0a 100644 --- a/sources/@roots/bud-support/contributors.yml +++ b/sources/@roots/bud-support/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 74 + contributions: 79 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-support/package.json b/sources/@roots/bud-support/package.json index cd6c171970..1fea0e9e75 100644 --- a/sources/@roots/bud-support/package.json +++ b/sources/@roots/bud-support/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-swc/contributors.yml b/sources/@roots/bud-swc/contributors.yml index 5b1db60992..7625ae96ae 100644 --- a/sources/@roots/bud-swc/contributors.yml +++ b/sources/@roots/bud-swc/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 50 + contributions: 54 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-swc/package.json b/sources/@roots/bud-swc/package.json index eb99cdc95d..1ea7934817 100644 --- a/sources/@roots/bud-swc/package.json +++ b/sources/@roots/bud-swc/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-tailwindcss-theme-json/contributors.yml b/sources/@roots/bud-tailwindcss-theme-json/contributors.yml index 1ad9c0c7b6..7fe9070746 100644 --- a/sources/@roots/bud-tailwindcss-theme-json/contributors.yml +++ b/sources/@roots/bud-tailwindcss-theme-json/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 20 + contributions: 23 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-tailwindcss-theme-json/package.json b/sources/@roots/bud-tailwindcss-theme-json/package.json index c2e61854f6..2ee534db88 100644 --- a/sources/@roots/bud-tailwindcss-theme-json/package.json +++ b/sources/@roots/bud-tailwindcss-theme-json/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-tailwindcss/contributors.yml b/sources/@roots/bud-tailwindcss/contributors.yml index 30f7d8bbc8..db4d8ba49b 100644 --- a/sources/@roots/bud-tailwindcss/contributors.yml +++ b/sources/@roots/bud-tailwindcss/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 79 + contributions: 83 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-tailwindcss/package.json b/sources/@roots/bud-tailwindcss/package.json index f19f800252..982f3c4292 100644 --- a/sources/@roots/bud-tailwindcss/package.json +++ b/sources/@roots/bud-tailwindcss/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Joshua Fredrickson", "email": "joshua@orangepineapple.com", + "name": "Joshua Fredrickson", "url": "https://github.com/joshuafredrickson" }, { @@ -30,13 +30,13 @@ "url": "https://github.com/QWp6t" }, { - "name": "Alex Danylyschyn", "email": "alex@dyyy.dev", + "name": "Alex Danylyschyn", "url": "https://github.com/alexdanylyschyn" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-typescript/contributors.yml b/sources/@roots/bud-typescript/contributors.yml index b5e60bd66e..fa30589b23 100644 --- a/sources/@roots/bud-typescript/contributors.yml +++ b/sources/@roots/bud-typescript/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 87 + contributions: 91 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-typescript/package.json b/sources/@roots/bud-typescript/package.json index 53a34aa52c..5b19081d87 100644 --- a/sources/@roots/bud-typescript/package.json +++ b/sources/@roots/bud-typescript/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-vue/contributors.yml b/sources/@roots/bud-vue/contributors.yml index 9da87fc6f4..1c6ce86740 100644 --- a/sources/@roots/bud-vue/contributors.yml +++ b/sources/@roots/bud-vue/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 73 + contributions: 77 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-vue/package.json b/sources/@roots/bud-vue/package.json index 40c0245308..a3c84fc3d9 100644 --- a/sources/@roots/bud-vue/package.json +++ b/sources/@roots/bud-vue/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,13 +21,13 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" }, { - "name": "Tom Lawton", "email": "tom.lawton@cndu.it", + "name": "Tom Lawton", "url": "https://github.com/talss89" } ], diff --git a/sources/@roots/bud-wordpress-dependencies/contributors.yml b/sources/@roots/bud-wordpress-dependencies/contributors.yml index f644ac19f8..4ac67c118b 100644 --- a/sources/@roots/bud-wordpress-dependencies/contributors.yml +++ b/sources/@roots/bud-wordpress-dependencies/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 42 + contributions: 45 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-wordpress-dependencies/package.json b/sources/@roots/bud-wordpress-dependencies/package.json index 74f21c6557..417191db21 100644 --- a/sources/@roots/bud-wordpress-dependencies/package.json +++ b/sources/@roots/bud-wordpress-dependencies/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-wordpress-externals/contributors.yml b/sources/@roots/bud-wordpress-externals/contributors.yml index f644ac19f8..4ac67c118b 100644 --- a/sources/@roots/bud-wordpress-externals/contributors.yml +++ b/sources/@roots/bud-wordpress-externals/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 42 + contributions: 45 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-wordpress-externals/package.json b/sources/@roots/bud-wordpress-externals/package.json index 680b96cbaf..585d26f1f7 100644 --- a/sources/@roots/bud-wordpress-externals/package.json +++ b/sources/@roots/bud-wordpress-externals/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud-wordpress-theme-json/contributors.yml b/sources/@roots/bud-wordpress-theme-json/contributors.yml index c480613192..ab7bc70906 100644 --- a/sources/@roots/bud-wordpress-theme-json/contributors.yml +++ b/sources/@roots/bud-wordpress-theme-json/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 22 + contributions: 25 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud-wordpress-theme-json/package.json b/sources/@roots/bud-wordpress-theme-json/package.json index aa373c6d6e..886fd2dfdd 100644 --- a/sources/@roots/bud-wordpress-theme-json/package.json +++ b/sources/@roots/bud-wordpress-theme-json/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud/contributors.yml b/sources/@roots/bud/contributors.yml index d4cffac5e3..79a46bd62c 100644 --- a/sources/@roots/bud/contributors.yml +++ b/sources/@roots/bud/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 184 + contributions: 189 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/bud/package.json b/sources/@roots/bud/package.json index dc32166654..2ada122697 100644 --- a/sources/@roots/bud/package.json +++ b/sources/@roots/bud/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/bud/src/index.ts b/sources/@roots/bud/src/index.ts index fd57ccdb6d..f6f9c40e74 100644 --- a/sources/@roots/bud/src/index.ts +++ b/sources/@roots/bud/src/index.ts @@ -20,5 +20,5 @@ /// export {Bud} from '@roots/bud/bud' -export * from '@roots/bud/factory' -export * from '@roots/bud/instance' +export {factory} from '@roots/bud/factory' +export {get, instance as bud, set} from '@roots/bud/instance' diff --git a/sources/@roots/container/contributors.yml b/sources/@roots/container/contributors.yml index f0ec5733df..f3d405570b 100644 --- a/sources/@roots/container/contributors.yml +++ b/sources/@roots/container/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 39 + contributions: 42 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/container/package.json b/sources/@roots/container/package.json index 309f2b1680..4b4d9bc41e 100644 --- a/sources/@roots/container/package.json +++ b/sources/@roots/container/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/critical-css-webpack-plugin/contributors.yml b/sources/@roots/critical-css-webpack-plugin/contributors.yml index f0ec5733df..47bf4eab03 100644 --- a/sources/@roots/critical-css-webpack-plugin/contributors.yml +++ b/sources/@roots/critical-css-webpack-plugin/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 39 + contributions: 43 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/critical-css-webpack-plugin/package.json b/sources/@roots/critical-css-webpack-plugin/package.json index 14fab85232..18cd8b8ff0 100644 --- a/sources/@roots/critical-css-webpack-plugin/package.json +++ b/sources/@roots/critical-css-webpack-plugin/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/dependencies/contributors.yml b/sources/@roots/dependencies/contributors.yml index c533f881fa..f0ec5733df 100644 --- a/sources/@roots/dependencies/contributors.yml +++ b/sources/@roots/dependencies/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 35 + contributions: 39 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/dependencies/package.json b/sources/@roots/dependencies/package.json index fb01a81ee0..b7c44ad1a1 100644 --- a/sources/@roots/dependencies/package.json +++ b/sources/@roots/dependencies/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/entrypoints-webpack-plugin/contributors.yml b/sources/@roots/entrypoints-webpack-plugin/contributors.yml index ff12a379af..fa4e31cbe3 100644 --- a/sources/@roots/entrypoints-webpack-plugin/contributors.yml +++ b/sources/@roots/entrypoints-webpack-plugin/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 40 + contributions: 44 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/entrypoints-webpack-plugin/package.json b/sources/@roots/entrypoints-webpack-plugin/package.json index a99f9374fe..5265ea4545 100644 --- a/sources/@roots/entrypoints-webpack-plugin/package.json +++ b/sources/@roots/entrypoints-webpack-plugin/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/eslint-config/contributors.yml b/sources/@roots/eslint-config/contributors.yml index e4f28b4b57..fa3f09f2fc 100644 --- a/sources/@roots/eslint-config/contributors.yml +++ b/sources/@roots/eslint-config/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 34 + contributions: 37 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/eslint-config/package.json b/sources/@roots/eslint-config/package.json index c15b076480..eac7207927 100644 --- a/sources/@roots/eslint-config/package.json +++ b/sources/@roots/eslint-config/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/filesystem/contributors.yml b/sources/@roots/filesystem/contributors.yml index 47bf4eab03..1af5dfd9b8 100644 --- a/sources/@roots/filesystem/contributors.yml +++ b/sources/@roots/filesystem/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 43 + contributions: 47 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/filesystem/package.json b/sources/@roots/filesystem/package.json index c65293ede6..b432ea2df2 100644 --- a/sources/@roots/filesystem/package.json +++ b/sources/@roots/filesystem/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/sage/contributors.yml b/sources/@roots/sage/contributors.yml index b320ea514b..c749410f45 100644 --- a/sources/@roots/sage/contributors.yml +++ b/sources/@roots/sage/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 114 + contributions: 118 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/sage/package.json b/sources/@roots/sage/package.json index 2079d111f3..431eeda94d 100644 --- a/sources/@roots/sage/package.json +++ b/sources/@roots/sage/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Joshua Fredrickson", "email": "joshua@orangepineapple.com", + "name": "Joshua Fredrickson", "url": "https://github.com/joshuafredrickson" }, { @@ -26,8 +26,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/wordpress-dependencies-webpack-plugin/contributors.yml b/sources/@roots/wordpress-dependencies-webpack-plugin/contributors.yml index d39b27a2af..bcc2edbd33 100644 --- a/sources/@roots/wordpress-dependencies-webpack-plugin/contributors.yml +++ b/sources/@roots/wordpress-dependencies-webpack-plugin/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 38 + contributions: 42 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/wordpress-dependencies-webpack-plugin/package.json b/sources/@roots/wordpress-dependencies-webpack-plugin/package.json index 3096ab6f6d..a9b0cb6c5d 100644 --- a/sources/@roots/wordpress-dependencies-webpack-plugin/package.json +++ b/sources/@roots/wordpress-dependencies-webpack-plugin/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/wordpress-externals-webpack-plugin/contributors.yml b/sources/@roots/wordpress-externals-webpack-plugin/contributors.yml index 9dbf03ba50..d60fb7f3bc 100644 --- a/sources/@roots/wordpress-externals-webpack-plugin/contributors.yml +++ b/sources/@roots/wordpress-externals-webpack-plugin/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 35 + contributions: 39 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/wordpress-externals-webpack-plugin/package.json b/sources/@roots/wordpress-externals-webpack-plugin/package.json index 99cf138a59..52f49e990e 100644 --- a/sources/@roots/wordpress-externals-webpack-plugin/package.json +++ b/sources/@roots/wordpress-externals-webpack-plugin/package.json @@ -7,13 +7,13 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { @@ -21,8 +21,8 @@ "url": "https://github.com/QWp6t" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/wordpress-hmr/contributors.yml b/sources/@roots/wordpress-hmr/contributors.yml index d9b32d089b..c429ea89f8 100644 --- a/sources/@roots/wordpress-hmr/contributors.yml +++ b/sources/@roots/wordpress-hmr/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 34 + contributions: 38 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/wordpress-hmr/package.json b/sources/@roots/wordpress-hmr/package.json index 1a36355d8a..7090f55632 100644 --- a/sources/@roots/wordpress-hmr/package.json +++ b/sources/@roots/wordpress-hmr/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/wordpress-theme-json-webpack-plugin/contributors.yml b/sources/@roots/wordpress-theme-json-webpack-plugin/contributors.yml index 3ee0adee0d..ab092ab570 100644 --- a/sources/@roots/wordpress-theme-json-webpack-plugin/contributors.yml +++ b/sources/@roots/wordpress-theme-json-webpack-plugin/contributors.yml @@ -2,7 +2,7 @@ login: kellymears avatar: https://avatars.githubusercontent.com/u/397606?v=4 url: https://github.com/kellymears - contributions: 15 + contributions: 19 email: developers@tinypixel.dev - name: Ben Word login: retlehs diff --git a/sources/@roots/wordpress-theme-json-webpack-plugin/package.json b/sources/@roots/wordpress-theme-json-webpack-plugin/package.json index d67f4fbeab..74a859cfaf 100644 --- a/sources/@roots/wordpress-theme-json-webpack-plugin/package.json +++ b/sources/@roots/wordpress-theme-json-webpack-plugin/package.json @@ -7,18 +7,18 @@ }, "contributors": [ { - "name": "Kelly Mears", "email": "developers@tinypixel.dev", + "name": "Kelly Mears", "url": "https://github.com/kellymears" }, { - "name": "Ben Word", "email": "ben@benword.com", + "name": "Ben Word", "url": "https://github.com/retlehs" }, { - "name": "Brandon", "email": "brandon@tendency.me", + "name": "Brandon", "url": "https://github.com/Log1x" } ], diff --git a/sources/@roots/wordpress-transforms/contributors.yml b/sources/@roots/wordpress-transforms/contributors.yml index fe51488c70..a0a886079f 100644 --- a/sources/@roots/wordpress-transforms/contributors.yml +++ b/sources/@roots/wordpress-transforms/contributors.yml @@ -1 +1,6 @@ -[] +- name: Kelly Mears + login: kellymears + avatar: https://avatars.githubusercontent.com/u/397606?v=4 + url: https://github.com/kellymears + contributions: 3 + email: developers@tinypixel.dev diff --git a/sources/@roots/wordpress-transforms/package.json b/sources/@roots/wordpress-transforms/package.json index a0a5d7b2f5..0d12043e8f 100644 --- a/sources/@roots/wordpress-transforms/package.json +++ b/sources/@roots/wordpress-transforms/package.json @@ -5,7 +5,13 @@ "engines": { "node": ">=16" }, - "contributors": [], + "contributors": [ + { + "email": "developers@tinypixel.dev", + "name": "Kelly Mears", + "url": "https://github.com/kellymears" + } + ], "license": "MIT", "funding": { "type": "github sponsors", diff --git a/sources/create-bud-app/templates/package.json.hbs b/sources/create-bud-app/templates/package.json.hbs index eb5f356265..c90ed92590 100644 --- a/sources/create-bud-app/templates/package.json.hbs +++ b/sources/create-bud-app/templates/package.json.hbs @@ -1,5 +1,6 @@ { "name": "{{name}}", + "$schema": "https://bud.js.org/bud.package.json", "description": "{{description}}", "engines": { "node": ">=16" @@ -15,7 +16,6 @@ ], "scripts": { "build": "bud build production", - "dev": "bud build development", - "ci": "bud build --no-cache" + "dev": "bud build development" } } diff --git a/tests/integration/__snapshots__/babel.test.ts.snap b/tests/integration/__snapshots__/babel.test.ts.snap index 2638023467..999f8ecc9a 100644 --- a/tests/integration/__snapshots__/babel.test.ts.snap +++ b/tests/integration/__snapshots__/babel.test.ts.snap @@ -1,6 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`examples/babel > should compile js and css as expected 1`] = ` +exports[`examples/babel > should compile js as expected 1`] = ` { "app.css": "css/app.css", "app.js": "js/app.js", diff --git a/tests/integration/__snapshots__/html-template.test.ts.snap b/tests/integration/__snapshots__/html-template.test.ts.snap index 0ac92e8d73..a09923e9d5 100644 --- a/tests/integration/__snapshots__/html-template.test.ts.snap +++ b/tests/integration/__snapshots__/html-template.test.ts.snap @@ -1,3 +1,3 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`examples/html-template > should compile js and css as expected 1`] = `"Demo
#root content
"`; +exports[`examples/html-template > should compile js and css as expected 1`] = `"Demo
#root content
"`; diff --git a/tests/integration/__snapshots__/tailwindcss.test.ts.snap b/tests/integration/__snapshots__/tailwindcss.test.ts.snap deleted file mode 100644 index 6ed1185800..0000000000 --- a/tests/integration/__snapshots__/tailwindcss.test.ts.snap +++ /dev/null @@ -1,11 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`examples/tailwindcss > should compile js and css as expected 1`] = ` -{ - "app.css": "css/app.css", - "app.js": "js/app.js", - "entrypoints.json": "entrypoints.json", - "index.html": "index.html", - "runtime.js": "js/runtime.js", -} -`; diff --git a/tests/integration/babel.test.ts b/tests/integration/babel.test.ts index adf6020547..4c6c528ace 100644 --- a/tests/integration/babel.test.ts +++ b/tests/integration/babel.test.ts @@ -1,14 +1,17 @@ -import setup from '@repo/test-kit/setup' -import {describe, expect, it} from 'vitest' +import setup, {Project} from '@repo/test-kit/setup' +import {beforeAll, describe, expect, it} from 'vitest' describe(`examples/babel`, () => { - it(`should compile js and css as expected`, async () => { - const test = setup({label: `@examples/babel`}) - await test.install() + let test: Project + + beforeAll(async () => { + test = await setup({label: `@examples/babel`}).install() await test.build() + }) - expect(test.assets[`app.js`].length).toBeGreaterThan(10) - expect(test.assets[`app.js`].includes(`import `)).toBeFalsy() + it(`should compile js as expected`, async () => { + expect(test.getAsset(`app.js`).length).toBeGreaterThan(10) + expect(test.getAsset(`app.js`).includes(`import `)).toBeFalsy() expect(test.manifest).toMatchSnapshot() }) }) diff --git a/tests/integration/purgecss.test.ts b/tests/integration/purgecss.test.ts index f889f5445b..1805a0b29d 100644 --- a/tests/integration/purgecss.test.ts +++ b/tests/integration/purgecss.test.ts @@ -8,9 +8,9 @@ describe(`examples/purgecss`, () => { await test.install() await test.build() - expect(test.assets[`app.css`].length).toBeGreaterThan(10) - expect(test.assets[`app.css`].includes(`@import`)).toBeFalsy() - expect(test.assets[`app.css`].includes(`h2`)).toBeTruthy() - expect(test.assets[`app.css`]).not.toMatch(/\.*h3.*/) + expect(test.assets[`main.css`].length).toBeGreaterThan(10) + expect(test.assets[`main.css`].includes(`@import`)).toBeFalsy() + expect(test.assets[`main.css`].includes(`h2`)).toBeTruthy() + expect(test.assets[`main.css`]).not.toMatch(/\.*h3.*/) }) }) diff --git a/tests/integration/sage.test.ts b/tests/integration/sage.test.ts index 675640a6b5..be36b4c65e 100644 --- a/tests/integration/sage.test.ts +++ b/tests/integration/sage.test.ts @@ -1,193 +1,236 @@ -import setup from '@repo/test-kit/setup' +import setup, {type Project} from '@repo/test-kit/setup' -import {describe, expect, it} from 'vitest' -import fs from 'fs-jetpack' +import {beforeAll, describe, expect, it} from 'vitest' describe(`examples/sage`, () => { - it(`should compile js and css as expected`, async () => { - const test = setup({ - label: `@examples/sage`, - dist: `public`, - }) - await test.install() - await test.build() - - expect(test.entrypoints.app.css).toBeInstanceOf(Array) - expect(test.entrypoints.app.css).toHaveLength(1) - expect(test.entrypoints.app.dependencies).toEqual([]) - - expect(test.entrypoints.editor.css).toBeInstanceOf(Array) - expect(test.entrypoints.editor.css).toHaveLength(1) - - expect(test.assets[`runtime.js`].length).toBeGreaterThan(10) - expect(test.assets[`runtime.js`].includes(`import `)).toBeFalsy() - - expect(test.assets[`app.js`].length).toBeGreaterThan(10) - expect(test.assets[`app.js`].includes(`import `)).toBeFalsy() - - expect(test.assets[`app.css`].length).toBeGreaterThan(10) - expect(test.assets[`app.css`].includes(`@import`)).toBe(false) - - expect(test.assets[`app.css`].includes(`@apply`)).toBe(false) - expect(test.assets[`app.css`].match(/ /)).toBeFalsy() - expect(test.assets[`app.css`].match(/\\n/)).toBeFalsy() - - expect( - test.assets[`app.css`].includes(`.text-xl{font-size:1.25rem`), - ).toBeTruthy() - expect( - test.assets[`app.css`].includes(`.text-custom{font-size:.625rem`), - ).toBeTruthy() - - const themeJson = await fs.readAsync(test.path(`theme.json`), `json`) - expect(themeJson).toMatchInlineSnapshot(` - { - "$schema": "https://schemas.wp.org/trunk/theme.json", - "__generated__": "⚠️ This file is generated. Do not edit.", - "settings": { - "color": { - "custom": false, - "customGradient": false, - "palette": [ - { - "color": "#f7fafc", - "name": "Brand Gray", - "slug": "brand-gray", - }, - ], + let sage: Project + + beforeAll(async () => { + sage = await setup({label: `@examples/sage`, dist: `public`}) + .install() + .then(async project => await project.build()) + }) + + it(`should index 'app' entrypoint as expected`, () => { + expect(sage.hasEntrypoint(`app`)).toBe(true) + + const {css, dependencies, js} = sage.getEntrypoint(`app`) + + expect(css).toBeInstanceOf(Array) + expect(css).toHaveLength(1) + expect(js).toBeInstanceOf(Array) + expect(js).toHaveLength(2) + expect(dependencies).toEqual([]) + }) + + it(`should index 'editor' entrypoint as expected`, () => { + expect(sage.hasEntrypoint(`editor`)).toBe(true) + + const {css, dependencies, js} = sage.getEntrypoint(`editor`) + + expect(css).toBeInstanceOf(Array) + expect(css).toHaveLength(1) + expect(js).toBeInstanceOf(Array) + expect(js).toHaveLength(2) + expect(dependencies).toStrictEqual( + expect.arrayContaining([ + `wp-edit-post`, + `wp-blocks`, + `wp-dom-ready`, + ]), + ) + }) + + it(`should build 'runtime.js' asset as expected`, () => { + expect(sage.hasAsset(`runtime.js`)).toBe(true) + + const asset = sage.getAsset(`runtime.js`) + + expect(asset.length).toBeGreaterThan(10) + expect(asset.includes(`import `)).toBeFalsy() + }) + + it(`should build 'app.js' asset as expected`, () => { + const asset = sage.getAsset(`app.js`) + + expect(asset.length).toBeGreaterThan(10) + expect(asset.includes(`import `)).toBeFalsy() + }) + + it(`should build 'app.css' asset as expected`, () => { + const asset = sage.getAsset(`app.css`) + + expect(asset.length).toBeGreaterThan(10) + expect(asset.includes(`@import`)).toBe(false) + + expect(asset.includes(`@apply`)).toBe(false) + expect(asset.match(/ /)).toBeFalsy() + expect(asset.match(/\\n/)).toBeFalsy() + + expect(asset.includes(`.text-xl{font-size:1.25rem`)).toBeTruthy() + expect(asset.includes(`.text-custom{font-size:.625rem`)).toBeTruthy() + }) + + it(`should build 'editor.js' asset as expected`, () => { + const asset = sage.getAsset(`editor.js`) + + expect(asset.length).toBeGreaterThan(10) + expect(asset.includes(`import `)).toBeFalsy() + }) + + it(`should build 'editor.css' asset as expected`, () => { + const asset = sage.getAsset(`editor.css`) + + expect(asset.length).toBeGreaterThan(10) + expect(asset.includes(`@import`)).toBe(false) + expect(asset.includes(`@apply`)).toBe(false) + expect(asset.match(/ /)).toBeFalsy() + expect(asset.match(/\\n/)).toBeFalsy() + }) + + it(`should build 'theme.json' asset as expected`, () => { + expect(sage.getAsset(`../theme.json`)).toMatchInlineSnapshot(` + "{ + \\"__generated__\\": \\"⚠️ This file is generated. Do not edit.\\", + \\"$schema\\": \\"https://schemas.wp.org/trunk/theme.json\\", + \\"version\\": 2, + \\"settings\\": { + \\"color\\": { + \\"custom\\": false, + \\"customGradient\\": false, + \\"palette\\": [ + { + \\"color\\": \\"#f7fafc\\", + \\"name\\": \\"Brand Gray\\", + \\"slug\\": \\"brand-gray\\" + } + ] }, - "custom": { - "spacing": {}, - "typography": { - "font-size": {}, - "line-height": {}, - }, + \\"custom\\": { + \\"spacing\\": {}, + \\"typography\\": { + \\"font-size\\": {}, + \\"line-height\\": {} + } }, - "spacing": { - "padding": true, - "units": [ - "px", - "%", - "em", - "rem", - "vw", - "vh", - ], + \\"spacing\\": { + \\"padding\\": true, + \\"units\\": [ + \\"px\\", + \\"%\\", + \\"em\\", + \\"rem\\", + \\"vw\\", + \\"vh\\" + ] }, - "typography": { - "customFontSize": false, - "dropCap": false, - "fontFamilies": [ - { - "fontFamily": "Inter,sans-serif", - "name": "Inter", - "slug": "sans", - }, + \\"typography\\": { + \\"customFontSize\\": false, + \\"dropCap\\": false, + \\"fontFamilies\\": [ { - "fontFamily": "ui-serif,Georgia,Cambria,\\"Times New Roman\\",Times,serif", - "name": "Ui-serif", - "slug": "serif", + \\"fontFamily\\": \\"Inter,sans-serif\\", + \\"name\\": \\"Inter\\", + \\"slug\\": \\"sans\\" }, { - "fontFamily": "ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\\"Liberation Mono\\",\\"Courier New\\",monospace", - "name": "Ui-monospace", - "slug": "mono", + \\"fontFamily\\": \\"ui-serif,Georgia,Cambria,\\\\\\"Times New Roman\\\\\\",Times,serif\\", + \\"name\\": \\"Ui-serif\\", + \\"slug\\": \\"serif\\" }, + { + \\"fontFamily\\": \\"ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\\\\\\"Liberation Mono\\\\\\",\\\\\\"Courier New\\\\\\",monospace\\", + \\"name\\": \\"Ui-monospace\\", + \\"slug\\": \\"mono\\" + } ], - "fontSizes": [ + \\"fontSizes\\": [ { - "name": "xs", - "size": "0.75rem", - "slug": "xs", + \\"name\\": \\"xs\\", + \\"size\\": \\"0.75rem\\", + \\"slug\\": \\"xs\\" }, { - "name": "sm", - "size": "0.875rem", - "slug": "sm", + \\"name\\": \\"sm\\", + \\"size\\": \\"0.875rem\\", + \\"slug\\": \\"sm\\" }, { - "name": "base", - "size": "1rem", - "slug": "base", + \\"name\\": \\"base\\", + \\"size\\": \\"1rem\\", + \\"slug\\": \\"base\\" }, { - "name": "lg", - "size": "1.125rem", - "slug": "lg", + \\"name\\": \\"lg\\", + \\"size\\": \\"1.125rem\\", + \\"slug\\": \\"lg\\" }, { - "name": "xl", - "size": "1.25rem", - "slug": "xl", + \\"name\\": \\"xl\\", + \\"size\\": \\"1.25rem\\", + \\"slug\\": \\"xl\\" }, { - "name": "2xl", - "size": "1.5rem", - "slug": "2xl", + \\"name\\": \\"2xl\\", + \\"size\\": \\"1.5rem\\", + \\"slug\\": \\"2xl\\" }, { - "name": "3xl", - "size": "1.875rem", - "slug": "3xl", + \\"name\\": \\"3xl\\", + \\"size\\": \\"1.875rem\\", + \\"slug\\": \\"3xl\\" }, { - "name": "4xl", - "size": "2.25rem", - "slug": "4xl", + \\"name\\": \\"4xl\\", + \\"size\\": \\"2.25rem\\", + \\"slug\\": \\"4xl\\" }, { - "name": "5xl", - "size": "3rem", - "slug": "5xl", + \\"name\\": \\"5xl\\", + \\"size\\": \\"3rem\\", + \\"slug\\": \\"5xl\\" }, { - "name": "6xl", - "size": "3.75rem", - "slug": "6xl", + \\"name\\": \\"6xl\\", + \\"size\\": \\"3.75rem\\", + \\"slug\\": \\"6xl\\" }, { - "name": "7xl", - "size": "4.5rem", - "slug": "7xl", + \\"name\\": \\"7xl\\", + \\"size\\": \\"4.5rem\\", + \\"slug\\": \\"7xl\\" }, { - "name": "8xl", - "size": "6rem", - "slug": "8xl", + \\"name\\": \\"8xl\\", + \\"size\\": \\"6rem\\", + \\"slug\\": \\"8xl\\" }, { - "name": "9xl", - "size": "8rem", - "slug": "9xl", + \\"name\\": \\"9xl\\", + \\"size\\": \\"8rem\\", + \\"slug\\": \\"9xl\\" }, { - "name": "custom", - "size": ".625rem", - "slug": "custom", - }, - ], - }, - }, - "version": 2, - } + \\"name\\": \\"custom\\", + \\"size\\": \\".625rem\\", + \\"slug\\": \\"custom\\" + } + ] + } + } + }" `) + }) - expect(test.assets[`editor.js`].length).toBeGreaterThan(10) - expect(test.assets[`editor.js`].includes(`import `)).toBeFalsy() - - expect(test.assets[`editor.css`].length).toBeGreaterThan(10) - expect(test.assets[`editor.css`].includes(`@import`)).toBe(false) - expect(test.assets[`editor.css`].includes(`@apply`)).toBe(false) - expect(test.assets[`editor.css`].match(/ /)).toBeFalsy() - expect(test.assets[`editor.css`].match(/\\n/)).toBeFalsy() - - expect(test.manifest[`app.js`]).toMatch(/js\/app\.[\d|\w]*\.js/) - expect(test.manifest[`app.css`]).toMatch(/css\/app\.[\d|\w]*\.css/) - expect(test.manifest[`editor.css`]).toMatch( + it(`should have expected manifest entries`, () => { + expect(sage.manifest[`app.js`]).toMatch(/js\/app\.[\d|\w]*\.js/) + expect(sage.manifest[`app.css`]).toMatch(/css\/app\.[\d|\w]*\.css/) + expect(sage.manifest[`editor.css`]).toMatch( /css\/editor\.[\d|\w]*\.css/, ) - expect(test.manifest[`runtime.js`]).toMatch( + expect(sage.manifest[`runtime.js`]).toMatch( /js\/runtime\.[\d|\w]*\.js/, ) + expect(sage.manifest[`../theme.json`]).toMatch(`../theme.json`) }) }) diff --git a/tests/integration/tailwindcss.test.ts b/tests/integration/tailwindcss.test.ts index 02c7a274f3..f7bbf15f13 100644 --- a/tests/integration/tailwindcss.test.ts +++ b/tests/integration/tailwindcss.test.ts @@ -10,10 +10,9 @@ describe(`examples/tailwindcss`, () => { await test.install() await test.build() - expect(test.assets[`app.css`].includes(`@import`)).toBeFalsy() - expect(test.assets[`app.css`].includes(`@apply`)).toBe(false) - expect(test.assets[`app.css`].match(/ /)).toBeFalsy() - expect(test.assets[`app.css`].match(/\\n/)).toBeFalsy() - expect(test.manifest).toMatchSnapshot() + expect(test.getAsset(`main.css`).includes(`@import`)).toBe(false) + expect(test.getAsset(`main.css`).includes(`@apply`)).toBe(false) + expect(test.getAsset(`main.css`).match(/ /)).toBe(null) + expect(test.getAsset(`main.css`).match(/\\n/)).toBe(null) }) }) diff --git a/tests/util/project/package.json b/tests/util/project/package.json index 2677f937f9..3d64daa9b3 100644 --- a/tests/util/project/package.json +++ b/tests/util/project/package.json @@ -1,6 +1,7 @@ { "name": "@tests/project", "private": true, + "$schema": "https://bud.js.org/bud.package.json", "type": "module", "devDependencies": { "@roots/bud": "workspace:*",