mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 23:53:25 +00:00
rely on gpx postinstall script to build the library
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -18,12 +18,6 @@ jobs:
|
|||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
gpx/package-lock.json
|
gpx/package-lock.json
|
||||||
website/package-lock.json
|
website/package-lock.json
|
||||||
|
|
||||||
- name: Install dependencies for gpx
|
|
||||||
run: npm install --prefix gpx
|
|
||||||
|
|
||||||
- name: Build gpx
|
|
||||||
run: npm run build --prefix gpx
|
|
||||||
|
|
||||||
- name: Install dependencies for website
|
- name: Install dependencies for website
|
||||||
run: npm install --prefix website
|
run: npm install --prefix website
|
||||||
|
12
README.md
12
README.md
@@ -29,17 +29,9 @@ The code is split into two parts:
|
|||||||
- `gpx`: a Typescript library for parsing and manipulating GPX files,
|
- `gpx`: a Typescript library for parsing and manipulating GPX files,
|
||||||
- `website`: the website itself, which is a [SvelteKit](https://kit.svelte.dev/) application.
|
- `website`: the website itself, which is a [SvelteKit](https://kit.svelte.dev/) application.
|
||||||
|
|
||||||
You will need [Node.js](https://nodejs.org/) to build and run these two parts.
|
You will need [Node.js](https://nodejs.org/) to build and run the website.
|
||||||
|
|
||||||
### Building the `gpx` library
|
### Running the website in development mode
|
||||||
|
|
||||||
```bash
|
|
||||||
cd gpx
|
|
||||||
npm install
|
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
### Running the website
|
|
||||||
|
|
||||||
To be able to load the map, you will need to create your own <a href="https://account.mapbox.com/auth/signup" target="_blank">Mapbox access token</a> and store it in a `.env` file in the `website` directory.
|
To be able to load the map, you will need to create your own <a href="https://account.mapbox.com/auth/signup" target="_blank">Mapbox access token</a> and store it in a `.env` file in the `website` directory.
|
||||||
|
|
||||||
|
@@ -22,6 +22,6 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"postinstall": "npm run build"
|
"postinstall": "npm install && npm run build"
|
||||||
}
|
}
|
||||||
}
|
}
|
11
website/package-lock.json
generated
11
website/package-lock.json
generated
@@ -73,6 +73,7 @@
|
|||||||
},
|
},
|
||||||
"../gpx": {
|
"../gpx": {
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
|
"hasInstallScript": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fast-xml-parser": "^4.4.0",
|
"fast-xml-parser": "^4.4.0",
|
||||||
"immer": "^10.1.1",
|
"immer": "^10.1.1",
|
||||||
@@ -2163,14 +2164,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@sveltejs/enhanced-img": {
|
"node_modules/@sveltejs/enhanced-img": {
|
||||||
"version": "0.3.0",
|
"version": "0.3.8",
|
||||||
"resolved": "https://registry.npmjs.org/@sveltejs/enhanced-img/-/enhanced-img-0.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/@sveltejs/enhanced-img/-/enhanced-img-0.3.8.tgz",
|
||||||
"integrity": "sha512-o8FdEUyJR/+LjUUl4sgB9QeM9rSGpOzTO6/CH0AmO/FgwWkcJdj/MwVNtr2F/AtaPgNfzvRpnExjklmuuDOtPA==",
|
"integrity": "sha512-n66u46ZeqHltiTm0BEjWptYmCrCY0EltEEvakmC7d5o5ZejDbOvOWm914mebbRKaP2Bezv65TNCod/wqvw/0KA==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"magic-string": "^0.30.5",
|
"magic-string": "^0.30.5",
|
||||||
"svelte-parse-markup": "^0.1.2",
|
"svelte-parse-markup": "^0.1.2",
|
||||||
"vite-imagetools": "^7.0.1"
|
"vite-imagetools": "^7.0.1"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"svelte": "^4.0.0 || ^5.0.0-next.0",
|
||||||
|
"vite": ">= 5.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@sveltejs/kit": {
|
"node_modules/@sveltejs/kit": {
|
||||||
|
Reference in New Issue
Block a user