initial
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
node_modules/
 | 
			
		||||
.settings/
 | 
			
		||||
.idea/
 | 
			
		||||
							
								
								
									
										19
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.travis.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
language: node_js
 | 
			
		||||
before_install:
 | 
			
		||||
  - nvm install stable
 | 
			
		||||
  - node -v
 | 
			
		||||
  - npm -v
 | 
			
		||||
  - npm install -g gulp
 | 
			
		||||
  - npm install gulp
 | 
			
		||||
  - npm install gulp-typescript
 | 
			
		||||
deploy:
 | 
			
		||||
  provider: npm
 | 
			
		||||
  email: npm@smart-coordination.com
 | 
			
		||||
  api_key:
 | 
			
		||||
    secure: hfuRCg2RSNTvSe49w+rqx/fPt2OILDTjdYkga5BnGr0Rja5yL/2SpVNOP62lYNQBB61TfqfT8F4gQsQyAuygzhNT1ijZ4qCvSdqHqXki/0hzTVZAvfF2aoLxUnuCMAYawUyx5nibJKCmGXvH9MbMrEwV5Gh0uSf0HRmskp/GKuXw5epnMkOT2SEr9Mw7Hpu3VKLEALoKOI2hYBRv555sRFkI3Cd9v1n0384HEjCbQEwXhPwwki2XL2SXzGP8IOccE3xLK9zsQO2RDCqaKpIsK682ZtrvyqxmAJaivtO6VImkpBXcKniYOqJR6sWrsw5345er/iSSr30fgjw4I6LNyUcmF59Uw/dPAElvLN6jU6zxg/+GHM7xqz/J/HV3rlE4d20/9ZJB9IIm2761c3T7DraBMbA7ehj1lolTvCq1vx8oGbNEhkTVBj06V3ltdMPHMiNbeG2Tqs50h/lOgRy5+oqZ8ULWayWX1KXloM3LlddXJnnB31LzHbZUZw7m+q8QnfBlPCWuLd1JfluFrszr1YAR6YPciL9grBNV7beG+8wbh2G0gfMdCHZOzhDmoEHgt/y8liV0QdsFH6QLlEwt8UMPeZ8IO0sNYx5A2ffznZIzy9xEDmMySwl8J3/EdQxhS6FGrm000lu4BH+c2dVlCn/5va9fJLD+m6seSN8Yy40=
 | 
			
		||||
  on:
 | 
			
		||||
    tags: true
 | 
			
		||||
    repo: pushrocks/smartpath
 | 
			
		||||
notifications:
 | 
			
		||||
  slack:
 | 
			
		||||
    secure: f5Uss0z9RPl/QcA/DroB8loyE93aOYI6bqCkrsiUscmZtlv/TVQtT4dxqGA6uvcG6iTQDBi3Ul88dQxWkRm4IqbhY35/iMaV2dHW4FVYMAh8GQMbsfL2sALCcufxD9blw47awv3iFcwhV1EeyesscjgL0JIjduk96v/7G/6QIO2838M1lzlgtj+kRUkim8qkaEs1je3gRrhMUIjLuAdscMXyUKYFMjWo9ACSjVUl30R/ZNemb18itIja6i92GotreBgcfEMczvy58ovDC7xdJUsY8LjMI01DwY+WPRnI0tAhsuI8moBwwcdM4e3bAjKjucQRjO33O5bMWRZ6QCiYd0DnCEFyCPQLJ4GSy/tkD00n8ijLHAOSV3AH1zNbdK1EAdSPQXDvlI36KJn/2hyQLoitGHVUPr76ujJWP82ypO2tgIp3XQU0dJVCxDuHnwJO2+hjdI+gCPqxNTpjeujHx3UdkTGNRjuuf9dlZ/D08fApjYxy2fxItTqo3QjP/nrqvBXUOPP8yPHpjIT4H2t5Pr4SJjBGI6X4qhKyFj6s9rA/Xu1rL+45zu1C3uC3z+u3T9UwrbzJ/cZM6r6UQvQmUvIfBNaMlg4I/diQCDIPL+Rhop2nylY3IcHmJnk2itn7kOqj1tohCpFEml5pRuSZy4udWywkdtyBAsHWFLF7oiQ=
 | 
			
		||||
							
								
								
									
										2
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
# gulp-bootstrap
 | 
			
		||||
works with gulp, but does nothing. Use it to bootstrap your own gulp plugin with TypeScript, Travis and npm.
 | 
			
		||||
							
								
								
									
										19
									
								
								index.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								index.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
/// <reference path="typings/tsd.d.ts" />
 | 
			
		||||
var path = require("path");
 | 
			
		||||
