-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- normalize examples/* - improve integration tests - update **/contributors.yml ## Type of change **PATCH: backwards compatible change**
- Loading branch information
1 parent
3db8a36
commit 7d89155
Showing
226 changed files
with
828 additions
and
1,113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "@roots/bud/config/tsconfig.json", | ||
"compilerOptions": { | ||
"paths": { | ||
"@src/*": ["./src/*"] | ||
}, | ||
"types": ["@roots/bud", "@roots/bud-criticalcss"] | ||
}, | ||
"files": ["bud.config.js"], | ||
"include": ["./src"], | ||
"exclude": ["./dist"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default async app => { | ||
app | ||
.html({template: app.path('public/index.html')}) | ||
.entry('app', 'app.js') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export default async bud => { | ||
bud.html().entry({app: 'app.js'}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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'), | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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']), | ||
), | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "@roots/bud/config/tsconfig.json", | ||
"compilerOptions": { | ||
"paths": { | ||
"@src/*": ["./src/*"] | ||
}, | ||
"types": ["@roots/bud"] | ||
}, | ||
"files": ["bud.config.ts"], | ||
"include": ["./src"], | ||
"exclude": ["./dist"] | ||
} |
Oops, something went wrong.