From 4d592be8af40ebcfe90b2a41001188274c0d4427 Mon Sep 17 00:00:00 2001 From: Leif Olsen Date: Wed, 9 Mar 2016 21:49:58 +0100 Subject: [PATCH] feat(build): Completed build with code coverage --- README.md | 14 ++++++++++---- package.json | 10 ++++++---- src/selectfield/selectfield.js | 2 +- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a262ac6..6e09a7a 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # mdl-ext +[![travis build](https://img.shields.io/travis/leifoolsen/mdl-ext.svg?style=flat-square)](https://travis-ci.org/leifoolsen/mdl-ext) +[![codecov coverage](https://img.shields.io/codecov/c/github/leifoolsen/mdl-ext.svg?style=flat-square)](https://codecov.io/github/leifoolsen/mdl-ext) +[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release) +[![version](https://img.shields.io/npm/v/mdl-ext.svg?style=flat-square)](http://npm.im/mdl-ext) + Components based on the [Google Material Design Lite](https://github.com/google/material-design-lite) framework. ## Install -```sh -$ npm install --save mdl-ext -``` - If you haven't done so already, install [Material Design Lite](https://github.com/google/material-design-lite) and [Material Design Icons](https://github.com/google/material-design-icons). ```sh @@ -14,6 +15,11 @@ $ npm install --save-dev material-design-icons $ npm install --save material-design-lite ``` +Install **mdl-ext** +```sh +$ npm install --save mdl-ext +``` + Optionally install [Font Roboto](https://github.com/choffmeister/roboto-fontface-bower) ```sh $ npm install --save-dev roboto-fontface" diff --git a/package.json b/package.json index 0d7700f..6fa2757 100644 --- a/package.json +++ b/package.json @@ -48,9 +48,9 @@ "url": "https://github.com/leifoolsen/mdl-ext/issues" }, "homepage": "https://github.com/leifoolsen/mdl-ext#readme", - "peerDependencies": { + "dependencies": { "material-design-icons": ">= 2.2.0", - "material-design-lite": ">= 1.1.0 < 2" + "material-design-lite": ">= 1.1.0" }, "devDependencies": { "autoprefixer": "6.3.3", @@ -68,6 +68,7 @@ "babel-runtime": "6.6.1", "chai": "3.5.0", "chalk": "1.1.1", + "codecov.io": "0.1.6", "commitizen": "2.6.3", "copy-webpack-plugin": "1.1.1", "css-loader": "0.23.1", @@ -76,6 +77,7 @@ "eslint-loader": "1.3.0", "extract-text-webpack-plugin": "1.0.1", "file-loader": "0.8.5", + "ghooks": "1.0.3", "gulp": "3.9.1", "gulp-git": "1.7.0", "ignore-styles": "1.2.0", @@ -91,6 +93,7 @@ "resolve-url-loader": "1.4.3", "roboto-fontface": "^0.4.5", "sass-loader": "3.1.2", + "semantic-release": "^4.3.5", "sinon": "1.17.3", "style-loader": "0.13.0", "stylelint": "4.4.0", @@ -99,7 +102,6 @@ "url-loader": "0.5.7", "webpack": "1.12.14", "webpack-dev-server": "1.14.1", - "yargs": "4.2.0", - "semantic-release": "^4.3.5" + "yargs": "4.2.0" } } diff --git a/src/selectfield/selectfield.js b/src/selectfield/selectfield.js index 0fecda0..7a525ea 100644 --- a/src/selectfield/selectfield.js +++ b/src/selectfield/selectfield.js @@ -47,7 +47,7 @@ * @constructor * @param {HTMLElement} element The element that will be upgraded. */ - var MaterialExtSelectfield = function MaterialExtSelectfield(element) { + const MaterialExtSelectfield = function MaterialExtSelectfield(element) { this.element_ = element; this.init(); // Initialize instance. };