Skip to content

Commit

Permalink
getting ready for first publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Sep 24, 2014
1 parent d3280a2 commit 10fe405
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 46 deletions.
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ CONTRIBUTING.md
bower.json
examples
karma.conf.js
scripts
script
specs
webpack.config.js
16 changes: 8 additions & 8 deletions bower.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -23,7 +24,6 @@
"script",
"CONTRIBUTING.md",
"karma.conf.js",
"package.json",
"webpack.config.js"
"package.json"
]
}
}
18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,18 @@
"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"
},
"scripts": {
"test": "scripts/test --browsers Firefox --single-run"
},
"authors": [
"Ryan Florence",
"Michael Jackson"
"Ryan Florence"
],
"license": "MIT",
"devDependencies": {
Expand All @@ -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"
Expand Down
11 changes: 11 additions & 0 deletions script/build
Original file line number Diff line number Diff line change
@@ -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

4 changes: 0 additions & 4 deletions script/build-example-app

This file was deleted.

22 changes: 0 additions & 22 deletions specs/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 10fe405

Please sign in to comment.