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
  •  
  •  
  •  
7 changes: 3 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ pnpm-lock.yaml

node_modules/
**/node_modules
packages/**/node_modules/

packages/mapviewer/index.html
packages/mapviewer/public/icon.svg
packages/mapviewer/src/assets/svg/swiss-flag.svg
packages/viewer/index.html
packages/viewer/public/icon.svg
packages/viewer/src/assets/svg/swiss-flag.svg
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ The store is divided into modules that mostly correspond to the application part
The goal is to have a centralized way of dealing with changes, and not delegate that to each component.

Store plugins can be used to react to store changes.
See the [store read-me](packages/mapviewer/src/store/README.md) for more information.
See the [store read-me](packages/viewer/src/store/README.md) for more information.

### Best practices

- Prefer primitive data or javascript plain object in reactive data (Vue Component data or refs, Vuex store data)
- Don't use a complex object as reactive data
- Avoid using JavaScript getter and setter in class that are used in reactive data

See also [Store Best Practices](./packages/mapviewer/src/store/README.md#best-practices)
See also [Store Best Practices](packages/viewer/src/store/README.md#best-practices)

### Vue Composition API

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ See [CONTRIBUTING.md](CONTRIBUTING.md)

## Check External Layer Provider list

In the `Import` tool we provide a hardcoded list of provider via the [external-providers.json](./packages/mapviewer/src/modules/menu/components/advancedTools/ImportCatalogue/external-providers.json) file. Because we have quite a lot of provider, we have a CLI tool in order to
In the `Import` tool we provide a hardcoded list of provider via the [external-providers.json](packages/viewer/src/modules/menu/components/advancedTools/ImportCatalogue/external-providers.json) file. Because we have quite a lot of provider, we have a CLI tool in order to
check their validity. The tool can also be used with a single url as input parameter to see the URL would be valid
for our application.

```bash
pnpm install
./packages/mapviewer/scripts/check-external-layers-providers.js
./packages/viewer/scripts/check-external-layers-providers.js
```

You can use `-h` option to get more detail on the script.
104 changes: 0 additions & 104 deletions eslint.config.mjs

This file was deleted.

77 changes: 24 additions & 53 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,47 @@
{
"name": "web-mapviewer-monorepo",
"private": true,
"type": "module",
"scripts": {
"build": "pnpm run --recursive build",
"build-libs": "pnpm --filter=!web-mapviewer run --recursive build",
"build:dev": "pnpm --recursive run build:dev",
"build": "pnpm run --recursive --if-present build",
"build-libs": "pnpm --filter=!web-mapviewer run --recursive --if-present build",
"build:dev": "pnpm --recursive --if-present run 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",
"build:int": "pnpm --recursive --if-present run build:int",
"build:prod": "pnpm --recursive --if-present run build:prod",
"dev": "pnpm --filter=web-mapviewer run dev ",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "eslint --fix || stylelint \"**/*.{vue,scss}\" --fix",
"lint:no-fix": "eslint && stylelint \"**/*.{vue,scss}\"",
"lint:styles": "stylelint \"**/*.{vue,scss}\" --fix",
"lint:styles:no-fix": "stylelint \"**/*.{vue,scss}\"",
"lint": "pnpm run --recursive --parallel --no-bail --if-present lint",
"lint:no-fix": "pnpm run --recursive --parallel --no-bail --if-present lint:no-fix ",
"preview": "pnpm run build-libs && pnpm --filter=web-mapviewer run preview",
"preview:dev": "pnpm run build-libs && pnpm --filter=web-mapviewer run preview:dev ",
"preview:int": "pnpm run build-libs && pnpm --filter=web-mapviewer run preview:int",
"preview:test": "pnpm run build-libs && pnpm --filter=web-mapviewer run preview:test",
"preview:prod": "pnpm run build-libs && pnpm --filter=web-mapviewer run preview:prod",
"preview:test": "pnpm run build-libs && pnpm --filter=web-mapviewer run preview:test",
"test:component": "pnpm --filter=web-mapviewer run test:component",
"test:component:ci": "pnpm --filter=web-mapviewer run test:component:ci",
"test:e2e": "pnpm --filter=web-mapviewer run test:e2e",
"test:e2e:ci": "pnpm --filter=web-mapviewer run test:e2e:ci",
"test:e2e:headless": "pnpm --filter=web-mapviewer run test:e2e:headless",
"test:unit": "pnpm run --recursive --if-present test:unit",
"test:unit:watch": "pnpm run --recursive --if-present test:unit:watch"
"test:unit": "pnpm run --recursive --parallel --no-bail --if-present test:unit",
"test:unit:watch": "pnpm run --recursive --if-present test:unit:watch",
"update:workspace": "node ./scripts/update-pnpm-workspace.js"
},
"dependencies": {
"cesium": "catalog:"
"engines": {
"node": ">=22.18",
"pnpm": ">=10.15"
},
"devDependencies": {
"@eslint/js": "catalog:",
"@eslint/markdown": "catalog:",
"@prettier/plugin-xml": "catalog:",
"@types/geojson": "catalog:",
"@types/jsdom": "catalog:",
"@types/node": "catalog:",
"@types/proj4": "catalog:",
"@vue/eslint-config-prettier": "catalog:",
"@vue/eslint-config-typescript": "catalog:",
"@vue/tsconfig": "catalog:",
"eslint": "catalog:",
"eslint-plugin-cypress": "catalog:",
"eslint-plugin-mocha": "catalog:",
"eslint-plugin-perfectionist": "catalog:",
"eslint-plugin-prettier": "catalog:",
"eslint-plugin-vue": "catalog:",
"globals": "catalog:",
"postcss-html": "catalog:",
"prettier": "catalog:",
"prettier-plugin-jsdoc": "catalog:",
"prettier-plugin-packagejson": "catalog:",
"prettier-plugin-tailwindcss": "catalog:",
"stylelint": "catalog:",
"stylelint-config-recommended-scss": "catalog:",
"stylelint-config-recommended-vue": "catalog:",
"stylelint-order": "catalog:",
"stylelint-scss": "catalog:",
"typescript": "catalog:",
"typescript-eslint": "catalog:",
"vite": "catalog:",
"vite-plugin-dts": "catalog:",
"vitest": "catalog:",
"vue-tsc": "catalog:"
},
"engines": {
"node": ">=22",
"pnpm": "10.*.*"
"yaml": "catalog:"
},
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",
"@tailwindcss/oxide",
"cypress",
"sharp"
"sharp",
"vue-demi"
],
"ignoredBuiltDependencies": [
"core-js",
Expand All @@ -82,6 +50,9 @@
"esbuild",
"protobufjs",
"sharp"
]
],
"patchedDependencies": {
"vite": "patches/vite.patch"
}
}
}
12 changes: 12 additions & 0 deletions packages/coordinates/eslint.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import defaultConfig from '@swissgeo/eslint-config'

