Skip to content

Commit

Permalink
Merge pull request #190 from Senyoret1/pr189
Browse files Browse the repository at this point in the history
Pr189 with fixes
  • Loading branch information
gz-c authored May 7, 2018
2 parents f2caf51 + 57d5fd6 commit 7a4a3b4
Show file tree
Hide file tree
Showing 7 changed files with 155 additions and 75 deletions.
62 changes: 0 additions & 62 deletions .angular-cli.json

This file was deleted.

10 changes: 7 additions & 3 deletions .snyk
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.10.2
version: v1.12.0
ignore: {}
# patches apply the minimum changes required to fix a vulnerability
patch:
'npm:debug:20170905':
- karma > socket.io > socket.io-adapter > socket.io-parser > debug:
patched: '2018-04-18T04:53:49.215Z'
- karma > log4js > mailgun-js > debug:
patched: '2018-05-04T03:41:07.077Z'
'npm:ms:20170412':
- karma > socket.io > socket.io-adapter > socket.io-parser > debug > ms:
patched: '2018-04-18T04:53:49.215Z'
- karma > socket.io > socket.io-adapter > socket.io-parser > debug > ms: null
- karma > log4js > mailgun-js > debug > ms:
patched: '2018-05-04T03:41:07.077Z'
patched: '2018-04-18T04:53:49.215Z'
137 changes: 137 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"skycoin-explorer": {
"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/favicon.ico"
],
"styles": [
"src/assets/css/bootstrap.min.css",
"src/assets/css/fontawesome-all.min.css",
"src/styles.scss"
],
"scripts": [
"src/js/jquery-2.1.1.min.js",
"src/js/qrcode.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": "skycoin-explorer:build"
},
"configurations": {
"production": {
"browserTarget": "skycoin-explorer:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "skycoin-explorer: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": [
"src/js/jquery-2.1.1.min.js",
"src/js/qrcode.min.js"
],
"styles": [
"src/assets/css/bootstrap.min.css",
"src/assets/css/fontawesome-all.min.css",
"src/styles.scss"
],
"assets": [
"src/assets",
"src/favicon.ico"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": []
}
}
}
},
"skycoin-explorer-e2e": {
"root": "",
"sourceRoot": "",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "./protractor.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"exclude": []
}
}
}
}
},
"defaultProject": "skycoin-explorer",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "css"
},
"@schematics/angular:directive": {
"prefix": "app"
}
}
}
6 changes: 3 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular/cli'],
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher'),
require('karma-jasmine-html-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
},
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
dir: require('path').join(__dirname, 'coverage'), reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true
},
angularCli: {
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e -s false",
"e2e": "ng e2e",
"snyk-protect": "snyk protect",
"prepare": "npm run snyk-protect"
},
Expand All @@ -31,10 +31,10 @@
"moment": "^2.21.0",
"rxjs": "^5.5.2",
"zone.js": "^0.8.14",
"snyk": "^1.71.0"
"snyk": "^1.78.0"
},
"devDependencies": {
"@angular/cli": "^1.7.3",
"@angular/cli": "^6.0.0",
"@angular/compiler-cli": "^5.2.8",
"@angular/language-service": "^5.2.8",
"@types/jasmine": "~2.5.53",
Expand All @@ -52,7 +52,8 @@
"protractor": "~5.1.2",
"ts-node": "~3.2.0",
"tslint": "~5.7.0",
"typescript": "~2.4.2"
"typescript": "~2.4.2",
"@angular-devkit/build-angular": "~0.6.0"
},
"snyk": true
}
3 changes: 2 additions & 1 deletion src/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
]
},
"files": [
"test.ts"
"test.ts",
"polyfills.ts"
],
"include": [
"**/*.spec.ts",
Expand Down
3 changes: 1 addition & 2 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"eofline": true,
"forin": true,
"import-blacklist": [
true,
"rxjs"
true
],
"import-spacing": true,
"indent": [
Expand Down

0 comments on commit 7a4a3b4

Please sign in to comment.