Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1346 symbolic link between our projects and the library 1 #1008

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/onPush.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x]

steps:
- name: The branch or tag ref that triggered the workflow run.
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ Requis:

| IGO2 version | Node version |
| ------------ | ------------ |
| > 1.15.x | >= 16.19.0 |
| >= 16.x | >= 18.10.0 |
| > 1.15.x | >= 16.19.0 |
| > 1.5.x | >= 12, <= 16 |
| < 1.5.x | >= 8, <= 11 |
| 0.x.x | >= 6, <= 10 |
Expand Down Expand Up @@ -115,6 +116,9 @@ $ npm run doc
# Ouvrir un navigateur http://localhost:4220/
```

Si vous voulez développer en même temps ce projet ainsi que la librairie associée, référez vous à la procédure suivante:
https://github.com/infra-geo-ouverte/igo2-lib#for-developers

## Tests

```bash
Expand Down Expand Up @@ -175,7 +179,9 @@ Require:

| IGO2 version | Node version |
| ------------ | ------------ |
| > 1.5.x | >= 12, <= 14 |
| >= 16.x | >= 18.10.0 |
| > 1.15.x | >= 16.19.0 |
| > 1.5.x | >= 12, <= 16 |
| < 1.5.x | >= 8, <= 11 |
| 0.x.x | >= 6, <= 10 |

Expand Down Expand Up @@ -203,6 +209,9 @@ $ npm run serve.prod
$ npm run doc
# Open your browser at http://localhost:4220/

If you want to develop this project and the associated library at the same time, refer to the following procedure:
https://github.com/infra-geo-ouverte/igo2-lib#for-developers

```

## Tests-en
Expand Down
124 changes: 116 additions & 8 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
"input": "./node_modules/@igo2/core/assets/",
"output": "./assets/igo2/core/"
},
{
"glob": "**/*",
"input": "./node_modules/@igo2/core/locale/",
"output": "./locale/libs_locale",
"ignore": ["**/*.core.json"]
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace the scripts locale-copy-from-igo2-core

{
"glob": "**/*",
"input": "./node_modules/@igo2/core/theming/prebuilt-themes",
Expand Down Expand Up @@ -110,6 +116,64 @@
"buildOptimizer": false,
"serviceWorker": false
},
"production-link": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "12kb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": true,
"buildOptimizer": false,
"serviceWorker": false,
"assets": [
"src/favicon.ico",
"src/assets",
"src/config",
"src/contexts",
"src/data",
"src/locale",
"src/manifest.webmanifest",
{
"glob": "**/*",
"input": "../../dist/common/assets/",
"output": "./assets/igo2/common/"
},
{
"glob": "**/*",
"input": "../../dist/core/assets/",
"output": "./assets/igo2/core/"
},
{
"glob": "**/*",
"input": "../../dist/core/locale/",
"output": "./locale/libs_locale",
"ignore": ["**/*.core.json"]
},
{
"glob": "**/*",
"input": "../../dist/core/theming/prebuilt-themes",
"output": "./assets/igo2/core/theming/prebuilt-themes"
},
{
"glob": "**/*",
"input": "../../dist/geo/assets/",
"output": "./assets/igo2/geo/"
}
]
},
"developpement": {
"buildOptimizer": false,
"optimization": false,
Expand All @@ -118,6 +182,49 @@
"sourceMap": true,
"namedChunks": true
},
"developpement-link": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"assets": [
"src/favicon.ico",
"src/assets",
"src/config",
"src/contexts",
"src/data",
"src/locale",
"src/manifest.webmanifest",
{
"glob": "**/*",
"input": "../../packages/common/src/assets/",
"output": "./assets/igo2/common/"
},
{
"glob": "**/*",
"input": "../../dist/core/assets/",
"output": "./assets/igo2/core/"
},
{
"glob": "**/*",
"input": "../../dist/core/locale/",
"output": "./locale/libs_locale",
"ignore": ["**/*.core.json"]
},
{
"glob": "**/*",
"input": "../../dist/core/theming/prebuilt-themes",
"output": "./assets/igo2/core/theming/prebuilt-themes"
},
{
"glob": "**/*",
"input": "../../packages/geo/src/assets/",
"output": "./assets/igo2/geo/"
}
]
},
"github": {
"budgets": [
{
Expand Down Expand Up @@ -172,12 +279,18 @@
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "igo2:build",
"port": 4201
"host": "0.0.0.0",
"port": 4201,
"hmr": true,
"proxyConfig": "proxy.conf.json"
},
"configurations": {
"developpement": {
"browserTarget": "igo2:build:developpement"
},
"developpement-link": {
"browserTarget": "igo2:build:developpement-link"
},
"production": {
"browserTarget": "igo2:build:production"
},
Expand Down Expand Up @@ -218,10 +331,7 @@
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"]
}
},
"e2e": {
Expand Down Expand Up @@ -263,9 +373,7 @@
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"e2e/**/*.ts"
]
"lintFilePatterns": ["e2e/**/*.ts"]
}
}
}
Expand Down
Loading