fixed serve:examples

This commit is contained in:
Kevin Jahns 2015-11-04 17:06:20 +01:00
parent f58889a05d
commit 029a169114
3 changed files with 8 additions and 5 deletions

2
dist

@ -1 +1 @@
Subproject commit e2e89e198f47689fe6df908c0ea1cef6d800be0d Subproject commit 5116d70adba8ebafa8a608fea4eb7ba301e345b5

View File

@ -103,7 +103,7 @@ gulp.task('deploy:build', function () {
experimental: true experimental: true
})) }))
.pipe($.uglify()) .pipe($.uglify())
.pipe($.sourcemaps.write('./dist/')) .pipe($.sourcemaps.write('.'))
.pipe(gulp.dest('./dist/')) .pipe(gulp.dest('./dist/'))
}) })
@ -185,9 +185,12 @@ gulp.task('dev', ['build:test'], function () {
gulp.start('dev:node') gulp.start('dev:node')
}) })
gulp.task('copy:dist', ['deploy:build']) gulp.task('copy:dist', ['deploy:build'], function () {
return gulp.src(['./dist/y.js', './dist/y.js.map'])
.pipe(gulp.dest('./dist/Examples/bower_components/yjs/'))
})
gulp.task('dev:Examples', ['copy:dist'], function () { gulp.task('dev:examples', ['copy:dist'], function () {
gulp.watch('src/**/*.js', ['copy:dist']) gulp.watch('src/**/*.js', ['copy:dist'])
return $.serve('dist/Examples')() return $.serve('dist/Examples')()
}) })

View File

@ -1,6 +1,6 @@
{ {
"name": "yjs", "name": "yjs",
"version": "0.6.25", "version": "0.6.26",
"description": "A framework for real-time p2p shared editing on arbitrary complex data types", "description": "A framework for real-time p2p shared editing on arbitrary complex data types",
"main": "y.js", "main": "y.js",
"scripts": { "scripts": {