-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
133 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,8 @@ node_modules | |
bower_components | ||
|
||
.idea | ||
*.sublime* | ||
|
||
.zuulrc | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
test.js | ||
bower.json | ||
**/.* | ||
gulpfile.babel.js | ||
test/ | ||
bower.json | ||
node_modules/ | ||
*.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# 1.1.0 | ||
|
||
* Support for node.js 0.12, 4 and latest stable | ||
* Half the sizes of the bundles | ||
(production: ~350 bytes, development: ~700 bytes) | ||
* Location of bundles changed to directory **lib/** | ||
* Tests for ~ 50 browsers | ||
|
||
# 1.0.1 | ||
|
||
* Initial release | ||
* UMD bundle | ||
* Support for node.js 0.10, 0.12 and io.js | ||
* Tests for ~ 50 browsers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "luhn-alg", | ||
"main": "index.js", | ||
"version": "1.0.1", | ||
"main": "lib/index.js", | ||
"version": "1.1.0", | ||
"authors": [ | ||
"Leo Di Donato <[email protected]>" | ||
], | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"name": "luhn-alg", | ||
"description": "Fastest implementation of the Luhn algorithm", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
"jsnext:main": "src.js", | ||
"version": "1.1.0", | ||
"main": "lib/index.js", | ||
"jsnext:main": "src/src.js", | ||
This comment has been minimized.
Sorry, something went wrong. |
||
"author": { | ||
"name": "Leo Di Donato", | ||
"email": "[email protected]", | ||
|
@@ -19,26 +19,18 @@ | |
"url": "http://github.com/leodido/luhn.js/issues" | ||
}, | ||
"devDependencies": { | ||
"babel": "^5.5.6", | ||
"babel-eslint": "^3.1.15", | ||
"babel-runtime": "^5.5.8", | ||
"babelify": "^6.1.2", | ||
"browserify": "^10.2.4", | ||
"chai": "^3.0.0", | ||
"del": "^1.2.0", | ||
"eslint": "^0.23.0", | ||
"gulp": "gulpjs/gulp.git#4.0", | ||
"gulp-bump": "^0.3.1", | ||
"gulp-cli": "gulpjs/gulp-cli#4.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-sourcemaps": "^1.5.2", | ||
"gulp-uglify": "^1.2.0", | ||
"gulp-util": "^3.0.5", | ||
"mocha": "^2.2.5", | ||
"phantomjs": "^1.9.17", | ||
"vinyl-buffer": "^1.0.0", | ||
"vinyl-source-stream": "^1.1.0", | ||
"zuul": "^3.0.0" | ||
"babel-eslint": "^5.0.0", | ||
"babel-preset-es2015-rollup": "^1.1.1", | ||
"del-cli": "^0.2.0", | ||
"eslint": "^2.2.0", | ||
"eslint-config-defaults": "^9.0.0", | ||
"estraverse-fb": "^1.3.1", | ||
"mocha": "^2.4.5", | ||
"phantomjs": "^2.1.3", | ||
"rollup": "^0.25.4", | ||
"rollup-plugin-babel": "^2.4.0", | ||
"uglify-js": "^2.6.2", | ||
"zuul": "^3.9.0" | ||
}, | ||
"keywords": [ | ||
"luhn algorithm", | ||
|
@@ -60,10 +52,35 @@ | |
"test": "([ \"${SAUCELABS}\" = true ] && npm run testz) || true", | ||
"testz": "./node_modules/.bin/zuul --no-coverage --concurrency 5 -- test.js", | ||
"testp": "./node_modules/.bin/zuul --phantom -- test.js", | ||
"testl": "./node_modules/.bin/zuul --local 8080 --open -- test.js", | ||
"prepublish": "./node_modules/.bin/gulp production" | ||
"testl": "./node_modules/.bin/zuul --local 8080 --open -- test/*.js", | ||
|
||
"lint": "./node_modules/.bin/eslint src/*.js test/*.js", | ||
"clean": "./node_modules/.bin/del-cli lib/", | ||
"prebundle": "npm run clean", | ||
"bundle": "./node_modules/.bin/rollup -c rollup.config.js", | ||
"predist": "npm run bundle", | ||
"dist": "./node_modules/.bin/uglifyjs -c -m -o lib/index.min.js -- lib/index.js", | ||
"prepublish": "" | ||
}, | ||
"engines": { | ||
"node": ">=0.10" | ||
"node": ">=0.12" | ||
}, | ||
"eslintConfig": { | ||
"extends": "eslint-config-defaults", | ||
"parser": "babel-eslint", | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
}, | ||
"env": { | ||
"es6": true, | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"quotes": [ | ||
2, | ||
"single" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use strict' | ||
|
||
import babel from 'rollup-plugin-babel'; | ||
|
||
export default { | ||
entry: 'src/index.js', | ||
format: 'umd', | ||
moduleName: 'luhn', | ||
moduleId: 'luhn', | ||
sourceMap: true, | ||
plugins: [ | ||
babel({ | ||
exclude: 'node_modules/**' | ||
}) | ||
], | ||
dest: 'lib/index.js' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": [ "es2015-rollup" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
'use strict'; | ||
|
||
/* global describe:false, it:false */ | ||
|
||
|
||
import { expect } from 'chai'; | ||
import luhn from './src'; | ||
|
Should refer to ES6-module entry point (ready to use, created by prepublish hook).