diff --git a/.npmignore b/.npmignore index b5dbfd74..3c28928f 100644 --- a/.npmignore +++ b/.npmignore @@ -2,6 +2,5 @@ CONTRIBUTING.md bower.json examples karma.conf.js -scripts +script specs -webpack.config.js diff --git a/bower.json b/bower.json index ba6d4be9..d3507a0c 100644 --- a/bower.json +++ b/bower.json @@ -1,16 +1,17 @@ { - "name": "react-router", - "version": "0.7.0", - "homepage": "https://github.com/rackt/react-router", + "name": "react-modal", + "version": "0.0.0", + "homepage": "https://github.com/rackt/react-modal", "authors": [ "Ryan Florence", "Michael Jackson" ], "description": "A complete routing library for React.js", - "main": "dist/react-router.js", + "main": "dist/react-modal.js", "keywords": [ "react", - "router" + "modal", + "dialog" ], "license": "MIT", "ignore": [ @@ -23,7 +24,6 @@ "script", "CONTRIBUTING.md", "karma.conf.js", - "package.json", - "webpack.config.js" + "package.json" ] -} \ No newline at end of file +} diff --git a/package.json b/package.json index f9c91867..dc69592b 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "main": "./modules/index", "repository": { "type": "git", - "url": "https://github.com/rackt/react-router.git" + "url": "https://github.com/rackt/react-modal.git" }, - "homepage": "https://github.com/rackt/react-router", - "bugs": "https://github.com/rackt/react-router/issues", + "homepage": "https://github.com/rackt/react-modal", + "bugs": "https://github.com/rackt/react-modal/issues", "directories": { "example": "examples" }, @@ -16,8 +16,7 @@ "test": "scripts/test --browsers Firefox --single-run" }, "authors": [ - "Ryan Florence", - "Michael Jackson" + "Ryan Florence" ], "license": "MIT", "devDependencies": { @@ -44,15 +43,14 @@ "dependencies": {}, "tags": [ "react", - "router" + "modal", + "dialog" ], "keywords": [ "react", "react-component", - "routing", - "route", - "routes", - "router" + "modal", + "dialog" ], "browserify-shim": { "react": "global:React" diff --git a/script/build b/script/build new file mode 100755 index 00000000..f425beb9 --- /dev/null +++ b/script/build @@ -0,0 +1,11 @@ +#!/bin/sh +mkdir -p dist +NODE_ENV=production node_modules/.bin/browserify lib/index.js \ + -t reactify \ + -t browserify-shim \ + -t envify \ + --detect-globals false \ + -s ReactModal > dist/react-modal.js +node_modules/.bin/uglifyjs dist/react-modal \ + --compress warnings=false > dist/react-modal.min.js + diff --git a/script/build-example-app b/script/build-example-app deleted file mode 100755 index 000d974c..00000000 --- a/script/build-example-app +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -BROWSERIFY="node_modules/.bin/browserify --debug --detect-globals false" -BUNDLE_EXAMPLE="$BROWSERIFY -t reactify -t envify -x react -x react-modal" -$BUNDLE_EXAMPLE examples/basic/app.js > examples/basic/app-bundle.js diff --git a/specs/helper.js b/specs/helper.js index d27ae133..ec4015f8 100644 --- a/specs/helper.js +++ b/specs/helper.js @@ -3,25 +3,3 @@ expect = require('expect'); React = require('react/addons'); ReactTestUtils = React.addons.TestUtils; -refute = function (condition, message) { - assert(!condition, message); -}; - -var RouteStore = require('../modules/stores/RouteStore'); - -beforeEach(function () { - RouteStore.unregisterAllRoutes(); -}); - -var transitionTo = require('../modules/actions/LocationActions').transitionTo; -var MemoryLocation = require('../modules/locations/MemoryLocation'); -var PathStore = require('../modules/stores/PathStore'); - -beforeEach(function () { - PathStore.setup(MemoryLocation); - transitionTo('/'); -}); - -afterEach(function () { - PathStore.teardown(); -});