13 files changed +42
-159
lines changed Original file line number Diff line number Diff line change 3
3
.idea
4
4
coverage /
5
5
package-lock.json
6
- sample-project
6
+ sample-project
7
+ ts-sample-project
8
+
Original file line number Diff line number Diff line change
1
+ /dist /
2
+ /node_modules /
3
+ .idea
1
4
coverage /
2
- node_modules /
3
- sample-project /
5
+ package-lock.json
6
+ sample-project
7
+ ts-sample-project
8
+ .travis.yml
9
+ jest.config.js
10
+ tsconfig.json
11
+ tslint.json
12
+ src /
4
13
tests /
5
- src /
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ module.exports = {
12
12
testURL : "http://localhost/" ,
13
13
collectCoverage : true ,
14
14
collectCoverageFrom : [
15
- "src/**/*.{ts,tsx,js,jsx}"
15
+ "src/**/*.ts" ,
16
+ "!src/**/**/*.d.ts" ,
16
17
]
17
- }
18
+ }
Original file line number Diff line number Diff line change 3
3
"license" : " MIT" ,
4
4
"author" : " Justin Kames" ,
5
5
"description" : " vuejs-logger, provides customizable logging functionality for Vue.js." ,
6
- "version" : " 1.5.3 " ,
6
+ "version" : " 1.5.4 " ,
7
7
"repository" : {
8
8
"type" : " git" ,
9
9
"url" : " https://github.com/justinkames/vuejs-logger.git"
10
10
},
11
11
"main" : " dist/index.js" ,
12
12
"scripts" : {
13
- "build" : " tsc" ,
13
+ "build" : " tsc && npm test && mkdir -p ./dist/lib/types && cp src/lib/types/index.d.ts ./dist/lib/types/index.d.ts " ,
14
14
"tsc" : " tsc --watch" ,
15
15
"test" : " tsc && jest" ,
16
16
"upload-coverage" : " codecov -t $CODECOV_TOKEN" ,
17
- "publish" : " npm run build && npm publish"
17
+ "publish" : " npm run build && npm test && npm publish"
18
18
},
19
19
"devDependencies" : {
20
- "@types/jest" : " 23.3.1" ,
21
- "@types/node" : " 10.5.3" ,
22
- "jest" : " 23.4.1" ,
23
- "ts-jest" : " 23.0.1" ,
24
- "typescript" : " 2.9.2" ,
25
- "chai" : " 4.1.2" ,
26
- "vue" : " 2.5.16" ,
27
- "codecov" : " 3.0.4"
20
+ "@types/jest" : " 25.1.1" ,
21
+ "@types/node" : " 13.5.3" ,
22
+ "jest" : " 25.1.0" ,
23
+ "ts-jest" : " 25.1.0" ,
24
+ "typescript" : " 3.7.5" ,
25
+ "chai" : " 4.2.0" ,
26
+ "codecov" : " 3.6.2"
28
27
},
29
28
"dependencies" : {
29
+ "vue" : " 2.6.11" ,
30
30
"es6-object-assign" : " 1.1.0"
31
- }
31
+ },
32
+ "typings" : " dist/lib/types/index.d.ts"
32
33
}
Original file line number Diff line number Diff line change 1
1
import ObjectAssign from "es6-object-assign" ;
2
2
ObjectAssign . polyfill ( ) ;
3
- import VueLogger from "./vue-logger/vue-logger " ;
3
+ import VueLogger from "./vue-logger" ;
4
4
export default VueLogger ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import { strict , strictEqual } from "assert" ;
2
- import VueLogger from "../src" ;
3
- import { LogLevels } from "../src/vue-logger/ enum/log-levels" ;
2
+ import VueLogger from "../src/index " ;
3
+ import { LogLevels } from "../src/enum/log-levels" ;
4
4
5
5
describe ( "isValidOptions()" , ( ) => {
6
6
Original file line number Diff line number Diff line change 1
1
import { notStrictEqual , strictEqual } from "assert" ;
2
2
import chai from "chai" ;
3
3
import Vue from "vue/dist/vue.min" ;
4
- import VueLogger from "../src" ;
5
- import { LogLevels } from "../src/vue-logger/ enum/log-levels" ;
6
- import { ILoggerOptions } from "../src/vue-logger/ interfaces/logger-options" ;
4
+ import VueLogger from "../src/index " ;
5
+ import { LogLevels } from "../src/enum/log-levels" ;
6
+ import { ILoggerOptions } from "../src/interfaces/logger-options" ;
7
7
const expect = chai . expect ;
8
8
9
9
describe ( "vue-logger.ts" , ( ) => {
Original file line number Diff line number Diff line change 1
1
import chai from "chai" ;
2
2
import Vue from "vue/dist/vue.min" ;
3
- import VueLogger from "../src" ;
4
- import { LogLevels } from "../src/vue-logger/ enum/log-levels" ;
5
- import { ILoggerOptions } from "../src/vue-logger/ interfaces/logger-options" ;
3
+ import VueLogger from "../src/index " ;
4
+ import { LogLevels } from "../src/enum/log-levels" ;
5
+ import { ILoggerOptions } from "../src/interfaces/logger-options" ;
6
6
7
7
const expect = chai . expect ;
8
8
Original file line number Diff line number Diff line change 11
11
" allow-named-functions"
12
12
]
13
13
},
14
+ "rules" : {
15
+ "quotemark" : [true , " single" , " avoid-escape" ]
16
+ },
14
17
"rulesDirectory" : []
15
18
}
0 commit comments