Skip to content

Commit

Permalink
first version
Browse files Browse the repository at this point in the history
  • Loading branch information
limikael committed Sep 9, 2014
1 parent 5295692 commit 456eb8d
Show file tree
Hide file tree
Showing 10 changed files with 1,147 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .ftppass
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"altervista": {
"username": "pixitextinput@netpokerdoc",
"password": "LAn3wVdB"
}
}

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
doc
node_modules
.grunt
48 changes: 48 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
var qsub = require("qsub");

module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-ftpush');

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
ftpush: {
doc: {
auth: {
host: 'ftp.netpokerdoc.altervista.org',
authKey: 'altervista',
port: 21
},
src: 'doc',
dest: '',
useList: true
}
}

});

grunt.registerTask("doc", function() {
var done = this.async();

var job = qsub("./node_modules/.bin/yuidoc");
job.arg("--configfile", "res/yuidoc.json");
job.show().expect(0);

job.run().then(done, function(e) {
console.log(e);
});
});

grunt.registerTask("browserify", function() {
var done = this.async();

var job = qsub("./node_modules/.bin/browserify").arg("-d");
job.arg("-o", "test/textinputtest.bundle.js");
job.arg("test/textinputtest.js");
job.show().expect(0);

job.run().then(done, function(e) {
console.log(e);
throw e;
})
});
}
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "pixitextinput",
"version": "0.0.1",
"description": "Text input field for pixi.js",
"dependencies": {},
"devDependencies": {
"browserify": "^5.11.1",
"grunt": "^0.4.5",
"grunt-ftpush": "^0.3.3",
"pixi.js": "^1.6.1",
"qsub": "0.0.2",
"yuidocjs": "^0.3.50"
},
"repository": {
"type": "git",
"url": "https://github.com/limikael/pixitextinput.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/limikael/pixitextinput/issues"
},
"homepage": "https://github.com/limikael/pixitextinput"
}
10 changes: 10 additions & 0 deletions res/yuidoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "pixitextinput",
"description": "Text input field for pixi.js",
"version": "0.1",
"options": {
"outdir": "doc",
"paths": "src",
"preprocessor": "res/yuidoc_die_on_warnings.js"
}
}
10 changes: 10 additions & 0 deletions res/yuidoc_die_on_warnings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = function(data) {
console.log("Checking for warnings...");

for (var i in data.warnings) {
var warning = data.warnings[i];

if (warning.message != "unknown tag: internal")
throw warning.message;
}
}
Loading

0 comments on commit 456eb8d

Please sign in to comment.