Skip to content

Commit

Permalink
v0.5.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed Aug 11, 2016
1 parent 4d37b7c commit e5846dc
Show file tree
Hide file tree
Showing 13 changed files with 150 additions and 114 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
**/*.js
**/*.js.map
**/*.d.ts

/npm-debug.log

Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
12 changes: 0 additions & 12 deletions ng2-uploader.d.ts

This file was deleted.

24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"name": "ng2-uploader",
"description": "Angular2 File Uploader",
"version": "0.5.10",
"version": "0.5.12",
"license": "MIT",
"main": "ng2-uploader.ts",
"author": "Jan Kuri <[email protected]>",
"scripts": {
"clean": "./scripts/clean.sh",
"lint": "tslint \"src/**/*.ts\"",
"dev": "tsc --watch",
"prepublish": "typings install && tsc"
"prepublish": "tsc"
},
"repository": {
"type": "git",
Expand All @@ -22,17 +24,17 @@
"uploader"
],
"dependencies": {
"@angular/common": "github:angular/common-builds",
"@angular/compiler": "github:angular/compiler-builds",
"@angular/core": "github:angular/core-builds",
"clang-format": "^1.0.42",
"es6-promise": "^3.2.1",
"es6-shim": "^0.35.1",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.0.0-beta.6",
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"core-js": "^2.4.1",
"reflect-metadata": "0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
"typescript": "1.8.10"
"codelyzer": "0.0.26",
"tslint": "3.14.0",
"typescript": "2.0.0"
}
}
5 changes: 5 additions & 0 deletions scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

find . -name "*.js" -type f -delete
find . -name "*.js.map" -type f -delete
find . -name "*.d.ts" -type f -delete
2 changes: 1 addition & 1 deletion src/directives/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './ng-file-drop';
export * from './ng-file-select';
export * from './ng-file-select';
10 changes: 0 additions & 10 deletions src/directives/ng-file-drop.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/directives/ng-file-select.d.ts

This file was deleted.

51 changes: 0 additions & 51 deletions src/services/ng2-uploader.d.ts

This file was deleted.

18 changes: 4 additions & 14 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,11 @@
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"mapRoot": "",
"module": "commonjs",
"lib": ["es6", "dom"],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"noEmitOnError": true,
"noImplicitAny": true,
"rootDir": ".",
"sourceMap": true,
"sourceRoot": "./",
"target": "es5"
},
"files": [
"typings/index.d.ts",
"ng2-uploader.ts"
],
"exclude": [
"node_modules"
]
}
}
110 changes: 110 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
{
"rulesDirectory": [
"node_modules/codelyzer"
],
"rules": {
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [
true,
"spaces"
],
"label-position": true,
"label-undefined": true,
"max-line-length": [
true,
140
],
"member-access": false,
"member-ordering": [
true,
"static-before-instance",
"variables-before-functions"
],
"no-arg": true,
"no-bitwise": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-debugger": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": false,
"no-eval": true,
"no-inferrable-types": true,
"no-shadowed-variable": true,
"no-string-literal": false,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-unreachable": true,
"no-use-before-declare": true,
"no-var-keyword": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"single"
],
"radix": true,
"semicolon": [
"always"
],
"triple-equals": [
true,
"allow-null-check"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],

"directive-selector-name": [true, "camelCase"],
"component-selector-name": [true, "kebab-case"],
"directive-selector-type": [true, "attribute"],
"component-selector-type": [true, "element"],
"use-input-property-decorator": true,
"use-output-property-decorator": true,
"use-host-property-decorator": true,
"no-input-rename": true,
"no-output-rename": true,
"use-life-cycle-interface": true,
"use-pipe-transform-interface": true,
"component-class-suffix": true,
"directive-class-suffix": true
}
}
5 changes: 0 additions & 5 deletions typings.json

This file was deleted.

0 comments on commit e5846dc

Please sign in to comment.