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

node_modules node_modules
target target
bower_components

+ 3
- 1
package.json View File

"gulp-util": "latest", "gulp-util": "latest",
"web-component-tester": "3.3.10", "web-component-tester": "3.3.10",
"yargs": "latest", "yargs": "latest",
"gulp-git": "latest"
"gulp-git": "latest",
"gulp-add-src": "latest"

}, },
"devDependencies": { "devDependencies": {
"chalk": "latest", "chalk": "latest",

+ 3
- 1
tasks/cdn.js View File

var _ = require('lodash'); var _ = require('lodash');
var args = require('yargs').argv; var args = require('yargs').argv;
var git = require('gulp-git'); var git = require('gulp-git');
var addsrc = require('gulp-add-src');


var stagingBasePath = config.paths.staging.cdn; var stagingBasePath = config.paths.staging.cdn;
var version = config.version; var version = config.version;
}); });


gulp.task('cdn:stage-vaadin-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(replace('https://cdn.vaadin.com/vaadin-components/latest/', '../../'))
.pipe(addsrc('README.md'))
.pipe(gulp.dest(stagingPath + "/vaadin-components")); .pipe(gulp.dest(stagingPath + "/vaadin-components"));
}); });



Loading…
Cancel
Save