Skip to content

Commit

Permalink
Merge pull request #32 from mmebsout/updateangular
Browse files Browse the repository at this point in the history
Updateangular and fix slider
  • Loading branch information
mmebsout authored Aug 17, 2020
2 parents 46e4081 + f2d4b5a commit a4b51eb
Show file tree
Hide file tree
Showing 53 changed files with 20,278 additions and 16,705 deletions.
66 changes: 0 additions & 66 deletions .angular-cli.json

This file was deleted.

146 changes: 146 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"cnes": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"assets": [
"src/assets",
"src/Logo_CNES.svg",
"src/favicon.ico",
"src/robots.txt",
"src/mock-data"
],
"styles": [
"node_modules/primeng/resources/themes/omega/theme.css",
"node_modules/font-awesome/css/font-awesome.min.css",
"node_modules/ngx-toastr/toastr.css",
"src/main.scss"
],
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/plotly.js/dist/plotly.min.js"
]
},
"configurations": {
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "cnes:build"
},
"configurations": {
"production": {
"browserTarget": "cnes:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "cnes:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"karmaConfig": "./karma.conf.js",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"scripts": [
"node_modules/jquery/dist/jquery.min.js",
"node_modules/plotly.js/dist/plotly.min.js"
],
"styles": [
"node_modules/primeng/resources/themes/omega/theme.css",
"node_modules/font-awesome/css/font-awesome.min.css",
"node_modules/ngx-toastr/toastr.css",
"src/main.scss"
],
"assets": [
"src/assets",
"src/Logo_CNES.svg",
"src/favicon.ico",
"src/robots.txt",
"src/mock-data"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": []
}
}
}
},
"cnes-e2e": {
"root": "e2e",
"sourceRoot": "e2e",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "./protractor.conf.js",
"devServerTarget": "cnes:serve"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude": []
}
}
}
}
},
"defaultProject": "cnes",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "scss"
},
"@schematics/angular:directive": {
"prefix": "app"
}
}
}
10 changes: 4 additions & 6 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-phantomjs-launcher'),
require('karma-junit-reporter'),
require('karma-coverage-istanbul-reporter'),
require('@angular/cli/plugins/karma')
require('@angular-devkit/build-angular/plugins/karma')
],
client: {
clearContext: false, // leave Jasmine Spec Runner output visible in browser
captureConsole: false
},
junitReporter: {
outputDir: 'reports/junit/',
outputDir: 'dir: require('path').join(__dirname, 'coverage'), reports/junit/',
outputFile: 'TESTS-xunit.xml',
useBrowserName: false,
suite: '' // Will become the package name attribute in xml testsuite element
Expand All @@ -27,9 +27,7 @@ module.exports = function(config) {
dir: './reports/coverage',
fixWebpackSourcePaths: true
},
angularCli: {
environment: 'dev'
},

reporters: ['progress', 'junit'],
port: 9876,
colors: true,
Expand Down
Loading

0 comments on commit a4b51eb

Please sign in to comment.