Skip to content

Commit f048aad

Browse files
committed
working components server and PHP server via pinf-to
1 parent c4b688b commit f048aad

6 files changed

Lines changed: 50 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FirePHP for Firebug.Next
22
========================
33

4-
The original [FirePHP Firebug extension](https://github.com/firephp/firephp-extension) re-implemented to leverage the latest [module loader](https://github.com/pinf/pinf-loader-js), [console logging](https://github.com/fireconsole), [out-of-band communication](https://github.com/firenode) libraries and [development system](https://github.com/devcomp-io) working against [Firebug.Next](https://github.com/firebug/firebug.next) and [Firefox Nightly](https://nightly.mozilla.org/).
4+
The original [FirePHP Firebug extension](https://github.com/firephp/firephp-extension) re-implemented to leverage the latest [module loader](https://github.com/pinf/pinf-loader-js), [console logging](https://github.com/fireconsole), [out-of-band communication](https://github.com/firenode) libraries, [installer](https://github.com/sourcemint/smi) and [development system](https://github.com/devcomp-io) working against [Firebug.Next](https://github.com/firebug/firebug.next) and [Firefox Nightly](https://nightly.mozilla.org/).
55

66

77
Install
@@ -38,7 +38,7 @@ Roadmap
3838
-------
3939

4040
1. Stabilize core featureset
41-
2. Refactor `client` and `components` into [github.com/freedom-platform/fp-for-mozilla-extensions](http://github.com/freedom-platform/fp-for-mozilla-extensions)
41+
2. Refactor `client` and `components` into [github.com/pinf-to/pinf-to-mozilla-addon](http://github.com/pinf-to/pinf-to-mozilla-addon) and [github.com/freedom-platform/fp-for-mozilla-extensions](http://github.com/freedom-platform/fp-for-mozilla-extensions)
4242
3. Support development without needing [github.com/firebug/dev-system](https://github.com/firebug/dev-system) by simply running: `git clone ; bin/install ; bin/run`
4343

4444

components/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
/.rt/
1+
/.rt/
2+
/.pub/

components/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
},
1515
"scripts": {
1616
"install": "../node_modules/.bin/smi install",
17-
"build": "rm -Rf .rt ; ../node_modules/to.pinf.lib/bin/pinf-bundle"
17+
"build": "rm -Rf .rt ; ../node_modules/to.pinf.lib/bin/pinf-bundle ; ../node_modules/pinf-to-browser/bin/pinf-publish",
18+
"run": "../node_modules/pinf-to-browser/bin/pinf-run",
19+
"start": "../node_modules/pinf-to-browser/bin/pinf-start"
1820
}
1921
}

components/program.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
2+
"name": "firephp-for-firebug.next-components",
23
"boot": {
34
"package": "./package.json"
45
},
56
"config": {
67
"github.com/pinf-it/pinf-it-bundler/0": {
78
"target": "browser"
9+
},
10+
"github.com/pinf-to/pinf-to-browser/0": {
811
}
912
}
10-
}
13+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@
1414
},
1515
"mappings": {
1616
"./client/node_modules/pinf-for-mozilla-addon-sdk": "top/pinf-for-mozilla-addon-sdk",
17+
"pinf-to-browser": "top/pinf-to-browser",
1718
"to.pinf.lib": "top/to.pinf.lib"
1819
},
1920
"scripts": {
2021
"install": "./node_modules/.bin/smi install ; cd components ; npm install --unsafe-perm ; cd .. ; cd ./server; npm install --unsafe-perm",
2122
"publish": "cd components ; npm run-script build ; cd .. ; cd ./server; npm run-script publish",
22-
"run": "cd ./server; npm run-script run",
23-
"start": "cd ./server; npm run-script start"
23+
"run": "./node_modules/to.pinf.lib/bin/pinf-run",
24+
"start": "./node_modules/to.pinf.lib/bin/pinf-start"
2425
},
2526
"config": {
2627
"smi.cli": {

program.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"config": {
3+
"github.com/pinf-to/to.pinf.lib/0": {
4+
"programs": {
5+
"components": {
6+
"path": "./components/program.json",
7+
"env": {
8+
"PORT": 8080
9+
},
10+
"routes": {
11+
"alive": {
12+
"uri": "/",
13+
"expect": {
14+
"statusCode": 200
15+
}
16+
}
17+
}
18+
},
19+
"server": {
20+
"path": "./server/program.json",
21+
"env": {
22+
"PORT": 49084
23+
},
24+
"routes": {
25+
"alive": {
26+
"uri": "/",
27+
"expect": {
28+
"statusCode": 200
29+
}
30+
}
31+
}
32+
}
33+
}
34+
}
35+
}
36+
}

0 commit comments

Comments
 (0)