var bl = require("beautylog");
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @type {{getPath: (function(any): undefined)}}
 | 
			
		||||
 */
 | 
			
		||||
var smartpath = {
 | 
			
		||||
    getAbsPath: function (varPath, logBool) {
 | 
			
		||||
        if (logBool === void 0) { logBool = false; }
 | 
			
		||||
        var absPath = path.resolve(varPath);
 | 
			
		||||
        if (logBool == true) {
 | 
			
		||||
            bl.log('varPath is' + varPath);
 | 
			
		||||
            bl.log('absPath is' + absPath);
 | 
			
		||||
        }
 | 
			
		||||
        return absPath;
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
module.exports = smartpath;
 | 
			
		||||
							
								
								
									
										26
									
								
								package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								package.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "smartpath",
 | 
			
		||||
  "version": "1.0.1",
 | 
			
		||||
  "description": "offers smart ways to handle paths",
 | 
			
		||||
  "main": "index.js",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "cd ts/compile && gulp"
 | 
			
		||||
  },
 | 
			
		||||
  "repository": {
 | 
			
		||||
    "type": "git",
 | 
			
		||||
    "url": "https://github.com/pushrocks/smartpath.git"
 | 
			
		||||
  },
 | 
			
		||||
  "keywords": [
 | 
			
		||||
    "json",
 | 
			
		||||
    "jade",
 | 
			
		||||
    "template"
 | 
			
		||||
  ],
 | 
			
		||||
  "author": "Smart Coordination GmbH <office@push.rocks> (https://push.rocks)",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "bugs": {
 | 
			
		||||
    "url": "https://github.com/pushrocks/smartpath/issues"
 | 
			
		||||
  },
 | 
			
		||||
  "homepage": "https://github.com/pushrocks/smartpath",
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										2
									
								
								ts/compile/compile.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ts/compile/compile.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
nvm use v0.12.7
 | 
			
		||||
gulp
 | 
			
		||||
							
								
								
									
										16
									
								
								ts/compile/gulpfile.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								ts/compile/gulpfile.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
// import gulp
 | 
			
		||||
var gulp = require("gulp"),
 | 
			
		||||
	gulpTypescript = require("gulp-typescript");
 | 
			
		||||
 | 
			
		||||
gulp.task('compileTS', function() {
 | 
			
		||||
	var stream = gulp.src('../index.ts')
 | 
			
		||||
	  .pipe(gulpTypescript({
 | 
			
		||||
	  	out: "index.js"
 | 
			
		||||
	  }))
 | 
			
		||||
	  .pipe(gulp.dest("../../"));
 | 
			
		||||
	return stream;
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
gulp.task('default',['compileTS'], function() {
 | 
			
		||||
	console.log('Typescript compiled');
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										2
									
								
								ts/compile/readme.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ts/compile/readme.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
# How to compile.
 | 
			
		||||
Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory.
 | 
			
		||||
							
								
								
									
										22
									
								
								ts/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								ts/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,22 @@
 | 
			
		||||
/// <reference path="typings/tsd.d.ts" />
 | 
			
		||||
 | 
			
		||||
var path = require("path");
 | 
			
		||||
var bl = require("beautylog");
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @type {{getPath: (function(any): undefined)}}
 | 
			
		||||
 */
 | 
			
		||||
var smartpath:any = {
 | 
			
		||||
    getAbsPath: function(varPath,logBool = false) {
 | 
			
		||||
        var absPath = path.resolve(varPath);
 | 
			
		||||
        if (logBool == true) {
 | 
			
		||||
            bl.log('varPath is' + varPath);
 | 
			
		||||
            bl.log('absPath is' + absPath);
 | 
			
		||||
        }
 | 
			
		||||
        return absPath;
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
module.exports = smartpath;
 | 
			
		||||
							
								
								
									
										12
									
								
								ts/tsd.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								ts/tsd.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
{
 | 
			
		||||
  "version": "v4",
 | 
			
		||||
  "repo": "borisyankov/DefinitelyTyped",
 | 
			
		||||
  "ref": "master",
 | 
			
		||||
  "path": "typings",
 | 
			
		||||
  "bundle": "typings/tsd.d.ts",
 | 
			
		||||
  "installed": {
 | 
			
		||||
    "node/node.d.ts": {
 | 
			
		||||
      "commit": "efa0c1196d7280640e624ac1e7fa604502e7bd63"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										2079
									
								
								ts/typings/node/node.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2079
									
								
								ts/typings/node/node.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1
									
								
								ts/typings/tsd.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								ts/typings/tsd.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
/// <reference path="node/node.d.ts" />
 | 
			
		||||
		Reference in New Issue
	
	Block a user