Skip to content

Commit 10fe405

Browse files
committed
getting ready for first publish
1 parent d3280a2 commit 10fe405

6 files changed

Lines changed: 28 additions & 46 deletions

File tree

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ CONTRIBUTING.md
22
bower.json
33
examples
44
karma.conf.js
5-
scripts
5+
script
66
specs
7-
webpack.config.js

bower.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
2-
"name": "react-router",
3-
"version": "0.7.0",
4-
"homepage": "https://github.com/rackt/react-router",
2+
"name": "react-modal",
3+
"version": "0.0.0",
4+
"homepage": "https://github.com/rackt/react-modal",
55
"authors": [
66
"Ryan Florence",
77
"Michael Jackson"
88
],
99
"description": "A complete routing library for React.js",
10-
"main": "dist/react-router.js",
10+
"main": "dist/react-modal.js",
1111
"keywords": [
1212
"react",
13-
"router"
13+
"modal",
14+
"dialog"
1415
],
1516
"license": "MIT",
1617
"ignore": [
@@ -23,7 +24,6 @@
2324
"script",
2425
"CONTRIBUTING.md",
2526
"karma.conf.js",
26-
"package.json",
27-
"webpack.config.js"
27+
"package.json"
2828
]
29-
}
29+
}

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,18 @@
55
"main": "./modules/index",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/rackt/react-router.git"
8+
"url": "https://github.com/rackt/react-modal.git"
99
},
10-
"homepage": "https://github.com/rackt/react-router",
11-
"bugs": "https://github.com/rackt/react-router/issues",
10+
"homepage": "https://github.com/rackt/react-modal",
11+
"bugs": "https://github.com/rackt/react-modal/issues",
1212
"directories": {
1313
"example": "examples"
1414
},
1515
"scripts": {
1616
"test": "scripts/test --browsers Firefox --single-run"
1717
},
1818
"authors": [
19-
"Ryan Florence",
20-
"Michael Jackson"
19+
"Ryan Florence"
2120
],
2221
"license": "MIT",
2322
"devDependencies": {
@@ -44,15 +43,14 @@
4443
"dependencies": {},
4544
"tags": [
4645
"react",
47-
"router"
46+
"modal",
47+
"dialog"
4848
],
4949
"keywords": [
5050
"react",
5151
"react-component",
52-
"routing",
53-
"route",
54-
"routes",
55-
"router"
52+
"modal",
53+
"dialog"
5654
],
5755
"browserify-shim": {
5856
"react": "global:React"

script/build

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
mkdir -p dist
3+
NODE_ENV=production node_modules/.bin/browserify lib/index.js \
4+
-t reactify \
5+
-t browserify-shim \
6+
-t envify \
7+
--detect-globals false \
8+
-s ReactModal > dist/react-modal.js
9+
node_modules/.bin/uglifyjs dist/react-modal \
10+
--compress warnings=false > dist/react-modal.min.js
11+

script/build-example-app

Lines changed: 0 additions & 4 deletions
This file was deleted.

specs/helper.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,3 @@ expect = require('expect');
33
React = require('react/addons');
44
ReactTestUtils = React.addons.TestUtils;
55

6-
refute = function (condition, message) {
7-
assert(!condition, message);
8-
};
9-
10-
var RouteStore = require('../modules/stores/RouteStore');
11-
12-
beforeEach(function () {
13-
RouteStore.unregisterAllRoutes();
14-
});
15-
16-
var transitionTo = require('../modules/actions/LocationActions').transitionTo;
17-
var MemoryLocation = require('../modules/locations/MemoryLocation');
18-
var PathStore = require('../modules/stores/PathStore');
19-
20-
beforeEach(function () {
21-
PathStore.setup(MemoryLocation);
22-
transitionTo('/');
23-
});
24-
25-
afterEach(function () {
26-
PathStore.teardown();
27-
});

0 commit comments

Comments
 (0)