Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
switch to gulp and babel for better es6 support. fix readline problem
- Loading branch information
1 parent
83b7b52
commit 46c0ee1
Showing
10 changed files
with
76 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,44 @@ | ||
{ | ||
"version": "0.1.0", | ||
// Available variables which can be used inside of strings. | ||
// ${workspaceRoot}: the root folder of the team | ||
// ${file}: the current opened file | ||
// ${fileBasename}: the current opened file's basename | ||
// ${fileDirname}: the current opened file's dirname | ||
// ${fileExtname}: the current opened file's extension | ||
// ${cwd}: the current working directory of the spawned process | ||
|
||
// The command is tsc. Assumes that tsc has been installed using npm install -g typescript | ||
"command": "tsc", | ||
// { | ||
// "version": "0.1.0", | ||
|
||
// The command is a shell script | ||
"isShellCommand": true, | ||
// // The command is tsc. Assumes that tsc has been installed using npm install -g typescript | ||
// "command": "tsc", | ||
|
||
// // The command is a shell script | ||
// "isShellCommand": true, | ||
|
||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
// // Show the output window only if unrecognized errors occur. | ||
// "showOutput": "silent", | ||
|
||
// Tell the tsc compiler to use the tsconfig.json from the open folder. | ||
"args": ["-p", "."], | ||
// // Tell the tsc compiler to use the tsconfig.json from the open folder. | ||
// "args": ["-p", "."], | ||
|
||
// use the standard tsc problem matcher to find compile problems | ||
// in the output. | ||
"problemMatcher": "$tsc" | ||
} | ||
// // use the standard tsc problem matcher to find compile problems | ||
// // in the output. | ||
// "problemMatcher": "$tsc" | ||
// } | ||
|
||
{ | ||
"version": "0.1.0", | ||
"command": "gulp", | ||
"isShellCommand": true, | ||
"tasks": [ | ||
{ | ||
"taskName": "default", | ||
// Make this the default build command. | ||
"isBuildCommand": true, | ||
// Show the output window only if unrecognized errors occur. | ||
"showOutput": "silent", | ||
// Use the standard less compilation problem matcher. | ||
"problemMatcher": "$tsc" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/usr/bin/env node | ||
var path = require('path'); | ||
var Sync = require(path.resolve(__dirname, '../dist/src/index.js')).default; | ||
var Sync = require(path.resolve(__dirname, '../dist/index.js')).default; | ||
|
||
new Sync(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
var gulp = require('gulp'); | ||
var ts = require('gulp-typescript'); | ||
var babel = require('gulp-babel'); | ||
|
||
var tsProject = ts.createProject('./tsconfig.json', { | ||
typescript: require('typescript') | ||
}); | ||
|
||
gulp.task('default', function() { | ||
return gulp.src(['src/**/*.ts', 'typings/**/*.ts']) | ||
.pipe(ts(tsProject)) | ||
.pipe(babel({ | ||
presets: ['es2015'] | ||
})) | ||
.pipe(gulp.dest('dist')); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
import Sync from "./classes/Sync"; | ||
import "es6-promise"; | ||
|
||
// Main Export | ||
export default Sync; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters