Skip to content

Commit

Permalink
feat: prepare new architect version for pia-i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
syl-p committed Sep 6, 2021
1 parent 21f98cd commit e349626
Show file tree
Hide file tree
Showing 7 changed files with 2,203 additions and 21,706 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Thumbs.db
src/environments/environment.prod.ts
/cypress/videos/*
/documentation
projects/*

# electron
electron/releases/
Expand Down
45 changes: 40 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
# Pia [v.3.0.1](https://github.com/LINCnil/pia/releases/tag/v3.0.1)
# Pia [v.3.0.1](https://github.com/LINCnil/pia/releases/tag/v3.0.1)

# Le logiciel PIA / The PIA Software

## Présentation / Presentation
<img src="https://raw.githubusercontent.com/LINCnil/pia/master/src/assets/images/pia-auth-logo.png" align="left" hspace="10" vspace="6"> Le logiciel PIA est un outil distribué librement par la [CNIL](https://www.cnil.fr/fr/outil-pia-telechargez-et-installez-le-logiciel-de-la-cnil) afin de faciliter la réalisation d’analyses d’impact sur la protection des données prévues par le RGPD.

La dernière version de l'outil est téléchargeable dans la section [Release](https://github.com/LINCnil/pia/releases) de ce dépôt.
<img src="https://raw.githubusercontent.com/LINCnil/pia/master/src/assets/images/pia-auth-logo.png" align="left" hspace="10" vspace="6"> Le logiciel PIA est un outil distribué librement par la [CNIL](https://www.cnil.fr/fr/outil-pia-telechargez-et-installez-le-logiciel-de-la-cnil) afin de faciliter la réalisation d’analyses d’impact sur la protection des données prévues par le RGPD.

La dernière version de l'outil est téléchargeable dans la section [Release](https://github.com/LINCnil/pia/releases) de ce dépôt.

The PIA software is a free tool published by the [CNIL](https://www.cnil.fr/en/open-source-pia-software-helps-carry-out-data-protection-impact-assesment) which aims to help data controllers build and demonstrate compliance to the GDPR.
The PIA software is a free tool published by the [CNIL](https://www.cnil.fr/en/open-source-pia-software-helps-carry-out-data-protection-impact-assesment) which aims to help data controllers build and demonstrate compliance to the GDPR.

The latest version of the tool can be downloaded in the [Release](https://github.com/LINCnil/pia/releases) section of this repository.

## Traduire le logiciel PIA / Translating the PIA Software

Pour traduire le logiciel, nous vous invitons à vous rendre dans le [dépôt dédié](https://github.com/LINCnil/pia-i18n/tree/main/src/lib/assets/i18n) dans lequel les étapes de traduction sont décrites.

To translate the software, we invite you to visit the [related repository](https://github.com/LINCnil/pia-i18n/tree/main/src/lib/assets/i18n) where the translation steps are described.


# Information de développement / Dev information

![CI](https://github.com/atnos/pia/workflows/integration-tests/badge.svg?branch=master)
Expand Down Expand Up @@ -88,3 +89,37 @@ See: https://www.electron.build/configuration/publish
```
GH_TOKEN=YOUR_GITHUB_TOKEN yarn electron:publish-to-github
```

## How to work on pia-i18n

You can work on this project with a [pia-i18n](https://github.com/LINCnil/pia-i18n) directly in development process.

This process permit to check your changes on the pia-i18n code (for traduction updates, fixes...) directly on the pia project

Get pia-i18n in the projects folder
Clone pia-i18n in a ./projects/pia-i18n folder

```
git clone git@github.com:LINCnil/pia-i18n.git ./project/pia-i18n
```

Stop using npm dependancy

- remove @atnos/pia-i18n dependancy in package.json
- yarn

**warning** no commit this changes on the pia repository

build / rebuild the local

```
ng build pia-i18n --prod
```

start pia project

```
yarn start
```

This process replace npm @atnos/pia-i18n by the local pia-i18n dist folder
38 changes: 38 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,44 @@
}
}
}
},
"pia-i18n": {
"projectType": "library",
"root": "projects/pia-i18n",
"sourceRoot": "projects/pia-i18n/src",
"prefix": "atnos",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:ng-packagr",
"options": {
"tsConfig": "projects/pia-i18n/tsconfig.lib.json",
"project": "projects/pia-i18n/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "projects/pia-i18n/tsconfig.lib.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/pia-i18n/src/test.ts",
"tsConfig": "projects/pia-i18n/tsconfig.spec.json",
"karmaConfig": "projects/pia-i18n/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/pia-i18n/tsconfig.lib.json",
"projects/pia-i18n/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "pia",
Expand Down
Loading

0 comments on commit e349626

Please sign in to comment.