Linter added. Tests enabled. Dist clean up.

This commit is contained in:
Aleksandra Usacheva 2019-11-28 15:25:43 +03:00
parent 6f47ee7d80
commit 62567209be
No known key found for this signature in database
GPG Key ID: A749C17B07D29A0E
5 changed files with 919 additions and 3 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@
/dist
/tmp
/out-tsc
**/*.tgz
# dependencies
/node_modules

7
jasmine.json Normal file
View File

@ -0,0 +1,7 @@
{
"spec_dir": "src",
"spec_files": ["**/*[sS]pec.ts"],
"helpers": ["helpers/**/*.ts"],
"stopSpecOnExpectationFailure": false,
"random": true
}

901
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,7 @@
"dist/**/*"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "ts-node node_modules/jasmine/bin/jasmine --reporter=jasmine-console-reporter --config=jasmine.json",
"build": "tsc",
"clean": "rimraf dist",
"prettier": "prettier \"**/*.{html,js,ts,css,scss,md,json,prettierrc,svg}\"",
@ -26,8 +26,17 @@
},
"devDependencies": {
"@types/jasmine": "^3.5.0",
"jasmine": "^3.5.0",
"jasmine-console-reporter": "^3.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage-istanbul-reporter": "^2.1.1",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"path": "^0.12.7",
"prettier": "^1.19.1",
"rimraf": "^3.0.0",
"ts-node": "^8.5.3",
"tslint": "^5.20.1",
"typescript": "^3.7.2",
"typescript-tslint-plugin": "^0.5.5"
},

View File

@ -28,5 +28,5 @@
]
},
"include": ["src"],
"exclude": ["node_modules"]
"exclude": ["node_modules", "src/**/*.spec.*"]
}