Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
⬆️ Up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 10, 2017
1 parent eee0658 commit 5eaa635
Show file tree
Hide file tree
Showing 23 changed files with 845 additions and 564 deletions.
25 changes: 13 additions & 12 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,19 @@ function createBundle ({ name, env, entry, format }) {
}).then(function (bundle) {
const options = Object.assign({}, bundleOptions)
if (format) options.format = format
const code = bundle.generate(options).code
if (/min$/.test(name)) {
const minified = uglify.minify(code, {
output: {
preamble: banner,
ascii_only: true, // eslint-disable-line camelcase
},
}).code
return write(`dist/${name}.js`, minified)
} else {
return write(`dist/${name}.js`, code)
}
return bundle.generate(options).then(({ code }) => {
if (/min$/.test(name)) {
const minified = uglify.minify(code, {
output: {
preamble: banner,
ascii_only: true, // eslint-disable-line camelcase
},
}).code
return write(`dist/${name}.js`, minified)
} else {
return write(`dist/${name}.js`, code)
}
})
}).catch(logError)
}

Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,65 +37,65 @@
"pre-commit": "lint:staged",
"devDependencies": {
"add-asset-html-webpack-plugin": "^2.0.1",
"babel-core": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-helper-vue-jsx-merge-props": "^2.0.2",
"babel-loader": "^7.0.0",
"babel-loader": "^7.1.1",
"babel-plugin-istanbul": "^4.1.4",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-plugin-transform-vue-jsx": "^3.4.3",
"babel-preset-env": "^1.5.2",
"babel-preset-env": "^1.6.0",
"camelcase": "^4.1.0",
"chai": ">= 3.5.0 && < 4.0.0",
"chai-dom": "^1.5.0",
"codacy-coverage": "^2.0.2",
"cross-env": "^5.0.1",
"css-loader": "^0.28.4",
"eslint": "^3.19.0",
"eslint": "^4.2.0",
"eslint-config-vue": "^2.0.2",
"eslint-plugin-vue": "^2.0.1",
"eslint-plugin-vue": "^2.1.0",
"extract-text-webpack-plugin": "^2.1.2",
"function-bind": "^1.1.0",
"html-webpack-plugin": "^2.28.0",
"html-webpack-plugin": "^2.29.0",
"in-publish": "^2.0.0",
"karma": "^1.7.0",
"karma-chai-dom": "^1.1.0",
"karma-chrome-launcher": "^2.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.1",
"karma-mocha": "^1.3.0",
"karma-sinon-chai": "^1.3.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "^0.0.31",
"karma-webpack": "^2.0.3",
"lint-staged": "^4.0.0",
"karma-webpack": "^2.0.4",
"lint-staged": "^4.0.1",
"material-components-web": "^0.14.0",
"mocha": "^3.4.2",
"mocha-css": "^1.0.1",
"node-sass": "^4.5.3",
"null-loader": "^0.1.1",
"pre-commit": "^1.2.2",
"rimraf": "^2.6.1",
"rollup": "^0.42.0",
"rollup": "^0.45.0",
"rollup-plugin-buble": "^0.15.0",
"rollup-plugin-commonjs": "^8.0.2",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-replace": "^1.1.1",
"rollup-plugin-scss": "^0.2.0",
"rollup-plugin-scss": "^0.3.0",
"rollup-plugin-vue": "^2.4.0",
"sass-loader": "^6.0.5",
"sinon": "^2.3.2",
"sinon-chai": "^2.10.0",
"sass-loader": "^6.0.6",
"sinon": "^2.3.7",
"sinon-chai": "^2.11.0",
"style-loader": "^0.18.2",
"uglify-js": "^3.0.15",
"uglify-js": "^3.0.24",
"uppercamelcase": "^3.0.0",
"vue": "^2.3.4",
"vue-loader": "^12.2.1",
"vue-loader": "^13.0.0",
"vue-template-compiler": "^2.3.4",
"webpack": "^3.0.0",
"webpack": "^3.1.0",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-dashboard": "^0.4.0",
"webpack-dev-server": "^2.4.5",
"webpack-dev-server": "^2.5.1",
"webpack-merge": "^4.1.0",
"yarn-or-npm": "^2.0.4"
},
Expand Down
4 changes: 2 additions & 2 deletions src/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default {
render (h, { data, props, children }) {
const staticClass = propsToClasses('mdc-button', props)
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('button', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/Card/CardActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default {
render (h, { data, children, props }) {
const staticClass = propsToClasses('mdc-card__actions', props)
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
children.forEach(child => {
if (child.tag === 'button') {
child.data.staticClass += ' mdc-card__action'
Expand Down
4 changes: 2 additions & 2 deletions src/Card/CardHorizontalBlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
render (h, { data, children }) {
const staticClass = 'mdc-card__horizontal-block'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('div', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/Card/CardMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export default {
render (h, { data, children, props }) {
const staticClass = 'mdc-card__media'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
data.style = data.style || {}
data.style['background-image'] = data.style['background-image'] || `url(${props.media})`

Expand Down
4 changes: 2 additions & 2 deletions src/Card/CardPrimary.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
render (h, { data, children }) {
const staticClass = 'mdc-card__primary'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('section', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/Card/CardSubtitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
render (h, { data, children }) {
const staticClass = 'mdc-card__subtitle'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('h2', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/Card/CardSupportingText.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
render (h, { data, children }) {
const staticClass = 'mdc-card__supporting-text'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('section', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/Card/CardTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export default {
render (h, { data, children, props, parent }) {
const staticClass = propsToClasses('mdc-card__title', props)
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('h1', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/Dialog/DialogHeaderTitle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
render (h, { data, children }) {
const staticClass = 'mdc-dialog__header__title'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('h2', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/Fab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default {
}) {
const staticClass = propsToClasses('mdc-fab', { mini, plain })
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
if (icon) {
data.staticClass += ' material-icons'
Expand Down
4 changes: 2 additions & 2 deletions src/List/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default {
delete props.tag
const staticClass = propsToClasses('mdc-list', props)
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h(tag, {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions src/List/ListDivider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default {
render (h, { data }) {
const staticClass = 'mdc-list-divider'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h('hr', {
...data,
})
Expand Down
4 changes: 2 additions & 2 deletions src/List/ListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default {
render (h, { data, children, props: { tag }}) {
const staticClass = 'mdc-list-item'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
return h(tag, {
...data,
}, children)
Expand Down
2 changes: 1 addition & 1 deletion src/Toolbar/ToolbarRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
const staticClass = 'mdc-toolbar__row'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
: staticClass
return h('div', {
...data,
}, children)
Expand Down
2 changes: 1 addition & 1 deletion src/Toolbar/ToolbarSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
if (shrink) staticClass += ' mdc-toolbar__section--shrink-to-fit'
data.staticClass = data.staticClass
? `${data.staticClass} ${staticClass}`
: staticClass
: staticClass
return h('section', {
...data,
}, children)
Expand Down
4 changes: 2 additions & 2 deletions test/specs/Button.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ describe('Button.vue', function () {
const vm = createVM(this, `
<Button class="my-button">Click me</Button>
`, {
components: { Button },
})
components: { Button },
})
vm.$('button').should.have.text('Click me')
vm.$('button').should.have.class('mdc-button')
})
Expand Down
Loading

0 comments on commit 5eaa635

Please sign in to comment.