mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
fixed serve:examples
This commit is contained in:
2
dist
2
dist
Submodule dist updated: e2e89e198f...5116d70adb
@@ -103,7 +103,7 @@ gulp.task('deploy:build', function () {
|
||||
experimental: true
|
||||
}))
|
||||
.pipe($.uglify())
|
||||
.pipe($.sourcemaps.write('./dist/'))
|
||||
.pipe($.sourcemaps.write('.'))
|
||||
.pipe(gulp.dest('./dist/'))
|
||||
})
|
||||
|
||||
@@ -185,9 +185,12 @@ gulp.task('dev', ['build:test'], function () {
|
||||
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'])
|
||||
return $.serve('dist/Examples')()
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "yjs",
|
||||
"version": "0.6.25",
|
||||
"version": "0.6.26",
|
||||
"description": "A framework for real-time p2p shared editing on arbitrary complex data types",
|
||||
"main": "y.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user