Compare commits

...

3 Commits

Author SHA1 Message Date
6045174edb 3.3.0 2016-02-23 20:02:18 +01:00
08dcdb2c9f now installing typings before compiling 2016-02-23 20:02:07 +01:00
44aa92c83c now completeley hiding git console output 2016-02-23 18:58:44 +01:00
5 changed files with 27 additions and 21 deletions

View File

@ -12,4 +12,4 @@ deploy:
repo: pushrocks/npmts repo: pushrocks/npmts
env: env:
global: global:
secure: dsyzaiCghJroEC6MK6PHq/IBRC/PjnHO+ucdiX73E7mdYV7wQvnqnd9+81vyqwdtSiIYM8VaO73PNJ3NkBRX5ANDU+WwVywxQqsRZoEeNxhTbU0/RFSa3jEJBcFTMwUC19vtlnKJ+j0FgU+ywFZ8ae7pky0SNGHpu9FLOqRNLy9nHkFrivcok4DHy/tz3WCJQdXDi+NJ4Thst96qbN99RnbHMfS4Z7TilAUEeeLre3NuYBWcZDYSrPLwuDs8BI1zct42YelBeL0EkAhp3WWoUUIOvOyjhrU0RhGyLWueIigPVYGD5xu4b1AfC7nMXNMmmMcDtGmeN/XBcFtEPeiSd8tocq26QS6pSvQ8xe1dDB9xdxfVAk9omXtZLsKIzuZ5lD7cZMSrEAW3ZMjHFAx4M2PKUmsoiJrU11tdxKHAknxNYTMVrUbtKBpu1weV+LSZOecOwV3l6s/azgSp97OVIn6Cr/AwoYTA+oWhuxdYf1f0Sq3KYckDw+57nG8cLUL+mZdvY81yHau+3xgSAwfjWgYgyeoZyCUz/QU1HCk4khJGsLc/bgyj3iCKv3S9IT5wUYkgRS+7+NGgG+PEaMZ2Ud2h0o6s7MXvW2aFb5IZ4+Jz51rH49sPUd4qBmYu2LwHCCdrwJeuvUZVoP61xHmnX4dpig3HJGuTh+Ihz8GQnqA= secure: kPKBMnEKoC+K5dXpl11NhuK3LSp0c0fRO60Akj3QeQBjUWnVAcF0Ht30c31y0lnJaMEzXhmUIKdR7RQnlmw5be4TYGINzY7FD3Dcv7o+HO1ZQrkpMWSu46jF6ZJer9moGjZ8e0rX8wZyB9SqsXYlwWRzqvxfOVxQfTvU3BEnJKHbhq+R5JMJ8dwLBPNTJKMWKq85KNsjo3ap0BjxdBUoRLzvrn31VOPH30BkvmLGc5YiIz5QmITll/T2wmQKYTNT2qDlEJ729B8pYa3eNlCNi89AxsLDGCmEoJAVrPsyw5g+gAyBqZ1GRULy83UJbELUq7cse3MRLMSwCAm4f0INRAuqcyiKYJ4+LHd0NwKrFQ/dQ0pvyBTbbEjNemXaakkWH7S6F03UvF+u+tiQ7C97XH0CRsseGlm36zCkAClEhtWVWA4U0Q5c6zqRAAOYOI0xquXalRKPTJe7fCYewp2eqmlp8drt8MxancyKI/ynXNoR5vGFzDTSRoPjTlaYQPmbiH4+Nd5+6Qoj94PEIqghebIPDQo3C7vWts4WGccux5b2q524UgB63hjJQA6+GQOo1q4RibouS6WScn8/tW/ZOEP+sNhDfkeiZUIjye+Q3PyzonGHefgSQ8wBbsc8LOX0cKUcEFWr14nhdQ9ZeW+hrSSF04TbM4zGJPGcKhmT2UU=

View File

