Browse Source

cdn urls are not replaced in README.md

tags/0.3.0-beta10
Tomi Virkki 8 years ago
parent
commit
22ffa7bb79
3 changed files with 7 additions and 2 deletions
  1. 1
    0
      .gitignore
  2. 3
    1
      package.json
  3. 3
    1
      tasks/cdn.js

+ 1
- 0
.gitignore View File

@@ -1,2 +1,3 @@
node_modules
target
bower_components

+ 3
- 1
package.json View File

@@ -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",

+ 3
- 1
tasks/cdn.js View File

@@ -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"));
});


Loading…
Cancel
Save