Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
37 changes: 37 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 0.2
phases:
install:
runtime-versions:
nodejs: 22
commands:
- echo "Installing pnpm..."
- npm install -g pnpm@latest-10
- pnpm install --frozen-lockfile

pre_build:
commands:
- echo "=== Debugging Library Build ==="
- ls -la packages/geoadmin-tooltip/dist
- ls -la packages/geoadmin-log/dist
- echo "Pre-build phase..."
- pnpm run build-libs:dev

build:
commands:
- echo "Building viewer package..."
- cd packages/viewer
- echo "Listing @geoadmin dependencies in node_modules..."
- ls -l node_modules/@geoadmin
- echo "Running vue-tsc to check TypeScript paths..."
- pnpm vue-tsc -p tsconfig.json
- echo "Running build..."
- pnpm run build:dev

post_build:
commands:
- echo "=== Linting formatting ==="
- pnpm -w run lint:no-fix

artifacts:
files:
- '**/*'
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"scripts": {
"build": "pnpm run --recursive build",
"build-libs": "pnpm --filter=!web-mapviewer run --recursive build",
"build:dev": "pnpm --recursive run build:dev",
"build:dev": "pnpm run build-libs:dev && pnpm --filter=web-mapviewer run build:dev",
"build-libs:dev": "pnpm --filter=!web-mapviewer run --recursive build:dev",
"build:dev:watch": "pnpm --filter=!web-mapviewer --recursive --parallel --if-present run build:dev:watch",
"build:int": "pnpm --recursive run build:int",
"build:prod": "pnpm --recursive run build:prod",
Expand Down Expand Up @@ -84,4 +85,4 @@
"sharp"
]
}
}
}
12 changes: 11 additions & 1 deletion packages/geoadmin-coordinates/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"extends": "../../tsconfig.shared.json"
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"skipLibCheck": true
},
"references": [
{ "path": "../geoadmin-log" },
{ "path": "../geoadmin-numbers" }
]
}
7 changes: 6 additions & 1 deletion packages/geoadmin-coordinates/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ export default {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
plugins: [dts()],
plugins: [
dts({
outDir: 'dist',
entryRoot: 'src',
}),
],
test: {
setupFiles: ['setup-vitest.ts'],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts" setup>
import { type SingleCoordinate, WEBMERCATOR, WGS84 } from '@geoadmin/coordinates'
import {
CallbackProperty,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script lang="ts" setup>
import type { SingleCoordinate } from '@geoadmin/coordinates'
import type Map from 'ol/Map'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import type { ElevationProfile, ElevationProfilePoint } from '@/profile.api'
import type { ElevationProfileMetadata } from '@/utils'
import type { VueI18nTranslateFunction } from '@/vue-i18n'
import { BORDER_COLOR, FILL_COLOR, type SupportedLocales } from '@/config.ts'
import { BORDER_COLOR, FILL_COLOR, type SupportedLocales } from '@/config'
const GAP_BETWEEN_TOOLTIP_AND_PROFILE = 12 // px
Expand Down
14 changes: 13 additions & 1 deletion packages/geoadmin-elevation-profile/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"extends": "../../tsconfig.shared.json"
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"skipLibCheck": true
},
"references": [
{ "path": "../geoadmin-coordinates" },
{ "path": "../geoadmin-log" },
{ "path": "../geoadmin-numbers" },
{ "path": "../geoadmin-tooltip" }
]
}
5 changes: 4 additions & 1 deletion packages/geoadmin-elevation-profile/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export default {
tailwindcss(),
vue(),
vueDevTools(),
dts(),
dts({
outDir: 'dist',
entryRoot: 'src',
}),
],
}
8 changes: 7 additions & 1 deletion packages/geoadmin-log/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"extends": "../../tsconfig.shared.json"
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"skipLibCheck": true
}
}
1 change: 1 addition & 0 deletions packages/geoadmin-log/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default defineConfig(({ mode }) => {
plugins: [
dts({
outDir: 'dist',
entryRoot: 'src',
}),
],
}
Expand Down
11 changes: 10 additions & 1 deletion packages/geoadmin-numbers/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
{
"extends": "../../tsconfig.shared.json"
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"skipLibCheck": true
},
"references": [
{ "path": "../geoadmin-log" }
]
}
1 change: 1 addition & 0 deletions packages/geoadmin-numbers/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default {
plugins: [
dts({
outDir: 'dist',
entryRoot: 'src',
}),
],
}
8 changes: 7 additions & 1 deletion packages/geoadmin-tooltip/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"extends": "../../tsconfig.shared.json"
"extends": "../../tsconfig.shared.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"skipLibCheck": true
}
}
5 changes: 4 additions & 1 deletion packages/geoadmin-tooltip/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export default {
tailwindcss(),
vue(),
vueDevTools(),
dts(),
dts({
outDir: 'dist',
entryRoot: 'src',
}),
],
}
8 changes: 0 additions & 8 deletions packages/mapviewer/tsconfig.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ function mediaTypes() {
{{ t('modify_description') }}
</label>
<GeoadminTooltip
:tooltip-content="t('display_on_map')"
v-if="isFeatureMarker || isFeatureText"
:tooltip-content="t('display_on_map')"
>
<button
class="btn btn-sm btn-light d-flex align-items-center mb-2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ function getMaxResolution(value) {
* OpenLayers Style instance
*
* @class
* @param geoadminStyleJson The output of geoadmin's API style endpoint as a JSON
* @param {Object} geoadminStyleJson The output of geoadmin's API style endpoint as a JSON
* @constructor
*/
const OlStyleForPropertyValue = function (geoadminStyleJson) {
this.singleStyle = null
Expand Down
Loading
Loading