Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📦 improve(patch): [email protected] #3074

Merged
merged 6 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions bud.config.js

This file was deleted.

43 changes: 43 additions & 0 deletions bud.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 1,43 @@
// @ts-check

/**
* Build configuration
*
* @see {@link https://bud.js.org/guides/getting-started/configure}
* @param {import('@roots/bud').Bud} app
*/
export default async (app) => {
app
/**
* Application entrypoints
*/
.entry({
app: ["@scripts/app", "@styles/app"],
editor: ["@scripts/editor", "@styles/editor"],
})

/**
* Directory contents to be included in the compilation
*/
.assets(["images"])

/**
* Matched files trigger a page reload when modified
*/
.watch(["resources/views/**/*", "app/**/*"])

/**
* Proxy origin (`WP_HOME`)
*/
.proxy("http://example.test")

/**
* Development origin
*/
.serve("http://0.0.0.0:3000")

/**
* URI of the `public` directory
*/
.setPublicPath("/app/themes/sage/public/");
};
19 changes: 12 additions & 7 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 1,19 @@
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"jsx": "preserve",
"lib": ["dom", "dom.iterable", "esnext"],
"module": "commonjs",
"baseUrl": "resources",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "esnext",
"moduleResolution": "node",
"jsx": "preserve",
"paths": {
"@scripts/*": ["./resources/scripts/*"],
"@styles/*": ["./resources/styles/*"]
}
"@fonts/*": ["fonts/*"],
"@images/*": ["images/*"],
"@scripts/*": ["scripts/*"],
"@styles/*": ["styles/*"]
},
"target": "es5"
},
"exclude": ["./public", "./node_modules"]
"include": ["bud.config.mjs", "resources"],
"exclude": ["public"]
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 18,8 @@
"translate:mo": "wp i18n make-mo ./resources/lang ./resources/lang"
},
"devDependencies": {
"@roots/bud": "5.8.7",
"@roots/bud-tailwindcss": "5.8.7",
"@roots/sage": "5.8.7"
"@roots/bud": "6.2.0",
"@roots/bud-tailwindcss": "6.2.0",
"@roots/sage": "6.2.0"
}
}
2 changes: 1 addition & 1 deletion tailwind.config.js → tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,5 1,5 @@
module.exports = {
content: ['./index.php', './app/**/*.php', './resources/**/*.{php,vue,js}'],
content: ["./index.php", "./app/**/*.php", "./resources/**/*.{php,vue,js}"],
theme: {
extend: {
colors: {},
Expand Down
Loading