Skip to content

Commit

Permalink
πŸ‘¨πŸ½β€πŸ”¬ feature: theme.json handlers (#1199)
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears committed Mar 3, 2022
1 parent 1d797ce commit 5164bc9
Show file tree
Hide file tree
Showing 12 changed files with 1,421 additions and 50 deletions.
26 changes: 18 additions & 8 deletions sources/@roots/bud-preset-wordpress/package.json
Expand Up @@ -34,14 +34,6 @@
"stylelint-config/",
"types/"
],
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./types/index.d.ts",
"exports": {
".": "./lib/cjs/index.js",
"./eslint-config": "./eslint-config/index.js",
"./stylelint-config": "./stylelint-config/index.js"
},
"bud": {
"type": "extension",
"peers": [
Expand All @@ -55,6 +47,24 @@
"@roots/bud-wordpress-manifests"
]
},
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./types/index.d.ts",
"exports": {
".": "./lib/cjs/index.js",
"./eslint-config": "./eslint-config/index.js",
"./stylelint-config": "./stylelint-config/index.js"
},
"typesVersions": {
"*": {
".": [
"./types/index.d.ts"
],
"theme": [
"./types/theme.d.ts"
]
}
},
"devDependencies": {
"@roots/bud-framework": "workspace:sources/@roots/bud-framework",
"@skypack/package-check": "0.2.2",
Expand Down
30 changes: 2 additions & 28 deletions sources/@roots/bud-preset-wordpress/src/index.ts
Expand Up @@ -7,34 +7,6 @@
* @see https://roots.io/bud
* @see https://github.com/roots/bud
*
* @remarks
* - πŸ’ Composable - Build boss web applications with a modular, configurable build system
*
* - πŸ’ͺ Modern - Modern framework that scales from a single file to thousands of lines of code
*
* - 🌱 Easy - Low bundle size and fast build times
*
* @remarks
* This preset is a wrapper for the following presets:
*
* - {@link @roots/bud-preset-recommend# | @roots/bud-preset-recommend}
*
* - {@link @roots/bud-react# | @roots/bud-react}
*
* - {@link @roots/bud-wordpress-dependencies# | @roots/bud-wordpress-dependencies}
*
* - {@link @roots/bud-wordpress-externals# | @roots/bud-wordpress-externals}
*
* - {@link @roots/bud-wordpress-manifests# | @roots/bud-wordpress-manifests}
*
* @example
* ```js
* const wp = require('@roots/bud-preset-wordpress')
*
* module.exports = (app: Framework) => {
* app.use(wp)
* }
* ```
* @packageDocumentation
*/

Expand Down Expand Up @@ -63,3 +35,5 @@ type BudWordPressPreset = Extension.Module

export const name: BudWordPressPreset['name'] =
'@roots/bud-preset-wordpress'

export * as ThemeJSON from './theme'

0 comments on commit 5164bc9

Please sign in to comment.