Skip to content

Commit

Permalink
chore: remove grunt move to npm scripts (#5592)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored and gkatsev committed Nov 30, 2018
1 parent 0090b75 commit d72786f
Show file tree
Hide file tree
Showing 17 changed files with 573 additions and 1,330 deletions.
7 changes: 0 additions & 7 deletions Gruntfile.js

This file was deleted.

36 changes: 0 additions & 36 deletions build/bin/prerelease

This file was deleted.

5 changes: 0 additions & 5 deletions build/bin/version

This file was deleted.

214 changes: 0 additions & 214 deletions build/grunt.js

This file was deleted.

28 changes: 28 additions & 0 deletions build/sandbox.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");
}
13 changes: 0 additions & 13 deletions build/tasks/cdn-links.js

This file was deleted.

35 changes: 0 additions & 35 deletions build/tasks/languages.js

This file was deleted.

33 changes: 0 additions & 33 deletions build/tasks/sandbox.js

This file was deleted.

11 changes: 0 additions & 11 deletions build/tasks/style-injection.js

This file was deleted.

0 comments on commit d72786f

Please sign in to comment.