Skip to content

Commit

Permalink
[ci skip] paramaterize entries for closure task
Browse files Browse the repository at this point in the history
  • Loading branch information
dfreedm committed May 24, 2017
1 parent a8a57bf commit 3a80ad8
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,13 @@ gulp.task('closure', ['clean'], () => {

let entry, splitRx, joinRx;

function full() {
entry = 'polymer.html';
splitRx = /polymer\.html_script_\d+\.js$/;
joinRx = /polymer\.html/;
function config(path) {
entry = path;
joinRx = new RegExp(path.split('/').join('\\/'));
splitRx = new RegExp(joinRx.source + '_script_\\d+\\.js$');
}

function element() {
entry = 'polymer-element.html';
splitRx = /polymer-element\.html_script_\d+\.js$/;
joinRx = /polymer-element\.html/;
}

// element();
full();
config('polymer.html');

const project = new PolymerProject({
shell: `./${entry}`,
Expand Down

0 comments on commit 3a80ad8

Please sign in to comment.