From 029a169114d2e97f9f05c8997d28faea6ce0fac5 Mon Sep 17 00:00:00 2001
From: Kevin Jahns <kevin.jahns@rwth-aachen.de>
Date: Wed, 4 Nov 2015 17:06:20 +0100
Subject: [PATCH] fixed serve:examples

---
 dist         | 2 +-
 gulpfile.js  | 9 ++++++---
 package.json | 2 +-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/dist b/dist
index e2e89e19..5116d70a 160000
--- a/dist
+++ b/dist
@@ -1 +1 @@
-Subproject commit e2e89e198f47689fe6df908c0ea1cef6d800be0d
+Subproject commit 5116d70adba8ebafa8a608fea4eb7ba301e345b5
diff --git a/gulpfile.js b/gulpfile.js
index ea244435..53f356c8 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -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')()
 })
diff --git a/package.json b/package.json
index 904ea969..194463e4 100644
--- a/package.json
+++ b/package.json
@@ -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": {
-- 
GitLab