Permalink
Browse files

Including files to force development consistency for multiple developers

  • Loading branch information...
ecaron committed Apr 27, 2013
1 parent cf43352 commit e67db4ac72dc02d23df72ff50f8f080ccbf15204
Showing with 478 additions and 6 deletions.
  1. +2 −0 .gitignore
  2. +456 −0 LICENSE
  3. +5 −3 README.md
  4. +5 −3 compile/install.js
  5. +10 −0 package.json
  6. 0 preview/.gitkeep
View
@@ -0,0 +1,2 @@
+addon-sdk*
+node_modules/
View
456 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -9,13 +9,15 @@ To compile ignotifier project you need to have these softwares installed:
Folders description:
* src: ignotifier source code
* compile: nodejs auto-compiler
-* ../addon-sdk-*: latest version of [Mozilla addon-sdk](https://addons.mozilla.org/en-US/developers/builder).
+* addon-sdk-*: latest version of [Mozilla addon-sdk](https://addons.mozilla.org/en-US/developers/builder).
* preview: screenshots
* template: bootstrap folder
###How to compile ignotifier
-1. Open a new terminal in the root dir (directory contains src, addon-sdk-*, preview, and compile folders)
-2. Run "node compile\install.js" to run ignotifier in a new Firefox profile. To make xpi run "node compile\install.js --xpi". For more options use "--help"
+1. Open a new terminal in the root dir (directory contains src, addon-sdk-*, preview, template, and compile folders)
+2. Run ``npm install`` to acquire the necessary nodejs packages
+3. (On Windows) Run ``node compile\install.js`` to run ignotifier in a new Firefox profile. To make xpi run ``node compile\install.js --xpi``. For more options use ``node compile\install.js --help``
+ (On Mac or Linux) Run ``node compile/install.js`` to run ignotifier in a new Firefox profile. To make xpi run ``node compile/install.js --xpi``. For more options use ``node compile/install.js --help``
###How to try precompiled latest version
1. Select the right branch
View
@@ -1,4 +1,5 @@
var fs = require('fs'),
+ path = require('path'),
program = require('commander'),
clc = require('cli-color'),
spawn = require('child_process').spawn,
@@ -53,7 +54,7 @@ var installer = function (callback) {
/** Find SDK **/
var isWindows = !!process.platform.match(/^win/);
-fs.readdir("..", function (err, files) {
+fs.readdir(__dirname + path.sep + "..", function (err, files) {
if (err) throw new Error(err);
files = files.filter(function (file) {
@@ -67,8 +68,9 @@ fs.readdir("..", function (err, files) {
}
});
if (!files.length) throw new Error("Addon-sdk not found");
- var bootstrap = "../" + files[0] + "/app-extension/bootstrap.js";
- var sdk = "../" + files[0] + (isWindows ? "/bin" : "");
+ var curpath = __dirname + path.sep + ".." + path.sep;
+ var bootstrap = curpath + files[0] + "/app-extension/bootstrap.js";
+ var sdk = curpath + files[0] + (isWindows ? "/bin" : "");
console.log(clc.green(
"SDK varsion: " + files[0] + "\n" +
"bootstrap found at: " + bootstrap
View
@@ -0,0 +1,10 @@
+{
+ "author": "InBasic <inb.cor@gmail.com>",
+ "name" : "ignotifier",
+ "version" : "0.2.6",
+ "dependencies" :
+ {
+ "cli-color": "0.2",
+ "commander": "1.1"
+ }
+}
View
No changes.

0 comments on commit e67db4a

Please sign in to comment.