Skip to content

Commit

Permalink
build: added new dependencies, script and config files.
Browse files Browse the repository at this point in the history
- tsconfig.json
- tslint.json
- .npmignore
  • Loading branch information
mauriciovigolo committed Sep 13, 2017
1 parent e28d1bf commit 9a9d7ca
Show file tree
Hide file tree
Showing 5 changed files with 185 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
.github
.gitmodules
.project
.settings
.tslintrc
.vscode
tslint.json
yarn.lock
package-lock.json
/docs/
/scripts/
/test/
158 changes: 147 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.1.0",
"description": "Easy Keycloak setup for Angular applications (v>4)",
"main": "index.ts",
"scripts": {},
"scripts": {
"lint": "./node_modules/.bin/tslint --force --format verbose \"lib/**/*.ts\""
},
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/mauriciovigolo/keycloak-angular.git"
Expand Down Expand Up @@ -32,6 +34,8 @@
"@angular/http": "^4.4.0-RC.0",
"@angular/router": "^4.4.0-RC.0",
"@types/keycloak-js": "^2.5.2",
"ts-lint": "^4.5.1"
"tslint": "^5.7.0",
"tslint-config-airbnb": "^5.2.1",
"typescript": "^2.5.2"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
"outDir": "./build", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "removeComments": true, /* Do not emit comments to output. */
// "noEmit": true, /* Do not emit outputs. */
Expand Down
18 changes: 18 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"defaultSeverity": "error",
"extends": ["tslint-config-airbnb"],
"jsRules": {},
"rules": {
"space-before-function-paren": false,
"ter-arrow-parens": false,
"trailing-comma": [false, { "multiline": "always", "singleline": "never" }],
"variable-name": [
true,
"allow-leading-underscore",
"allow-pascal-case",
"ban-keywords",
"check-format"
]
},
"rulesDirectory": []
}

0 comments on commit 9a9d7ca

Please sign in to comment.