Skip to content

Commit 6cad89b

Browse files
committed
adding parcel
- using parcel as a bundler now, - fixing workers register params to be compatible with parcel - fixing some image paths in webmanifest for parcel - removing `.cf { *zoom }` for IE in clearfix hack in css - `npm run` will use parcel to run dev server - `npm run build` will build for production in `/dist/` dir
1 parent a5f9567 commit 6cad89b

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

package.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
{
22
"devDependencies": {
33
"@babel/preset-env": "^7.13.12",
4+
"@parcel/packager-raw-url": "^2.8.0",
5+
"@parcel/transformer-webmanifest": "^2.8.0",
46
"fake-indexeddb": "^3.1.7",
5-
"jest": "^27.4"
7+
"jest": "^27.4",
8+
"parcel": "^2.8.0",
9+
"process": "^0.11.10"
610
},
11+
"source": "src/index.html",
712
"scripts": {
8-
"test": "jest"
13+
"test": "jest",
14+
"start": "parcel",
15+
"build": "parcel build"
916
},
1017
"dependencies": {
1118
"@babel/core": "^7.13.13",
12-
"@babel/node": "^7.13.13"
19+
"@babel/node": "^7.13.13",
20+
"@vercel/analytics": "^0.1.5"
1321
}
1422
}

src/css/flux.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ input {
206206
clear: both;
207207
}
208208
.cf {
209-
*zoom: 1;
209+
/* *zoom: 1; */
210210
/*For IE 6/7 only*/
211211
}
212212
/* End Clearfix */

src/manifest.webmanifest

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
"background_color": "#28272D",
1111
"icons": [
1212
{
13-
"src": "/images/logo/logo-36dpi-192px.png",
13+
"src": "./images/logo/logo-36dpi-192px.png",
1414
"type": "image/png",
1515
"sizes": "192x192"
1616
},
1717
{
18-
"src": "/images/logo/logo-96dpi-512px.png",
18+
"src": "./images/logo/logo-96dpi-512px.png",
1919
"type": "image/png",
2020
"sizes": "512x512"
2121
},
2222
{
23-
"src": "/images/logo/logo-96dpi-512px.png",
23+
"src": "./images/logo/logo-96dpi-512px.png",
2424
"type": "image/png",
2525
"sizes": "512x512",
2626
"purpose": "maskable"

src/watch.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { equals, exists, existance, first, last, xf, avg, max } from './function
22
import { kphToMps, mpsToKph, timeDiff } from './utils.js';
33
import { models } from './models/models.js';
44

5-
const timer = new Worker('./timer.js');
5+
// const timer = new Worker('./timer.js');
6+
const timer = new Worker(new URL('./timer.js', import.meta.url));
67

78
class Watch {
89
constructor(args) {

0 commit comments

Comments
 (0)