@ -4,7 +4,8 @@ var plugins = {
gulp: require("gulp"), gulp: require("gulp"),
g:{ g:{
typescript: require("gulp-typescript"), typescript: require("gulp-typescript"),
header: require("gulp-header") header: require("gulp-header"),
typings:require("gulp-typings")
}, },
mergeStream: require("merge2"), mergeStream: require("merge2"),
path: require("path") path: require("path")
@ -18,7 +19,13 @@ paths = {
plugins.beautylog.log('now compiling NPMTS'); plugins.beautylog.log('now compiling NPMTS');
plugins.gulp.task('indexTS', function() { plugins.gulp.task("typings",function(){
var stream = plugins.gulp.src(plugins.path.join(paths.packageBase,"ts/typings.json"))
.pipe(plugins.g.typings());
return stream;
});
plugins.gulp.task("indexTS",["typings"], function() {
var stream = plugins.gulp.src([ var stream = plugins.gulp.src([
plugins.path.join(paths.packageBase,'ts/**/*.ts'), plugins.path.join(paths.packageBase,'ts/**/*.ts'),
"!" + plugins.path.join(paths.packageBase,'ts/typings/**/*.d.ts') "!" + plugins.path.join(paths.packageBase,'ts/typings/**/*.d.ts')

15
dist/npmts.jsdoc.js vendored
View File

@ -26,16 +26,14 @@ var publishDocs = function (configArg) {
}).git.httpsUrl; }).git.httpsUrl;
var deployScript = "" var deployScript = ""
+ "cd " + paths.docsDir + " " + "cd " + paths.docsDir + " "
+ "&& git init " + "&& git init " + "> /dev/null 2>&1 "
+ "&& git config user.name \"TRAVIS CI\" " + "&& git config user.name \"TRAVIS CI\" " + "> /dev/null 2>&1 "
+ "&& git config user.email \"travis@shipzone.io\" " + "&& git config user.email \"travis@shipzone.io\" " + "> /dev/null 2>&1 "
+ "&& git add . " + "&& git add . " + "> /dev/null 2>&1 "
+ "&& git commit -m \"Deploy to GitHub Pages\" " + "&& git commit -m \"Deploy to GitHub Pages\" " + "> /dev/null 2>&1 "
+ "&& git push --force --quiet " + "&& git push --force --quiet "
+ "\"" + gitUrl + "\" " + "\"" + gitUrl + "\" "
+ "master:gh-pages " + "master:gh-pages " + "> /dev/null 2>&1";
+ "> /dev/null 2>&1";
console.log(deployScript);
if (plugins.smartenv.getEnv().isTravis) { if (plugins.smartenv.getEnv().isTravis) {
plugins.beautylog.log("now publishing docs to GitHub"); plugins.beautylog.log("now publishing docs to GitHub");
if (!plugins.shelljs.which('git')) { if (!plugins.shelljs.which('git')) {
@ -46,6 +44,7 @@ var publishDocs = function (configArg) {
plugins.beautylog.error('Error: Git failed'); plugins.beautylog.error('Error: Git failed');
plugins.shelljs.exit(1); plugins.shelljs.exit(1);
} }
plugins.beautylog.success("Docs have been deployed to GitHub");
done.resolve(configArg); done.resolve(configArg);
} }
else { else {

View File

@ -1,6 +1,6 @@
{ {
"name": "npmts", "name": "npmts",
"version": "3.2.2", "version": "3.3.0",
"description": "write npm modules with TypeScript", "description": "write npm modules with TypeScript",
"main": "dist/index.js", "main": "dist/index.js",
"bin": { "bin": {
@ -49,6 +49,7 @@
"typings": "^0.6.8" "typings": "^0.6.8"
}, },
"devDependencies": { "devDependencies": {
"gulp-header": "^1.7.1" "gulp-header": "^1.7.1",
"gulp-typings": "^1.1.0"
} }
} }

View File

@ -30,16 +30,14 @@ var publishDocs = function(configArg){
var deployScript = "" var deployScript = ""
+ "cd " + paths.docsDir + " " + "cd " + paths.docsDir + " "
+ "&& git init " + "&& git init " + "> /dev/null 2>&1 "
+ "&& git config user.name \"TRAVIS CI\" " + "&& git config user.name \"TRAVIS CI\" " + "> /dev/null 2>&1 "
+ "&& git config user.email \"travis@shipzone.io\" " + "&& git config user.email \"travis@shipzone.io\" " + "> /dev/null 2>&1 "
+ "&& git add . " + "&& git add . " + "> /dev/null 2>&1 "
+ "&& git commit -m \"Deploy to GitHub Pages\" " + "&& git commit -m \"Deploy to GitHub Pages\" " + "> /dev/null 2>&1 "
+ "&& git push --force --quiet " + "&& git push --force --quiet "
+ "\"" + gitUrl + "\" " + "\"" + gitUrl + "\" "
+ "master:gh-pages " + "master:gh-pages " + "> /dev/null 2>&1";
+ "> /dev/null 2>&1";
console.log(deployScript);
if(plugins.smartenv.getEnv().isTravis){ if(plugins.smartenv.getEnv().isTravis){
plugins.beautylog.log("now publishing docs to GitHub") plugins.beautylog.log("now publishing docs to GitHub")
@ -50,6 +48,7 @@ var publishDocs = function(configArg){
plugins.beautylog.error('Error: Git failed'); plugins.beautylog.error('Error: Git failed');
plugins.shelljs.exit(1); plugins.shelljs.exit(1);
} }
plugins.beautylog.success("Docs have been deployed to GitHub");
done.resolve(configArg); done.resolve(configArg);
} else { } else {
done.resolve(configArg); done.resolve(configArg);