Skip to content

Commit

Permalink
build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
limikael committed Sep 19, 2014
1 parent c64e4d6 commit 61ab127
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 24 deletions.
7 changes: 0 additions & 7 deletions .ftppass

This file was deleted.

5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: node_js
node_js:
- "0.10"

script: "./node_modules/.bin/grunt doc publish"
48 changes: 34 additions & 14 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,42 @@
var qsub = require("qsub");
var async = require("async");
var fs = require("fs");

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("publish", function() {
var done = this.async();

if (fs.existsSync("doc.zip"))
fs.unlinkSync("doc.zip");

async.series([

function(next) {
var job = qsub("zip");
job.arg("-r", "doc.zip", "doc");
job.expect(0);
job.run().then(next, grunt.fail.fatal);
},

function(next) {
var job = qsub("curl");
job.arg("-s", "-X", "POST");
job.arg("--data-binary", "@doc.zip");
job.arg("http://limikael.altervista.org/?target=pixitextinput&key=ScFVm5gw");
job.expect(0).expectOutput("OK").show();
job.run().then(next, grunt.fail.fatal);
},

function(next) {
fs.unlinkSync("doc.zip");
done();
}
}
]);
});

grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});

grunt.registerTask("doc", function() {
Expand All @@ -29,6 +48,7 @@ module.exports = function(grunt) {

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

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
var PixiTextInput = require("./src/PixiTextInput");

module.exports = PixiTextInput
module.exports = PixiTextInput;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
"description": "Text input field for pixi.js",
"dependencies": {},
"devDependencies": {
"async": "^0.9.0",
"browserify": "^5.11.1",
"grunt": "^0.4.5",
"grunt-ftpush": "^0.3.3",
"grunt-cli": "^0.1.13",
"pixi.js": "^1.6.1",
"qsub": "0.0.2",
"qsub": "0.0.4",
"yuidocjs": "^0.3.50"
},
"repository": {
Expand Down

0 comments on commit 61ab127

Please sign in to comment.