Skip to content

Commit 62ad001

Browse files
committed
refactor: restructure project into monorepo more compatible with turbo
1 parent a435501 commit 62ad001

33 files changed

Lines changed: 1154 additions & 1075 deletions

index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

package-lock.json

Lines changed: 1053 additions & 994 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,30 @@
11
{
2-
"name": "nmea-web-serial",
3-
"type": "module",
4-
"version": "1.1.3",
2+
"name": "nmea-web-serial-monorepo",
3+
"private": true,
54
"packageManager": "npm@10.8.2",
6-
"description": "NMEA 0183 sentence parser for the Web Serial API",
7-
"author": {
8-
"name": "Jonathan Dawe",
9-
"email": "jonwe@bas.ac.uk"
10-
},
11-
"homepage": "https://github.com/antarctica/nmea-web-serial#readme",
12-
"repository": {
13-
"type": "git",
14-
"url": "git+https://github.com/antarctica/nmea-web-serial.git"
15-
},
16-
"bugs": {
17-
"url": "https://github.com/antarctica/nmea-web-serial/issues"
18-
},
19-
"exports": {
20-
".": {
21-
"import": "./dist/nmea-web-serial.js",
22-
"require": "./dist/nmea-web-serial.cjs"
23-
}
24-
},
25-
"main": "./dist/nmea-web-serial.cjs",
26-
"module": "./dist/nmea-web-serial.js",
27-
"types": "./dist/nmea-web-serial.d.ts",
28-
"files": [
29-
"dist"
30-
],
5+
"type": "module",
316
"scripts": {
32-
"dev": "vite",
33-
"build": "tsc && vite build",
34-
"build:all": "turbo run build",
35-
"lint": "eslint . --fix",
36-
"lint:all": "turbo run lint",
37-
"test": "vitest --run",
38-
"test:watch": "vitest",
39-
"test:coverage": "vitest --coverage",
40-
"test:all": "turbo run test",
41-
"docs": "typedoc",
42-
"release": "npm run build && changelogen --release --push && npm publish",
7+
"dev": "turbo run dev",
8+
"build": "turbo run build",
9+
"lint": "turbo run lint",
10+
"test": "turbo run test",
4311
"prepare": "husky install"
4412
},
45-
"dependencies": {
46-
"nmea-simple": "^3.3.0",
47-
"xstate": "^5.24.0"
48-
},
13+
"workspaces": [
14+
"packages/*",
15+
"examples/*"
16+
],
4917
"devDependencies": {
50-
"@antfu/eslint-config": "^4.19.0",
51-
"@commitlint/cli": "^20.1.0",
52-
"@commitlint/config-conventional": "^20.0.0",
53-
"@types/node": "^22.19.0",
54-
"@types/w3c-web-serial": "^1.0.8",
55-
"@vitest/coverage-v8": "^4.0.7",
56-
"camelcase": "^8.0.0",
57-
"changelogen": "^0.6.2",
58-
"eslint": "^9.39.1",
5918
"husky": "^9.1.7",
60-
"lint-staged": "^16.2.6",
6119
"turbo": "^2.0.0",
62-
"typedoc": "^0.28.14",
6320
"typescript": "^5.9.3",
64-
"vite": "^7.2.1",
65-
"vite-plugin-dts": "^4.5.4",
66-
"vitest": "^4.0.7"
21+
"eslint": "^9.39.1",
22+
"@antfu/eslint-config": "^4.19.0",
23+
"@commitlint/cli": "^20.1.0",
24+
"@commitlint/config-conventional": "^20.0.0",
25+
"lint-staged": "^16.2.6"
6726
},
6827
"lint-staged": {
69-
"*.ts": "npm run lint"
70-
},
71-
"workspaces": [
72-
"examples/*"
73-
]
28+
"*.{ts,tsx,js,jsx}": "eslint --fix"
29+
}
7430
}
File renamed without changes.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"name": "nmea-web-serial",
3+
"type": "module",
4+
"version": "1.1.3",
5+
"packageManager": "npm@10.8.2",
6+
"description": "NMEA 0183 sentence parser for the Web Serial API",
7+
"author": {
8+
"name": "Jonathan Dawe",
9+
"email": "jonwe@bas.ac.uk"
10+
},
11+
"homepage": "https://github.com/antarctica/nmea-web-serial#readme",
12+
"repository": {
13+
"type": "git",
14+
"url": "git+https://github.com/antarctica/nmea-web-serial.git"
15+
},
16+
"bugs": {
17+
"url": "https://github.com/antarctica/nmea-web-serial/issues"
18+
},
19+
"exports": {
20+
".": {
21+
"import": "./dist/nmea-web-serial.js",
22+
"require": "./dist/nmea-web-serial.cjs"
23+
}
24+
},
25+
"main": "./dist/nmea-web-serial.cjs",
26+
"module": "./dist/nmea-web-serial.js",
27+
"types": "./dist/nmea-web-serial.d.ts",
28+
"files": [
29+
"dist"
30+
],
31+
"scripts": {
32+
"build": "tsc && vite build",
33+
"build:all": "turbo run build",
34+
"lint": "eslint . --fix",
35+
"lint:all": "turbo run lint",
36+
"test": "vitest --run",
37+
"test:watch": "vitest",
38+
"test:coverage": "vitest --coverage",
39+
"test:all": "turbo run test",
40+
"docs": "typedoc",
41+
"release": "npm run build && changelogen --release --push && npm publish",
42+
"prepare": "husky install"
43+
},
44+
"dependencies": {
45+
"nmea-simple": "^3.3.0",
46+
"xstate": "^5.24.0"
47+
},
48+
"devDependencies": {
49+
"@antfu/eslint-config": "^4.19.0",
50+
"@commitlint/cli": "^20.1.0",
51+
"@commitlint/config-conventional": "^20.0.0",
52+
"@types/node": "^22.19.0",
53+
"@types/w3c-web-serial": "^1.0.8",
54+
"@vitest/coverage-v8": "^4.0.7",
55+
"camelcase": "^8.0.0",
56+
"changelogen": "^0.6.2",
57+
"eslint": "^9.39.1",
58+
"husky": "^9.1.7",
59+
"lint-staged": "^16.2.6",
60+
"turbo": "^2.0.0",
61+
"typedoc": "^0.28.14",
62+
"typescript": "^5.9.3",
63+
"vite": "^7.2.1",
64+
"vite-plugin-dts": "^4.5.4",
65+
"vitest": "^4.0.7"
66+
},
67+
"lint-staged": {
68+
"*.ts": "npm run lint"
69+
},
70+
"workspaces": [
71+
"examples/*"
72+
]
73+
}

src/adapters/navigation/adapter.ts renamed to packages/nmea-web-serial/src/adapters/navigation/adapter.ts

File renamed without changes.

src/adapters/navigation/client.ts renamed to packages/nmea-web-serial/src/adapters/navigation/client.ts

File renamed without changes.

src/adapters/navigation/computation.ts renamed to packages/nmea-web-serial/src/adapters/navigation/computation.ts

File renamed without changes.

src/adapters/navigation/index.ts renamed to packages/nmea-web-serial/src/adapters/navigation/index.ts

File renamed without changes.

src/adapters/navigation/types.ts renamed to packages/nmea-web-serial/src/adapters/navigation/types.ts

File renamed without changes.

0 commit comments

Comments
 (0)