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

Configuration pour le dévéloppement "standalone".

No related merge requests found
Showing with 13618 additions and 58 deletions
+13618 -58
/node_modules
/dist
angular.json 0 → 100644
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": ".",
"projects": {
"ngx-debug": {
"root": "",
"sourceRoot": "src",
"projectType": "library",
"cli": {
"packageManager": "npm"
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"aot": true,
"index": "src/index.html",
"main": "src/public-api.ts",
"tsConfig": "./tsconfig.lib.json"
},
"configurations": {
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "ngx-debug:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"karmaConfig": "./karma.conf.js",
"tsConfig": "./tsconfig.spec.json"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["./tsconfig.lib.json", "./tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "default"
}
// Karma configuration file, see link for more information // Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html // https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) { module.exports = function(config) {
config.set({ config.set({
basePath: '', basePath: "",
frameworks: ['jasmine', '@angular-devkit/build-angular'], frameworks: ["jasmine", "@angular-devkit/build-angular"],
plugins: [ plugins: [
require('karma-jasmine'), require("karma-jasmine"),
require('karma-chrome-launcher'), require("karma-firefox-launcher"),
require('karma-jasmine-html-reporter'), require("karma-jasmine-html-reporter"),
require('karma-coverage-istanbul-reporter'), require("karma-coverage-istanbul-reporter"),
require('@angular-devkit/build-angular/plugins/karma') require("@angular-devkit/build-angular/plugins/karma")
], ],
client: { client: {
clearContext: false // leave Jasmine Spec Runner output visible in browser clearContext: false // leave Jasmine Spec Runner output visible in browser
}, },
coverageIstanbulReporter: { coverageIstanbulReporter: {
dir: require('path').join(__dirname, '../../coverage/debugger'), dir: __dirname + "/coverage/ngx-errors",
reports: ['html', 'lcovonly', 'text-summary'], reports: ["html", "lcovonly", "text-summary"],
fixWebpackSourcePaths: true fixWebpackSourcePaths: true
}, },
reporters: ['progress', 'kjhtml'], reporters: ["progress", "kjhtml"],
port: 9876, port: 9876,
colors: true, colors: true,
logLevel: config.LOG_INFO, logLevel: config.LOG_INFO,
autoWatch: true, autoWatch: true,
browsers: ['Chrome'], browsers: ["Firefox"],
singleRun: false, singleRun: false,
restartOnFileChange: true restartOnFileChange: true
}); });
......
{ {
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json", "$schema": "node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/ngx-debug", "dest": "dist/ngx-debug",
"lib": { "lib": {
"entryFile": "src/src.ts" "entryFile": "src/public-api.ts"
} }
} }
package-lock.json 0 → 100644
+ 13439
0
View file @ a2b4f2f6
This diff is collapsed.
{ {
"name": "@devatscience/ngx-debug", "name": "@devatscience/ngx-debug",
"version": "0.1.1", "version": "0.1.1",
"keywords": [
"debug",
"primeng",
"angular",
"ngx"
],
"license": "LGPL-3.0-or-later",
"author": "Guillaume Perréal",
"contributors": [
"Harold Boissenin"
],
"repository": {
"type": "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": {
"@devatscience/ngx-errors": "^0.1.1",
"@angular/common": "^8.2.0", "@angular/common": "^8.2.0",
"@angular/core": "^8.2.0", "@angular/core": "^8.2.0",
"@angular/forms": "^8.2.0", "@angular/forms": "^8.2.0",
"@angular/router": "^8.2.0", "@angular/router": "^8.2.0",
"@devatscience/ngx-errors": "^0.1.1",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"primeng": "^8.0.2", "primeng": "^8.0.2",
"rxjs": "^6.5.2", "rxjs-marbles": "^5.0.0",
"rxjs-marbles": "^5.0.0" "rxjs": "^6.5.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.803.5",
"@angular/cli": "^8.3.5",
"@angular/common": "^8.2.7",
"@angular/compiler": "^8.2.7",
"@angular/compiler-cli": "^8.2.7",
"@angular/core": "^8.2.7",
"@angular/forms": "^8.2.7",
"@angular/platform-browser": "^8.2.7",
"@angular/platform-browser-dynamic": "^8.2.7",
"@angular/router": "^8.2.7",
"@devatscience/ngx-errors": "^0.1.1",
"@types/jasmine": "^3.4.0",
"@types/lodash": "^4.14.138",
"codelyzer": "^4.5.0",
"irstea-typescript-config": "^1.0.7",
"jasmine": "^3.4.0",
"karma": "^4.3.0",
"karma-coverage-istanbul-reporter": "^2.1.0",
"karma-firefox-launcher": "^1.2.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"lodash": "^4.17.15",
"ng-packagr": "^5.5.1",
"prettier": "^1.18.2",
"prettier-tslint": "^0.4.2",
"primeng": "^8.0.3",
"rxjs": "^6.5.3",
"rxjs-marbles": "^5.0.3",
"rxjs-tslint-rules": "^4.25.0",
"tslint": "^5.20.0",
"tslint-config-prettier": "^1.18.0",
"tslint-defocus": "^2.0.6",
"tslint-plugin-prettier": "^2.0.1",
"tsutils": "^3.17.1",
"typescript": "^3.6.3",
"zone.js": "^0.9.1"
} }
} }
{
"extends": "./node_modules/irstea-typescript-config/tsconfig.json",
"compilerOptions": {
"outDir": "out-tsc/lib",
"target": "es2015",
"declaration": true,
"sourceMap": true,
"inlineSources": false,
"experimentalDecorators": true,
"typeRoots": ["node_modules/@types"],
"moduleResolution": "node"
},
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
}
}
{ {
"extends": "../../src/tsconfig.json", "extends": "./tsconfig.common.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/lib", "outDir": "out-tsc/lib",
"target": "es2015",
"declaration": true,
"sourceMap": true,
"inlineSources": false,
"types": [], "types": [],
"lib": [ "lib": ["dom", "es2018"]
"dom",
"es2018"
]
}, },
"angularCompilerOptions": { "angularCompilerOptions": {
"annotateForClosureCompiler": true, "annotateForClosureCompiler": true,
...@@ -20,8 +13,6 @@ ...@@ -20,8 +13,6 @@
"strictInjectionParameters": true, "strictInjectionParameters": true,
"enableResourceInlining": true "enableResourceInlining": true
}, },
"exclude": [ "files": ["src/public-api.ts"],
"src/test.ts", "exclude": ["src/test.ts", "**/*.spec.ts"]
"**/*.spec.ts"
]
} }
{ {
"extends": "../../tsconfig.json", "extends": "./tsconfig.common.json",
"compilerOptions": { "compilerOptions": {
"outDir": "../../out-tsc/spec", "outDir": "out-tsc/spec",
"types": [ "types": ["jasmine", "node"]
"jasmine",
"node"
]
}, },
"files": [ "files": ["src/test.ts"],
"src/test.ts" "include": ["**/*.spec.ts", "**/*.d.ts"]
],
"include": [
"**/*.spec.ts",
"**/*.d.ts"
]
} }
{ {
"extends": "../../tslint.json", "extends": ["tslint:recommended", "irstea-typescript-config"],
"rulesDirectory": ["node_modules/codelyzer"],
"rules": { "rules": {
"directive-selector": [ "rxjs-prefer-async-pipe": false,
true, "directive-selector": [true, "attribute", "lib", "camelCase"],
"attribute", "component-selector": [true, "element", "lib", "kebab-case"]
"lib", },
"camelCase" "linterOptions": {
], "exclude": ["node_modules/**", "dist/**", "coverage/**"]
"component-selector": [
true,
"element",
"lib",
"kebab-case"
]
} }
} }
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