Skip to content

Commit

Permalink
style(all): Convert to es6 + standard
Browse files Browse the repository at this point in the history
Code is functionally equivalent, but source has been moved to
es6/es2015 style, including es6 modules. babel is now used for
compiling.

BREAKING CHANGE: UMD output is no longer pre-generated

build/genfun.js and company are gone. Instead, CommonJS output
is generated from the ES6 sources and output to dist/, mirroring
the src/ tree. The files are separate, instead of concatenated.
  • Loading branch information
zkat committed Jul 9, 2015
1 parent d873d0f commit 617b4f1
Show file tree
Hide file tree
Showing 8 changed files with 237 additions and 308 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,4 +1,4 @@
*~
node_modules/
build/
dist/
docs/
17 changes: 0 additions & 17 deletions jshint.conf.json

This file was deleted.

47 changes: 14 additions & 33 deletions package.json
Expand Up @@ -3,20 +3,20 @@
"description": "Prototype-friendly multiple method dispatch for JS.",
"homepage": "http://github.com/zkat/genfun.js",
"keywords": [
"util",
"functional",
"server",
"client",
"browser",
"client",
"clos",
"oop"
"functional",
"oop",
"server",
"util"
],
"author": "Kat Marchán <kzm@sykosomatic.org>",
"repository": {
"type": "git",
"url": "git://github.com/zkat/genfun.js"
},
"main": "src/genfun.js",
"main": "dist/genfun.js",
"version": "0.1.3",
"licenses": [
{
Expand All @@ -27,41 +27,22 @@
"files": [
"Makefile",
"README.md",
"src/*.js",
"build/",
"docs/",
"src/*.js",
"test/*.js"
],
"devDependencies": {
"browserify": "~2.28.0",
"uglify-js": "~2.3.6",
"babel": "^5.6.14",
"jsdoc": "~3.2.0",
"jshint": "~2.1.10",
"mocha": "~1.12.0"
"mocha": "~1.12.0",
"semantic-release": "^3.3.2",
"standard": "^4.5.2"
},
"readmeFilename": "README.md",
"scripts": {
"prepublish": "make",
"test": "make test"
},
"testling": {
"browsers": [
"iexplore/7.0",
"iexplore/8.0",
"iexplore/9.0",
"iexplore/10.0",
"chrome/25.0",
"firefox/19.0",
"opera/12.0",
"firefox/nightly",
"opera/next",
"chrome/canary",
"iphone/6.0",
"ipad/6.0",
"safari/6.0",
"android-browser/4.2"
],
"harness": "mocha",
"files": "test/*.js"
"build": "babel src --out-dir dist --source-map",
"prepublish": "npm run build",
"test": "npm run build && standard src/*.js && mocha"
}
}

0 comments on commit 617b4f1

Please sign in to comment.