Add ES5 transpilation to build

master
Dan Finlay 7 years ago
parent 0f442d28af
commit 60c61aabca
No known key found for this signature in database
GPG Key ID: 931102F24B36007A

@ -20,3 +20,7 @@ var input = getUserInput()
var normalized = namehash.normalize(input) var normalized = namehash.normalize(input)
``` ```
## Development
This module supports advanced JavaScript syntax, but exports an ES5-compatible module. To re-build the exported module after making changes, run `npm run bundle` (must have [browserify](http://browserify.org/) installed).

4035
dist/index.js vendored

File diff suppressed because one or more lines are too long

@ -1,9 +1,10 @@
{ {
"name": "eth-ens-namehash", "name": "eth-ens-namehash",
"version": "2.0.0", "version": "2.0.1",
"description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137", "description": "A simple module for generating ENS namehashes per spec https://github.com/ethereum/EIPs/issues/137",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"bundle": "browserify -s EthEnsNamehash -e index.js -o dist/index.js",
"test": "node test" "test": "node test"
}, },
"repository": { "repository": {
@ -21,7 +22,10 @@
}, },
"homepage": "https://github.com/flyswatter/eth-ens-namehash#readme", "homepage": "https://github.com/flyswatter/eth-ens-namehash#readme",
"devDependencies": { "devDependencies": {
"tape": "^4.6.3" "tape": "^4.6.3",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"browserify": "^14.0.0"
}, },
"dependencies": { "dependencies": {
"idna-uts46": "^1.0.1", "idna-uts46": "^1.0.1",

Loading…
Cancel
Save