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 overal codebase, use modern tech like esbuild and TypeScript 4! #1055

Merged
merged 30 commits into from
Jan 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
28edb65
use esbuild for React instead of tsdx
RobinMalfait Jan 19, 2022
11c9dcf
remove tsdx from Vue
RobinMalfait Jan 19, 2022
928e12c
use consistent names
RobinMalfait Jan 19, 2022
a12cd03
add jest and prettier
RobinMalfait Jan 19, 2022
faa81bb
update scripts
RobinMalfait Jan 19, 2022
f72f600
ignore some folders for prettier
RobinMalfait Jan 19, 2022
368f9cb
run lint script instead of tsdx lint
RobinMalfait Jan 19, 2022
3dad380
run prettier en-masse
RobinMalfait Jan 19, 2022
5664b00
bump typescript to latest version
RobinMalfait Jan 19, 2022
cddcbc7
make typescript happy
RobinMalfait Jan 19, 2022
1a0ee60
cleanup playground package.json
RobinMalfait Jan 20, 2022
cc3fe32
make esbuild a dev dependency
RobinMalfait Jan 20, 2022
4e9ec28
make scripts consistent
RobinMalfait Jan 20, 2022
74e330f
fix husky hooks
RobinMalfait Jan 20, 2022
dc6a9e4
add dedicated watch script
RobinMalfait Jan 21, 2022
0346237
add `yarn playground-react` and `yarn react-playground` (alias)
RobinMalfait Jan 21, 2022
d974d54
ignore formatting in the .next folder
RobinMalfait Jan 21, 2022
7e87987
run prettier on playground-react package
RobinMalfait Jan 21, 2022
b59f458
setup playground-vue
RobinMalfait Jan 21, 2022
6e052db
add playground aliases in @headlessui/vue and @headlessui/react
RobinMalfait Jan 21, 2022
5763276
add `clean` script
RobinMalfait Jan 21, 2022
a48df18
move examples folder in playground-vue to root
RobinMalfait Jan 21, 2022
bbb929e
ensure new lines for consistency in scripts
RobinMalfait Jan 21, 2022
d95dc6f
fix typescript issue
RobinMalfait Jan 27, 2022
27e1004
fix typescript issues in playgrounds
RobinMalfait Jan 27, 2022
0e0d929
make sure to run prettier on everything it can
RobinMalfait Jan 27, 2022
753b3a1
run prettier on all files
RobinMalfait Jan 27, 2022
644f503
improve error output
RobinMalfait Jan 27, 2022
3fb38d9
add the `prettier-plugin-tailwindcss` plugin, party!
RobinMalfait Jan 27, 2022
ea7b67f
update changelog
RobinMalfait Jan 27, 2022
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
Prev Previous commit
Next Next commit
move examples folder in playground-vue to root
  • Loading branch information
RobinMalfait committed Jan 27, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit a48df18dd184ce209be71f4ab6359341ea5f55bc
4 changes: 0 additions & 4 deletions packages/playground-vue/examples/.gitignore

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions packages/playground-vue/package.json
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@
"scripts": {
"prebuild": "yarn workspace @headlessui/vue build",
"dev:headlessui": "yarn workspace @headlessui/vue watch",
"dev:next": "vite --config ./vite.config.js serve examples",
"dev:next": "vite serve",
"dev": "npm-run-all -p dev:*",
"build": "NODE_ENV=production vite --config ./vite.config.js build examples",
"build": "NODE_ENV=production vite build",
"clean": "rimraf ./dist"
},
"dependencies": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions packages/playground-vue/vite.config.js
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import path from 'path'

import vue from '@vitejs/plugin-vue'

import routes from './examples/src/routes.json'
import routes from './src/routes.json'

function flatten(routes, resolver) {
return routes
@@ -20,7 +20,7 @@ let contents = flatten(routes, (route) => route.component)
})
.join('\n')

let location = path.resolve(__dirname, './examples/src/.generated/preload.js')
let location = path.resolve(__dirname, './src/.generated/preload.js')
let data = `${contents}\n\nexport default {\n${Object.entries(map)
.map(([path, name]) => ` "${path}": ${name}`)
.join(',\n')}\n}`