Skip to content

Commit

Permalink
Merge c098ced into b3fb336
Browse files Browse the repository at this point in the history
  • Loading branch information
singuerinc committed Nov 7, 2018
2 parents b3fb336 + c098ced commit ade60c6
Show file tree
Hide file tree
Showing 6 changed files with 1,443 additions and 70 deletions.
12 changes: 12 additions & 0 deletions .babelrc
@@ -0,0 +1,12 @@
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"ie": "11"
}
}
]
]
}
150 changes: 88 additions & 62 deletions dist/index.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/index.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "better-dni",
"version": "2.2.0",
"version": "3.0.0",
"description": "The fastest Spanish DNI (NIE / NIF) validation out there.",
"main": "dist/index.js",
"license": "MIT",
Expand All @@ -19,6 +19,8 @@
"release": "NODE_ENV=production yarn test && yarn benchmark"
},
"devDependencies": {
"@babel/core": "^7.1.5",
"@babel/preset-env": "^7.1.5",
"@willowi/validate-nif": "^1.0.0",
"benchmark": "^2.1.4",
"coveralls": "^3.0.1",
Expand All @@ -27,7 +29,8 @@
"mocha": "^4.0.1",
"mocha-lcov-reporter": "^1.3.0",
"nyc": "^11.8.0",
"rollup": "^0.59.2"
"rollup": "^0.59.2",
"rollup-plugin-babel": "^4.0.3"
},
"keywords": [
"dni",
Expand Down
6 changes: 6 additions & 0 deletions rollup.config.js
@@ -1,4 +1,5 @@
import { version } from "./package.json";
import babel from "rollup-plugin-babel";

const banner =
"// Better DNI v" +
Expand All @@ -19,6 +20,11 @@ export default {
file: "dist/index.js",
name: "betterDni"
},
plugins: [
babel({
exclude: "node_modules/**"
})
],
watch: {
include: "src/**",
exclude: "node_modules/**"
Expand Down

0 comments on commit ade60c6

Please sign in to comment.