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

Updated tooling configuration.

No related merge requests found
Showing with 1206 additions and 384 deletions
+1206 -384
/package-lock.json binary
/node_modules /node_modules
/dist /dist
.idea
./dist/**
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
"builder": "@angular-devkit/build-angular:tslint", "builder": "@angular-devkit/build-angular:tslint",
"options": { "options": {
"tsConfig": ["./tsconfig.lib.json", "./tsconfig.spec.json"], "tsConfig": ["./tsconfig.lib.json", "./tsconfig.spec.json"],
"exclude": ["**/node_modules/**"] "exclude": ["**/node_modules/**", "dist/"]
} }
} }
} }
......
This diff is collapsed.
...@@ -16,12 +16,6 @@ ...@@ -16,12 +16,6 @@
"type": "git", "type": "git",
"url": "https://gitlab.irstea.fr/pole-is/packages/ngx-debug.git" "url": "https://gitlab.irstea.fr/pole-is/packages/ngx-debug.git"
}, },
"scripts": {
"test": "ng test --code-coverage --no-watch --no-progress",
"lint": "ng lint",
"package": "ng-packagr"
},
"prettier": "./node_modules/irstea-typescript-config/prettier.config.js",
"peerDependencies": { "peerDependencies": {
"@angular/common": "^8.2.0", "@angular/common": "^8.2.0",
"@angular/core": "^8.2.0", "@angular/core": "^8.2.0",
...@@ -30,45 +24,60 @@ ...@@ -30,45 +24,60 @@
"@devatscience/ngx-errors": "^0.1.1", "@devatscience/ngx-errors": "^0.1.1",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"primeng": "^8.0.2", "primeng": "^8.0.2",
"rxjs-marbles": "^5.0.0",
"rxjs": "^6.5.2" "rxjs": "^6.5.2"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^0.803.5", "@angular-devkit/build-angular": "^0.803.8",
"@angular/cli": "^8.3.5", "@angular/cli": "^8.3.8",
"@angular/common": "^8.2.7", "@angular/common": "^8.2.9",
"@angular/compiler": "^8.2.7", "@angular/compiler": "^8.2.9",
"@angular/compiler-cli": "^8.2.7", "@angular/compiler-cli": "^8.2.9",
"@angular/core": "^8.2.7", "@angular/core": "^8.2.9",
"@angular/forms": "^8.2.7", "@angular/forms": "^8.2.9",
"@angular/platform-browser": "^8.2.7", "@angular/platform-browser": "^8.2.9",
"@angular/platform-browser-dynamic": "^8.2.7", "@angular/platform-browser-dynamic": "^8.2.9",
"@angular/router": "^8.2.7", "@angular/router": "^8.2.9",
"@devatscience/ngx-errors": "^0.1.1", "@devatscience/ngx-errors": "^0.1.1",
"@types/jasmine": "^3.4.0", "@types/jasmine": "^3.4.2",
"@types/lodash": "^4.14.138", "@types/lodash": "^4.14.142",
"codelyzer": "^4.5.0", "husky": "^3.0.8",
"irstea-typescript-config": "^1.0.7", "irstea-typescript-config": "^2.1.2",
"jasmine": "^3.4.0", "jasmine": "^3.5.0",
"karma": "^4.3.0", "karma": "^4.3.0",
"karma-coverage-istanbul-reporter": "^2.1.0", "karma-coverage-istanbul-reporter": "^2.1.0",
"karma-firefox-launcher": "^1.2.0", "karma-firefox-launcher": "^1.2.0",
"karma-jasmine": "^2.0.1", "karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2", "karma-jasmine-html-reporter": "^1.4.2",
"lint-staged": "^10.0.0-0",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"ng-packagr": "^5.5.1", "ng-packagr": "^5.6.1",
"prettier": "^1.18.2", "prettier": "^1.18.2",
"prettier-tslint": "^0.4.2", "primeng": "^8.0.4",
"primeng": "^8.0.3",
"rxjs": "^6.5.3", "rxjs": "^6.5.3",
"rxjs-marbles": "^5.0.3", "rxjs-marbles": "^5.0.3",
"rxjs-tslint-rules": "^4.25.0", "tslint": "^5.20",
"tslint": "^5.20.0", "tsutils": "^3.17",
"tslint-config-prettier": "^1.18.0", "typescript": "~3.5",
"tslint-defocus": "^2.0.6",
"tslint-plugin-prettier": "^2.0.1",
"tsutils": "^3.17.1",
"typescript": "^3.6.3",
"zone.js": "^0.9.1" "zone.js": "^0.9.1"
},
"dependencies": {
"@devatscience/ngx-rxtools": "^1.0.1"
},
"scripts": {
"test": "ng test --code-coverage --no-watch --no-progress",
"lint": "ng lint && prettier --check **/*.{js,json,html,scss}",
"lint:fix": "ng lint --fix --force && prettier --write **/*.{ts,js,json,html,scss}",
"package": "ng-packagr"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,js,json,html,scss}": [
"prettier --write",
"git add"
]
} }
} }
module.exports = require('irstea-typescript-config/prettier.config');
{ {
"extends": ["tslint:recommended", "irstea-typescript-config"], "extends": ["tslint:recommended", "irstea-typescript-config"],
"rulesDirectory": ["node_modules/codelyzer"],
"rules": { "rules": {
"rxjs-prefer-async-pipe": false, "rxjs-prefer-async-pipe": false,
"directive-selector": [true, "attribute", "lib", "camelCase"], "directive-selector": [true, "attribute", "dbg", "camelCase"],
"component-selector": [true, "element", "lib", "kebab-case"] "component-selector": [true, "element", "dbg", "kebab-case"]
}, },
"linterOptions": { "linterOptions": {
"exclude": ["node_modules/**", "dist/**", "coverage/**"] "exclude": ["node_modules/**", "dist/**", "coverage/**"]
......
Supports Markdown
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