-
Notifications
You must be signed in to change notification settings - Fork 960
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": [ "es2015", "stage-1" ] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ | |
"name": "history", | ||
"version": "2.0.1", | ||
"description": "Manage browser history with JavaScript", | ||
"author": "Michael Jackson", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mjackson/history.git" | ||
}, | ||
"files": [ | ||
"es6", | ||
"lib", | ||
|
@@ -10,38 +16,30 @@ | |
], | ||
"main": "lib/index", | ||
"jsnext:main": "es6/index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/mjackson/history.git" | ||
}, | ||
"scripts": { | ||
"lint": "eslint modules", | ||
"start": "webpack-dev-server -d --content-base ./ --history-api-fallback --inline modules/index.js", | ||
"build-cjs": "rimraf lib && babel ./modules --stage 0 --loose all --plugins dev-expression -d lib --ignore '__tests__'", | ||
"build-es6": "rimraf es6 && babel ./modules --stage 0 --loose all --plugins dev-expression -d es6 --blacklist=es6.modules --ignore '__tests__'", | ||
"build-cjs": "rimraf lib && babel ./modules -d lib --ignore '__tests__'", | ||
"build-es6": "rimraf es6 && babel ./modules -d es6 --blacklist=es6.modules --ignore '__tests__'", | ||
This comment has been minimized.
Sorry, something went wrong.
taion
Contributor
|
||
"build-umd": "NODE_ENV=production webpack modules/index.js umd/History.js", | ||
"build-min": "NODE_ENV=production webpack -p modules/index.js umd/History.min.js", | ||
"build": "node ./scripts/build.js", | ||
"release": "node ./scripts/release.js", | ||
"prepublish": "npm run build", | ||
"test": "npm run lint && karma start" | ||
"test": "npm run lint && karma start", | ||
"lint": "eslint modules" | ||
}, | ||
"authors": [ | ||
"Michael Jackson" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"deep-equal": "^1.0.0", | ||
"invariant": "^2.0.0", | ||
"query-string": "^3.0.0", | ||
"warning": "^2.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel": "^5.8.35", | ||
"babel-core": "^5.8.35", | ||
"babel-cli": "^6.6.5", | ||
"babel-eslint": "^5.0.0", | ||
"babel-loader": "^5.4.0", | ||
"babel-plugin-dev-expression": "^0.1.0", | ||
"babel-loader": "^6.2.4", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-stage-1": "^6.5.0", | ||
"eslint": "^2.2.0", | ||
"eslint-config-airbnb": "^6.0.2", | ||
"eslint-plugin-react": "^4.1.0", | ||
|
3 comments
on commit 0ed7c38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to update babel-plugin-dev-expression
to sync in the FB Babel 6 version. We should be stripping out warnings in our production builds.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration breaks
require('history/lib/createBrowserHistory')
. You needadd-module-exports
.Consider also adding
transform-es3-*
and friends (or else just picking up theairbnb
preset) to maximize browser compatibility.