Skip to content

Commit

Permalink
Close #17, close #18
Browse files Browse the repository at this point in the history
  • Loading branch information
tarkhov committed Sep 22, 2020
1 parent b2bc2f8 commit b29759f
Show file tree
Hide file tree
Showing 12 changed files with 102 additions and 12 deletions.
30 changes: 29 additions & 1 deletion dist/vue-string-directives.common.js

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

16 changes: 16 additions & 0 deletions dist/vue-string-directives.esm.js

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

38 changes: 33 additions & 5 deletions dist/vue-string-directives.umd.js

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

2 changes: 1 addition & 1 deletion dist/vue-string-directives.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel=icon href=/vue-string-directives/favicon.ico><title>docs</title><link href=/vue-string-directives/css/app.ddb81f88.css rel=preload as=style><link href=/vue-string-directives/css/chunk-vendors.3ccfbeb6.css rel=preload as=style><link href=/vue-string-directives/js/app.3545b957.js rel=preload as=script><link href=/vue-string-directives/js/chunk-vendors.d38998cf.js rel=preload as=script><link href=/vue-string-directives/css/chunk-vendors.3ccfbeb6.css rel=stylesheet><link href=/vue-string-directives/css/app.ddb81f88.css rel=stylesheet></head><body><noscript><strong>We're sorry but docs doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-string-directives/js/chunk-vendors.d38998cf.js></script><script src=/vue-string-directives/js/app.3545b957.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel=icon href=/vue-string-directives/favicon.ico><title>docs</title><link href=/vue-string-directives/css/app.ddb81f88.css rel=preload as=style><link href=/vue-string-directives/css/chunk-vendors.3ccfbeb6.css rel=preload as=style><link href=/vue-string-directives/js/app.989a4a77.js rel=preload as=script><link href=/vue-string-directives/js/chunk-vendors.d38998cf.js rel=preload as=script><link href=/vue-string-directives/css/chunk-vendors.3ccfbeb6.css rel=stylesheet><link href=/vue-string-directives/css/app.ddb81f88.css rel=stylesheet></head><body><noscript><strong>We're sorry but docs doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/vue-string-directives/js/chunk-vendors.d38998cf.js></script><script src=/vue-string-directives/js/app.989a4a77.js></script></body></html>
2 changes: 0 additions & 2 deletions docs/js/app.3545b957.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/app.3545b957.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions docs/js/app.989a4a77.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/app.989a4a77.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,24 @@ export default {
output: [
{
file: 'dist/' + name + '.common.js',
exports: 'auto',
exports: 'named',
format: 'cjs'
},
{
file: 'dist/' + name + '.esm.js',
exports: 'named',
format: 'es'
},
{
file: 'dist/' + name + '.umd.js',
exports: 'named',
name: 'VueStringDirectives',
format: 'umd'
},
{
file: 'dist/' + name + '.umd.min.js',
format: 'umd',
exports: 'named',
name: 'VueStringDirectives',
plugins: [terser()]
}
Expand Down
15 changes: 15 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import replace from './directives/replace'
import snake from './directives/snake'
import truncate from './directives/truncate'
import upper from './directives/upper'
import DirectivesMixin from './mixins/DirectivesMixin'

const VueStringDirectives = {
install (Vue) {
Expand All @@ -24,6 +25,20 @@ const VueStringDirectives = {
}
}

export {
camel,
capitalize,
kebab,
lower,
pad,
repeat,
replace,
snake,
truncate,
upper,
DirectivesMixin
}

export default VueStringDirectives

if (typeof window !== 'undefined' && window.Vue) {
Expand Down
File renamed without changes.

0 comments on commit b29759f

Please sign in to comment.