Skip to content

Commit

Permalink
Merge pull request #5 from specla/release-1.1
Browse files Browse the repository at this point in the history
Add minified version to dist
  • Loading branch information
Frederik Kvartborg Albertsen committed Jul 12, 2017
2 parents d13bfcb + 7381493 commit 416eb64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Coverage Status](https://coveralls.io/repos/github/specla/validator/badge.svg?branch=master)](https://coveralls.io/github/specla/validator?branch=master)
[![Dependency Status](https://david-dm.org/specla/validator.svg)](https://david-dm.org/specla/validator)
[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![gzip size](http://img.badgesize.io/https://unpkg.com/@specla/validator/dist/validator.min.js?compression=gzip)](https://unpkg.com/@specla/validator/dist/validator.min.js)

A `3 kb` gzip'ed schema validator, built for developers, with extensibility and performance in mind.
The validator is both compatible with Node.js and Browser environments out of
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"version": "1.0.0",
"homepage": "https://github.com/Specla/Validator#readme",
"description": "Super fast, 3 kb Schema validator for Node.js and the Browsers",
"main": "./dist/bundle.js",
"module": "./dist/bundle.js",
"main": "./dist/validator.js",
"module": "./dist/validator.js",
"scripts": {
"test": "npm run lint && nyc mocha --recursive test/*",
"test:watch": "mocha --watch",
"build": "rollup -c",
"build:watch": "rollup -c -w",
"minify": "uglifyjs dist/bundle.js -m -o dist/bundle.min.js",
"minify": "uglifyjs dist/validator.js -m -o dist/validator.min.js",
"coverage": "nyc report --reporter=text-lcov | coveralls",
"lint": "standard | snazzy",
"lint:fix": "standard --fix | snazzy",
"prepublish": "npm test && npm run build"
"prepublish": "npm test && npm run build && npm run minify"
},
"tags": [
"specla",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import commonjs from 'rollup-plugin-commonjs'

export default {
entry: 'lib/index.js',
dest: 'dist/bundle.js',
dest: 'dist/validator.js',
format: 'cjs',
moduleName: 'Validator',
plugins: [
Expand Down

0 comments on commit 416eb64

Please sign in to comment.