Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Commit bc53c68

Browse files
release: 2.1.0
1 parent 5dfeac8 commit bc53c68

File tree

7 files changed

+2632
-1824
lines changed

7 files changed

+2632
-1824
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Ignore build directory
2-
dist/*
2+
dist/*
3+
libs/*

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ typings/
5757
# dotenv environment variables file
5858
.env
5959

60+
libs/
6061
dist/
61-
demo
62+
demo/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ deploy:
2424
skip_cleanup: true
2525
token: $GITHUB_TOKEN
2626
keep_history: true
27-
local_dir: dist
27+
local_dir: demo
2828
verbose: true
2929
on:
3030
branch: master

package.json

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-string-filter",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"private": false,
55
"description": "Lightweight Vue filter for string manipulation ",
66
"author": "Irfan Maulana (https://github.com/mazipan/)",
@@ -10,7 +10,7 @@
1010
"test": "vue-cli-service test:unit",
1111
"lint": "vue-cli-service lint --fix",
1212
"build:demo": "cross-env NODE_ENV=production vue-cli-service build --dest demo",
13-
"build:lib": "cross-env NODE_ENV=production tsc ./src/lib/index.ts -m CommonJS --outDir ./dist",
13+
"build:lib": "cross-env NODE_ENV=production tsc ./src/lib/index.ts -m CommonJS --outDir ./dist --declaration",
1414
"check:size": "node ./check-size.js",
1515
"dev": "vue-cli-service serve",
1616
"prepare": "yarn build:lib"
@@ -21,53 +21,55 @@
2121
"files": [
2222
"dist"
2323
],
24-
"dependencies": {},
24+
"dependencies": {
25+
"vue": "^2.6.11"
26+
},
2527
"devDependencies": {
26-
"@types/jest": "^24.0.19",
27-
"@types/node": "12.12.22",
28-
"@typescript-eslint/eslint-plugin": "2.13.0",
29-
"@typescript-eslint/parser": "2.13.0",
30-
"@vue/cli-plugin-babel": "4.1.1",
31-
"@vue/cli-plugin-eslint": "4.1.1",
32-
"@vue/cli-plugin-pwa": "4.1.1",
33-
"@vue/cli-plugin-router": "4.1.1",
34-
"@vue/cli-plugin-typescript": "4.1.1",
35-
"@vue/cli-plugin-unit-jest": "^4.1.2",
36-
"@vue/cli-plugin-vuex": "4.1.1",
37-
"@vue/cli-service": "4.1.1",
38-
"@vue/eslint-config-standard": "5.0.1",
39-
"@vue/eslint-config-typescript": "5.0.1",
40-
"@vue/test-utils": "^1.0.0-beta.31",
41-
"babel-eslint": "10.0.3",
42-
"bulma-dracula": "1.0.3",
28+
"@types/jest": "^26.0.3",
29+
"@types/node": "14.0.14",
30+
"@typescript-eslint/eslint-plugin": "3.5.0",
31+
"@typescript-eslint/parser": "3.5.0",
32+
"@vue/cli-plugin-babel": "4.4.6",
33+
"@vue/cli-plugin-eslint": "4.4.6",
34+
"@vue/cli-plugin-pwa": "4.4.6",
35+
"@vue/cli-plugin-router": "4.4.6",
36+
"@vue/cli-plugin-typescript": "4.4.6",
37+
"@vue/cli-plugin-unit-jest": "^4.4.6",
38+
"@vue/cli-plugin-vuex": "4.4.6",
39+
"@vue/cli-service": "4.4.6",
40+
"@vue/eslint-config-standard": "5.1.2",
41+
"@vue/eslint-config-typescript": "5.0.2",
42+
"@vue/test-utils": "^1.0.3",
43+
"babel-eslint": "10.1.0",
44+
"bulma-dracula": "1.0.4",
4345
"bytes": "3.1.0",
44-
"chalk": "3.0.0",
45-
"core-js": "3.6.1",
46-
"cross-env": "^7.0.0",
47-
"eslint": "6.8.0",
48-
"eslint-plugin-import": "2.19.1",
49-
"eslint-plugin-node": "11.0.0",
46+
"chalk": "4.1.0",
47+
"core-js": "3.6.5",
48+
"cross-env": "^7.0.2",
49+
"eslint": "7.3.1",
50+
"eslint-plugin-import": "2.22.0",
51+
"eslint-plugin-node": "11.1.0",
5052
"eslint-plugin-promise": "4.2.1",
5153
"eslint-plugin-standard": "4.0.1",
52-
"eslint-plugin-vue": "6.1.0",
54+
"eslint-plugin-vue": "6.2.2",
5355
"gzip-size": "5.1.1",
54-
"husky": "3.1.0",
55-
"jest": "^25.1.0",
56-
"lint-staged": "9.5.0",
56+
"husky": "4.2.5",
57+
"jest": "^26.1.0",
58+
"lint-staged": "10.2.11",
5759
"node-sass": "4.13.0",
58-
"prismjs": "1.17.1",
59-
"register-service-worker": "1.6.2",
60+
"prismjs": "1.20.0",
61+
"register-service-worker": "1.7.1",
6062
"sass-loader": "8.0.0",
6163
"tsc": "latest",
62-
"typescript": "3.7.4",
63-
"vue-class-component": "7.1.0",
64-
"vue-google-adsense": "1.8.0",
65-
"vue-prism-component": "1.1.1",
66-
"vue-property-decorator": "8.3.0",
67-
"vue-router": "3.1.3",
64+
"typescript": "3.9.6",
65+
"vue-class-component": "7.2.3",
66+
"vue-google-adsense": "1.8.3",
67+
"vue-prism-component": "1.2.0",
68+
"vue-property-decorator": "9.0.0",
69+
"vue-router": "3.3.4",
6870
"vue-script2": "2.1.0",
6971
"vue-template-compiler": "2.6.11",
70-
"vuex": "3.1.2"
72+
"vuex": "3.5.1"
7173
},
7274
"peerDependencies": {
7375
"vue": "2.6.11"
@@ -97,6 +99,5 @@
9799
"repository": {
98100
"type": "git",
99101
"url": "https://github.com/mazipan/vue-string-filter.git"
100-
},
101-
"typings": "dist/index.d.ts"
102+
}
102103
}

src/lib/VueStringFilter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { VueConstructor } from 'vue'
21
import lowercase from './lowercase'
32
import uppercase from './uppercase'
43
import capitalize from './capitalize'
@@ -13,7 +12,7 @@ import replaceFirst from './replace-first'
1312
import append from './append'
1413

1514
class VueStringFilter implements VueStringFilter {
16-
install (Vue: VueConstructor) {
15+
install (Vue) {
1716
Vue.filter('lowercase', lowercase)
1817

1918
Vue.filter('uppercase', uppercase)

tsconfig.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
"compilerOptions": {
33
"target": "es5",
44
"module": "commonjs",
5-
"declaration": true,
5+
"declaration": true,
6+
"emitDeclarationOnly": true,
67
"strict": true,
78
"jsx": "preserve",
89
"importHelpers": true,
910
"moduleResolution": "node",
10-
"noImplicitAny": false,
11+
"noEmit": false,
12+
"noImplicitAny": false,
1113
"strictNullChecks": false,
1214
"experimentalDecorators": true,
1315
"allowJs": true,
@@ -32,9 +34,8 @@
3234
"src/lib/**/*.ts",
3335
"src/lib/**/*.tsx",
3436
"src/lib/**/*.vue"
35-
3637
],
3738
"exclude": [
3839
"node_modules"
3940
]
40-
}
41+
}

0 commit comments

Comments
 (0)