Skip to content

Commit

Permalink
Merge pull request #578 from LINCnil/add-pia-i18n-local-development
Browse files Browse the repository at this point in the history
feat: prepare new architect version for pia-i18n
  • Loading branch information
kevin-atnos authored Oct 14, 2021
2 parents 8ad66f9 + 71788a5 commit 05f858d
Show file tree
Hide file tree
Showing 8 changed files with 13,769 additions and 14,754 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push]
jobs:
cypress-run:
runs-on: ubuntu-latest
container: cypress/browsers:node12.18.3-chrome87-ff82
container: cypress/browsers:node14.7.0-chrome84
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
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
54 changes: 49 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,46 @@ 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

### /!\ Requirements /!\ :

- nodejs in lts version (14.17.4)
- ng client `npm install -g @angular/cli`

If you have to update your node version, you may to remove ./node_modules folder and type "npm i or yarn install" before continue.

### Set up your 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 ./projects/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 05f858d

Please sign in to comment.