Merge pull request #137 from serapath-contribution/master

ADD browserify support
This commit is contained in:
Jeff Nusz 2017-05-14 12:28:59 -07:00 committed by GitHub
commit 60009ca15c

View File

@ -1,11 +1,18 @@
{ {
"name": "dat.gui", "name": "dat.gui",
"version": "0.6.4", "version": "0.6.5",
"description": "A lightweight graphical user interface for changing variables in JavaScript.", "description": "A lightweight graphical user interface for changing variables in JavaScript.",
"main": "index.js", "main": "index.js",
"directories": { "directories": {
"test": "tests" "test": "tests"
}, },
"browserify": {
"transform": [
["babelify", { "presets": ["es2015"] }],
["stringify", { "extensions": [".html"] }],
["sassify"]
]
},
"scripts": { "scripts": {
"dev": "webpack --progress --colors --watch --config webpack/webpack.config.js --devtool sourcemap", "dev": "webpack --progress --colors --watch --config webpack/webpack.config.js --devtool sourcemap",
"build": "npm run build-js && npm run build-css", "build": "npm run build-js && npm run build-css",
@ -26,7 +33,6 @@
"babel-core": "^6.14.0", "babel-core": "^6.14.0",
"babel-loader": "^6.2.5", "babel-loader": "^6.2.5",
"babel-plugin-add-module-exports": "^0.2.1", "babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.14.0",
"babel-preset-stage-0": "^6.5.0", "babel-preset-stage-0": "^6.5.0",
"css-loader": "^0.25.0", "css-loader": "^0.25.0",
"eslint": "^3.5.0", "eslint": "^3.5.0",
@ -39,7 +45,12 @@
"sass-loader": "^4.0.2", "sass-loader": "^4.0.2",
"webpack": "1.14.x" "webpack": "1.14.x"
}, },
"dependencies": {}, "dependencies": {
"babel-preset-es2015": "^6.14.0",
"babelify": "^7.3.0",
"sassify": "^2.0.0",
"stringify": "^5.1.0"
},
"eslintConfig": { "eslintConfig": {
"extends": "airbnb-base", "extends": "airbnb-base",
"rules": { "rules": {