aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Virkki <virkki@vaadin.com>2015-09-22 11:00:33 +0300
committerTomi Virkki <virkki@vaadin.com>2015-09-22 11:00:33 +0300
commit22ffa7bb79d2f4a6eedbcd33c85e3bdf8c6a35bf (patch)
treef509b86c79041ae91787e10a23ed056cb47dbd66
parent1df08e17b8af3926d503b70296d0bbeb39704380 (diff)
downloadvaadin-core-22ffa7bb79d2f4a6eedbcd33c85e3bdf8c6a35bf.tar.gz
vaadin-core-22ffa7bb79d2f4a6eedbcd33c85e3bdf8c6a35bf.zip
cdn urls are not replaced in README.md
-rw-r--r--.gitignore1
-rw-r--r--package.json4
-rw-r--r--tasks/cdn.js4
3 files changed, 7 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 2c085d1..1dfa8a4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
node_modules
target
+bower_components
diff --git a/package.json b/package.json
index b5e0726..6de4edd 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,9 @@
"gulp-util": "latest",
"web-component-tester": "3.3.10",
"yargs": "latest",
- "gulp-git": "latest"
+ "gulp-git": "latest",
+ "gulp-add-src": "latest"
+
},
"devDependencies": {
"chalk": "latest",
diff --git a/tasks/cdn.js b/tasks/cdn.js
index 755d880..fe48cec 100644
--- a/tasks/cdn.js
+++ b/tasks/cdn.js
@@ -10,6 +10,7 @@ var gutil = require('gulp-util');
var _ = require('lodash');
var args = require('yargs').argv;
var git = require('gulp-git');
+var addsrc = require('gulp-add-src');
var stagingBasePath = config.paths.staging.cdn;
var version = config.version;
@@ -31,8 +32,9 @@ gulp.task('cdn:stage-bower_components', function() {
});
gulp.task('cdn:stage-vaadin-components', function() {
- return gulp.src(['README.md', 'LICENSE.html', 'ga.js', 'vaadin-components.html', 'demo/*', 'apidoc/*'], {base:"."})
+ return gulp.src(['LICENSE.html', 'ga.js', 'vaadin-components.html', 'demo/*', 'apidoc/*'], {base:"."})
.pipe(replace('https://cdn.vaadin.com/vaadin-components/latest/', '../../'))
+ .pipe(addsrc('README.md'))
.pipe(gulp.dest(stagingPath + "/vaadin-components"));
});