Skip to content

Commit

Permalink
Use vite instead of parcel
Browse files Browse the repository at this point in the history
Seems like recent parcel's CSS bundler does something wrong around
pseudo class
  • Loading branch information
kateinoigakukun committed Jun 16, 2024
1 parent 45b75b3 commit 928bd9b
Show file tree
Hide file tree
Showing 15 changed files with 369 additions and 3,546 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Bundle web resources
run: |
npm install
npx parcel build src/index.html
npx vite build
- uses: actions/upload-artifact@v2
with:
name: dist
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/node_modules
/.parcel-cache
/dist
/rubies
/build
Expand Down
4 changes: 0 additions & 4 deletions .parcelrc

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://user-images.githubusercontent.com/8454208/204725289-fefe41e3-476b-4618-a
```console
$ rake static/irb.wasm # You can omit the argument as default task makes static/irb.wasm
$ npm install
$ rake parcel
$ npx vite
```

### Clean build
Expand Down
5 changes: 0 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,3 @@ desc "Clean build artifacts"
task :clean do
rm_f "static/irb.wasm"
end

desc "Start local parcel server"
task :parcel do
sh "npx parcel ./src/index.html"
end
2 changes: 1 addition & 1 deletion ci/vercel-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ yum groupinstall "Development Tools" -y
yum install ruby bison make autoconf git curl libyaml-devel zlib-devel -y

rake static/irb.wasm
npx parcel build ./src/index.html
npx vite build
4 changes: 2 additions & 2 deletions src/index.html → index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>💎</text></svg>"
/>
<link rel="stylesheet" href="./index.css" />
<link rel="stylesheet" href="./src/index.css" />
</head>
<html>
<body>
<div id="terminal"></div>
<script type="module" src="./index.ts"></script>
<script type="module" src="./src/index.ts"></script>
</body>
</html>
Loading

1 comment on commit 928bd9b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for irb-wasm ready!

✅ Preview
https://irb-wasm-3fic8k8x5-yuta-saitos-projects-9b4a9562.vercel.app

Built with commit 928bd9b.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.