Skip to content

Commit 3b094df

Browse files
committed
Merge pull request #10 from solidusjs/add-bower
Add Bower for front end package management.
2 parents 0375c13 + fc8bf21 commit 3b094df

5 files changed

Lines changed: 40 additions & 5 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
bower_components

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A Google Chrome developer tools extension for use by [Solidus](https://github.co
44

55
#Build
66
* Clone the repo with `git clone https://github.com/solidusjs/devtools-solidus.git devtools-solidus`
7-
* Run `npm install` to install dependencies
7+
* Run `npm install` to install dependencies (npm will automatically run a script to install front-end dependencies using bower).
88
* (Optional) Chrome will complain about `.pem` files in some of the dependencies, so you can manually delete `node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/test/` to prevent Chrome from warning you when you install the extension.
99

1010
#Installation

bower.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "devtools-solidus",
3+
"version": "0.1.0",
4+
"homepage": "https://github.com/solidusjs/devtools-solidus",
5+
"authors": [
6+
"Josiah Sprague <josiah.sprague@gmail.com>",
7+
"Eric Lanehart <eric@sparkart.com>"
8+
],
9+
"description": "Adds Solidus debugging tools to the Chrome Developer Tools.",
10+
"main": "views/devpanel.html",
11+
"moduleType": [
12+
"node"
13+
],
14+
"keywords": [
15+
"solidus",
16+
"devtools",
17+
"chrome"
18+
],
19+
"license": "MIT",
20+
"private": true,
21+
"ignore": [
22+
"**/.*",
23+
"node_modules",
24+
"bower_components",
25+
"test",
26+
"tests"
27+
],
28+
"dependencies": {
29+
"ember": "~1.5.1",
30+
"bootstrap": "~3.2.0",
31+
"Inspector-JSON": "SparkartGroupInc/Inspector-JSON#~0.1.0"
32+
}
33+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"url": "https://github.com/solidusjs/devtools-solidus/issues"
2121
},
2222
"scripts": {
23-
"test": "grunt test"
23+
"test": "grunt test",
24+
"postinstall": "node_modules/.bin/bower install"
2425
},
2526
"devDependencies": {
2627
"grunt": "~0.4.5",
@@ -29,7 +30,7 @@
2930
"grunt-contrib-uglify": "~0.4.0"
3031
},
3132
"dependencies": {
32-
"Inspector-JSON": "SparkartGroupInc/Inspector-JSON",
33+
"bower": "^1.3.6",
3334
"socket.io-client": "^1.0.6"
3435
}
3536
}

views/devpanel.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<head>
44
<script src="../node_modules/socket.io-client/socket.io.js"></script>
55
<script src="devpanel.js"></script>
6-
<script src="../node_modules/inspector-json/inspector-json.js"></script>
7-
<link href="../node_modules/inspector-json/inspector-json.css" media="all" rel="stylesheet" type="text/css">
6+
<script src="../bower_components/Inspector-JSON/inspector-json.js"></script>
7+
<link href="../bower_components/Inspector-JSON/inspector-json.css" media="all" rel="stylesheet" type="text/css">
88
</head>
99
<body>
1010
<div id="messageholder"></div>

0 commit comments

Comments
 (0)