Permalink
Please sign in to comment.
Showing
with
573 additions
and 1,330 deletions.
- +0 −7 Gruntfile.js
- +0 −36 build/bin/prerelease
- +0 −5 build/bin/version
- +0 −214 build/grunt.js
- +28 −0 build/sandbox.js
- +0 −13 build/tasks/cdn-links.js
- +0 −35 build/tasks/languages.js
- +0 −33 build/tasks/sandbox.js
- +0 −11 build/tasks/style-injection.js
- +0 −26 build/tasks/test-local.js
- +0 −7 build/tasks/vjs-version.js
- +42 −0 build/translations.js
- +450 −893 package-lock.json
- +38 −45 package.json
- +10 −1 rollup.config.js
- +1 −1 sandbox/middleware-play.html.example
- +4 −3 test/karma.conf.js
@@ -0,0 +1,28 @@ | |||
const fs = require('fs'); | |||
const path = require('path'); | |||
const klawSync = require('klaw-sync'); | |||
|
|||
const files = klawSync('sandbox/').filter((file) => path.extname(file.path) === '.example'); | |||
|
|||
const changes = files.map(function(file) { | |||
const p = path.parse(file.path); | |||
const nonExample = path.join(p.dir, p.name); | |||
return { | |||
file: file.path, | |||
copy: nonExample | |||
}; | |||
}) | |||
.filter(function(change) { | |||
return !fs.existsSync(change.copy); | |||
}); | |||
|
|||
changes.forEach(function(change) { | |||
fs.copyFileSync(change.file, change.copy); | |||
}); | |||
|
|||
if (changes.length) { | |||
console.log("Updated Sandbox files for:"); | |||
console.log('\t' + changes.map((chg) => chg.copy).join('\n\t')); | |||
} else { | |||
console.log("No sandbox updates necessary"); | |||
} |

Oops, something went wrong.
0 comments on commit
d72786f