-
-
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.
✨ improve: configuration sources (#2202)
## Why? supports tailwind 3.3.0 compatibility and advances project goals ## Effects? - users can configure bud using typescript (`bud.config.ts`) out of the box - no need to use `ts-node` or the alternative `bud` cli command for typescript config support. - bud.js won't choke on `tailwind.config.ts` files - support extends to eslint: `eslint.config.ts` should work as well ## Notes - we're gonna parse configs in a similar way to tailwind - tailwind does it with [jiti](https://github.com/unjs/jiti) - it's tempting to do the same, and [sucrase](https://www.npmjs.com/package/sucrase) seems fast. but for now, we're using [module-from-string](https://github.com/exuanbo/module-from-string) namely due to first-class esm support: alangpierce/sucrase#734. refers: - none
- Loading branch information
1 parent
57619b0
commit 467a25a
Showing
106 changed files
with
3,445 additions
and
3,590 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,18 +1,18 @@ | ||
{ | ||
"name": "@examples/node-api", | ||
"browserslist": [ | ||
"extends @roots/browserslist-config" | ||
], | ||
"private": true, | ||
"engines": { | ||
"node": "18.12.1" | ||
}, | ||
"packageManager": "npm@8.19.2", | ||
"type": "module", | ||
"devDependencies": { | ||
"@roots/browserslist-config": "workspace:sources/@roots/browserslist-config", | ||
"@roots/bud": "workspace:sources/@roots/bud", | ||
"@roots/bud-swc": "workspace:sources/@roots/bud-swc", | ||
"webpack-cli": "5.0.1" | ||
}, | ||
"engines": { | ||
"node": "18.12.1" | ||
}, | ||
"packageManager": "npm@8.19.2", | ||
"private": true, | ||
"type": "module" | ||
"browserslist": [ | ||
"extends @roots/browserslist-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
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 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
Oops, something went wrong.