Commit 08893874 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

dev: met en place un pseudo-package pour tester la compilation des modèles générés.

parent 4ff89f8c
...@@ -25,7 +25,7 @@ test:generate: ...@@ -25,7 +25,7 @@ test:generate:
paths: paths:
- output/ - output/
test:tsc: test:compile-generated:
stage: test-generated stage: test-generated
extends: .nodejs extends: .nodejs
needs: needs:
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
"build": "tsc -p tsconfig.lib.json", "build": "tsc -p tsconfig.lib.json",
"lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix", "lint": "eslint --fix '{src,tests}/**/*.{js,ts}' --quiet --fix",
"test": "jest", "test": "jest",
"test:compile-generated": "tsc --project tsconfig.ci.json --pretty --noEmit", "test:lint": "eslint '{src,tests}/**/*.{js,ts}'",
"test:lint": "eslint '{src,tests}/**/*.{js,ts}'" "test:compile-generated": "cd tests/Fixtures && npm install && tsc --pretty"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
......
/package-lock.json
/node_modules
/models
/var
{
"name": "ng-model-generator-test",
"dependencies": {
"irstea-ng-model": "file:../.."
}
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@tsconfig/node10/tsconfig.json",
"compileOnSave": false,
"compilerOptions": {
"noEmit": true,
"rootDir": "./models"
},
"include": ["models/**/*.ts"],
"exclude": ["node_modules"]
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./tsconfig.json",
"include": ["src/ts/**/*.ts", "output/**/*.ts"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment