-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
3,437 additions
and
201 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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
/.idea | ||
/composer.lock | ||
/client-side/node_modules | ||
/client-side/src/ts/inline.js | ||
/example |
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,18 +1,26 @@ | ||
var gulp = require('gulp'); | ||
var less = require('gulp-less'); | ||
var ts = require('gulp-typescript'); | ||
var tsProject = ts.createProject('src/ts/tsconfig.json'); | ||
var browserify = require('browserify'); | ||
var tsify = require('tsify'); | ||
var source = require('vinyl-source-stream') | ||
var sass = require('gulp-sass'); | ||
|
||
gulp.task('ts', function () { | ||
return tsProject.src() | ||
.pipe(tsProject()) | ||
.js.pipe(gulp.dest('dist')); | ||
var bundleStream = browserify('src/ts/inline.ts') | ||
.plugin(tsify) | ||
.bundle() | ||
.on('error', function (error) { | ||
console.error(error.toString()); | ||
}) | ||
|
||
return bundleStream | ||
.pipe(source('inline.js')) | ||
.pipe(gulp.dest('dist')) | ||
}); | ||
|
||
gulp.task('less', function () { | ||
return gulp.src('src/less/inline.less') | ||
.pipe(less()) | ||
gulp.task('sass', function () { | ||
return gulp.src('src/sass/inline.scss') | ||
.pipe(sass()) | ||
.pipe(gulp.dest('dist')); | ||
}); | ||
|
||
gulp.task('default', ['ts', 'less']); | ||
gulp.task('default', ['ts', 'sass']); |
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,15 +1,16 @@ | ||
{ | ||
"name": "inline-editable", | ||
"version": "1.0.0", | ||
"description": "Inline editable...", | ||
"main": "gulpfile.js", | ||
"dependencies": { | ||
"gulp": "^3.9", | ||
"gulp-less": "^3.3", | ||
"gulp-typescript": "^3.1", | ||
"typescript": "^2.1" | ||
}, | ||
"devDependencies": {}, | ||
"author": "", | ||
"license": "MIT" | ||
"name": "inline-editing", | ||
"version": "1.2.1", | ||
"description": "Inline editing...", | ||
"private": true, | ||
"author": "Jakub Janata", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"browserify": "^16.2.2", | ||
"gulp": "^3.9.1", | ||
"gulp-sass": "^4.0.1", | ||
"tsify": "^4.0.0", | ||
"typescript": "^3.0.1", | ||
"vinyl-source-stream": "^2.0.0" | ||
} | ||
} |
Oops, something went wrong.