diff --git a/.gitignore b/.gitignore index 18dd06b..3171f2b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,10 +2,12 @@ .c9/ node_modules/ test/**/node_modules/ +test/assets/docs/ test/**/typings/ test/**/coverage/ ts/*.js ts/*.js.map ts/typings/ +docs/ .DS_Store \ No newline at end of file diff --git a/dist/npmts.jsdoc.js b/dist/npmts.jsdoc.js index 631f1cf..1888b99 100644 --- a/dist/npmts.jsdoc.js +++ b/dist/npmts.jsdoc.js @@ -21,7 +21,12 @@ var publishDocs = function () { var done = plugins.Q.defer(); var deployScript = "" + "cd " + paths.docsDir + " " + - "&& mkdir hello"; + "&& git init " + + "&& git config user.name \"TRAVIS CI\" " + + "&& git config user.email \"travis@shipzone.io\" " + + "&& git add . " + + "&& git commit -m \"Deploy to GitHub Pages\" " + + "&& git push --force --quiet \"https://${GH_TOKEN}@${GH_REF}\" master:gh-pages > /dev/null 2>&1"; if (true || plugins.smartenv.getEnv().isTravis) { plugins.beautylog.log("now publishing docs to GitHub"); if (!plugins.shelljs.which('git')) { @@ -29,7 +34,7 @@ var publishDocs = function () { plugins.shelljs.exit(1); } else if (plugins.shelljs.exec(deployScript).code !== 0) { - plugins.beautylog.error('Error: Git commit failed'); + plugins.beautylog.error('Error: Git failed'); plugins.shelljs.exit(1); } done.resolve(); diff --git a/package.json b/package.json index 1d0155e..ff8d201 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "gulp-concat": "^2.6.0", "gulp-coveralls": "^0.1.4", "gulp-function": "^1.1.1", + "gulp-header": "^1.7.1", "gulp-if": "^2.0.0", "gulp-istanbul": "^0.10.3", "gulp-jsdoc3": "^0.2.0", diff --git a/test/assets/docs/fonts/glyphicons-halflings-regular.eot b/test/assets/docs/fonts/glyphicons-halflings-regular.eot deleted file mode 100644 index b93a495..0000000 Binary files a/test/assets/docs/fonts/glyphicons-halflings-regular.eot and /dev/null differ diff --git a/test/assets/docs/fonts/glyphicons-halflings-regular.svg b/test/assets/docs/fonts/glyphicons-halflings-regular.svg deleted file mode 100644 index 94fb549..0000000 --- a/test/assets/docs/fonts/glyphicons-halflings-regular.svg +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/assets/docs/fonts/glyphicons-halflings-regular.ttf b/test/assets/docs/fonts/glyphicons-halflings-regular.ttf deleted file mode 100644 index 1413fc6..0000000 Binary files a/test/assets/docs/fonts/glyphicons-halflings-regular.ttf and /dev/null differ diff --git a/test/assets/docs/fonts/glyphicons-halflings-regular.woff b/test/assets/docs/fonts/glyphicons-halflings-regular.woff deleted file mode 100644 index 9e61285..0000000 Binary files a/test/assets/docs/fonts/glyphicons-halflings-regular.woff and /dev/null differ diff --git a/test/assets/docs/fonts/glyphicons-halflings-regular.woff2 b/test/assets/docs/fonts/glyphicons-halflings-regular.woff2 deleted file mode 100644 index 64539b5..0000000 Binary files a/test/assets/docs/fonts/glyphicons-halflings-regular.woff2 and /dev/null differ diff --git a/test/assets/docs/img/glyphicons-halflings-white.png b/test/assets/docs/img/glyphicons-halflings-white.png deleted file mode 100644 index 3bf6484..0000000 Binary files a/test/assets/docs/img/glyphicons-halflings-white.png and /dev/null differ diff --git a/test/assets/docs/img/glyphicons-halflings.png b/test/assets/docs/img/glyphicons-halflings.png deleted file mode 100644 index a996999..0000000 Binary files a/test/assets/docs/img/glyphicons-halflings.png and /dev/null differ diff --git a/test/assets/docs/index.html b/test/assets/docs/index.html deleted file mode 100644 index cb59690..0000000 --- a/test/assets/docs/index.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - Documentation Index - - - - - - - - - - - - - -
-
- - -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- - -
- -
- - -
-
- - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/test/assets/docs/quicksearch.html b/test/assets/docs/quicksearch.html deleted file mode 100644 index 348ac81..0000000 --- a/test/assets/docs/quicksearch.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - diff --git a/test/assets/docs/scripts/docstrap.lib.js b/test/assets/docs/scripts/docstrap.lib.js deleted file mode 100644 index 1a5a9db..0000000 --- a/test/assets/docs/scripts/docstrap.lib.js +++ /dev/null @@ -1,11 +0,0 @@ -if(!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b="length"in a&&a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("