Skip to content

Commit

Permalink
2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinongko committed Sep 24, 2017
1 parent a2c31f6 commit 5038443
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 91 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Input field component to display a formatted currency value based on [Vue](https

### Install via CDN
```html
<script src="https://unpkg.com/accounting-js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-numeric"></script>

Expand Down
2 changes: 1 addition & 1 deletion dist/vue-numeric.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ <h1 class="title is-4">
</footer>
</div>

<script src="https://unpkg.com/accounting-js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-numeric"></script>

Expand Down
34 changes: 26 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-numeric",
"version": "2.1.2",
"version": "2.2.0",
"description": "Input field component to display currency value based on Vue.",
"author": "Kevin Ongko",
"main": "dist/vue-numeric.min.js",
Expand Down Expand Up @@ -28,8 +28,8 @@
"accounting-js": "^1.1.1"
},
"scripts": {
"test": "./node_modules/.bin/karma start test/karma.config.js",
"test:watch": "./node_modules/.bin/karma start test/karma.config.js --single-run=false",
"test": "cross-env BABEL_ENV=test ./node_modules/.bin/karma start test/karma.config.js",
"test:watch": "cross-env BABEL_ENV=test ./node_modules/.bin/karma start test/karma.config.js --single-run=false",
"lint": "./node_modules/.bin/eslint --ext .js,.vue src spec",
"build": "./node_modules/.bin/webpack --hide-modules -p --progress",
"report-coverage": "codecov"
Expand All @@ -39,10 +39,11 @@
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-istanbul": "^4.1.4",
"babel-preset-latest": "^6.24.1",
"babel-preset-env": "^1.6.0",
"chai": "^4.1.2",
"clean-webpack-plugin": "^0.1.16",
"codecov": "^2.3.0",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"eslint": "^4.6.0",
"eslint-plugin-vue": "3.12.0",
Expand All @@ -65,11 +66,28 @@
},
"babel": {
"presets": [
"latest"
[
"env",
{
"uglify": true,
"modules": false,
"targets": {
"browsers": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
}
]
],
"plugins": [
"istanbul"
]
"env": {
"test": {
"plugins": [
"istanbul"
]
}
}
},
"eslintConfig": {
"extends": [
Expand Down
15 changes: 9 additions & 6 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,34 @@ module.exports = {
extensions: ['.js', '.json', '.vue']
},
entry: './src/index.js',
externals: {
'accounting-js': 'accounting'
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: "vue-numeric.min.js",
library: 'VueNumeric',
libraryTarget: 'umd',
umdNamedDefine: true,
umdNamedDefine: true
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
loader: 'vue-loader'
},
{
test: /\.js$/,
loader: 'babel-loader',
exclude: path.resolve(__dirname, 'node_modules'),
},
exclude: path.resolve(__dirname, 'node_modules')
}
]
},
plugins: [
new CleanWebpackPlugin(['./dist']),
new CleanWebpackPlugin(['./dist'])
],
devtool: false,
performance: {
hints: false,
hints: false
}
}
Loading

0 comments on commit 5038443

Please sign in to comment.