export default [
...defaultConfig,
{
languageOptions: {
parserOptions: {
tsconfigRootDir: import.meta.dirname,
},
},
}
]
57 changes: 57 additions & 0 deletions packages/coordinates/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"name": "@swissgeo/coordinates",
"version": "0.0.1",
"description": "Projection definition and coordinates utils for geoadmin",
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"files": [
"dist"
],
"scripts": {
"build": "pnpm run type-check && pnpm run generate-types && vite build",
"build:dev": "pnpm run build --mode development",
"build:dev:watch": "pnpm run build --watch --mode development",
"build:int": "pnpm run build --mode integration",
"build:prod": "pnpm run build --mode production",
"lint": "eslint --fix",
"lint:no-fix": "eslint",
"dev": "vite",
"generate-types": "tsc --declaration",
"preview": "vite preview",
"test:unit": "vitest --run --mode development --environment jsdom",
"test:unit:watch": "vitest --mode development --environment jsdom",
"type-check": "tsc -p tsconfig.json"
},
"dependencies": {
"@swissgeo/log": "workspace:*",
"@swissgeo/numbers": "workspace:*",
"lodash": "catalog:"
},
"devDependencies": {
"@microsoft/api-extractor": "catalog:",
"@swissgeo/eslint-config": "workspace:*",
"@swissgeo/typescript-config": "workspace:*",
"@turf/turf": "catalog:",
"@types/chai": "catalog:",
"@types/geojson": "catalog:",
"@types/lodash": "catalog:",
"chai": "catalog:",
"eslint": "catalog:",
"typescript": "catalog:",
"unplugin-dts": "catalog:",
"vite": "catalog:",
"vitest": "catalog:"
},
"peerDependencies": {
"ol": "catalog:",
"proj4": "catalog:"
}
}
Loading
Loading