- https://github.com/pedrovelasquez9/springboot-postgresql-docker-compose/blob/master/angular/my-front-app/dockerfile
- docker build -t angular-ideas:2.0 .
- docker rmi image_id
- docker run -p 4200:4200 fc1a701c5507 -d
- docker stop bcf1cc578e43
- docker-compose build
- docker-compose up
- docker-compose down
- docker image rm afd 801
- github.com/karma-nunner/karma-coverage/blob/master/README.md
- npm install karma karma-coverage --save-dev
- comentar en karma.conf.js //require('karma-coverage-istanbul-reporter'),
- agregar en karma.conf.js require('karma-coverage'),
- https://www.npmjs.com/package/karma-mocha-reporter
- npm install --save-dev karma-mocha-reporter
- añadir luego al archivo karma.conf.js require('karma-mocha-reporter')
- modificar reporters: ['progress', 'kjhtml'], a reporters: ['mocha', 'kjhtml'],
- github.com/typicode/json-server
- npm install -g json-server
- json-server --watch db.json
https://docs.sonarqube.org/latest/analyzing-source-code/scanners/sonarscanner/
cd refugio luego ejecutar comandos
C:\sonarqube-8.9.10.61524\ss-4.7.x-php\bin\
sonar-scanner -Dsonar.login=1dafde238dbde9821ab0fbc409e56008401b7fb0 -Dsonar.host.url=http://localhost:9000 -Dsonar.projectName=angularroute -Dsonar.projectKey=angularrouteID -Dsonar.projectVersion=1.0 -Dsonar.sources=.
"development": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "5mb",
"maximumError": "4mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "1mb",
"maximumError": "1mb"
}
]
}
sonar-scanner -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.projectName=angularroute -Dsonar.projectKey=angularrouteID -Dsonar.projectVersion=1.0 -Dsonar.sources=.
1 con powershell node .\node_modules@angular\cli\bin\ng build --base-href="/angularroure/" --output-path="tomcat_publish/salida" 2 abrir la carpeta salida ruta frontend/tomcat_publish/ 3 copiar la carpeta WEB-INF dentro de salida ruta frontend/tomcat_publish/salida/ 4 dentro de frontend/tomcat_publish/salida gitbash(unix, linux) si usas java 7 'C:\Program Files\Java\jdk1.7.0_80\bin\jar.exe' cvf angularroute.war * 5 copiar angularroute.war y pegar en otra ruta para que no se borre, se encuentra en frontend/tomcat_publish/salida/
https://www.tutorialspoint.com/angular_cli/angular_cli_code_coverage.htm
@angular-devkit/build-angular": "~0.1102.12", "@angular-eslint/builder": "4.3.0", "@angular-eslint/eslint-plugin": "4.3.0", "@angular-eslint/eslint-plugin-template": "4.3.0", "@angular-eslint/schematics": "4.3.0", "@angular-eslint/template-parser": "4.3.0",
npm install --save @angular-eslint/builder@4.3.0 npm install --save @angular-eslint/eslint-plugin@4.3.0 npm install --save @angular-eslint/eslint-plugin-template@4.3.0 npm install --save @angular-eslint/schematics@4.3.0 npm install --save @angular-eslint/template-parser@4.3.0