Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Friedman
committed
Sep 6, 2018
1 parent
7b1b574
commit 9e90f8f
Showing
8 changed files
with
123 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,8 @@ | ||
process.env.NODE_ENV = process.env.NODE_ENV || 'production'; | ||
|
||
const glob = require('glob'); | ||
const processBuiltFiles = require('./process-built-files'); | ||
const fs = require('fs-extra'); | ||
|
||
glob('./src/**/dist/', {}, function(er, files) { | ||
files.forEach(f => fs.removeSync(f)); | ||
}); | ||
|
||
processBuiltFiles(files => { | ||
files.forEach(f => { | ||
let out = f.replace('./src/', './'); | ||
|
||
if (out === './rmwc.js') { | ||
out = './index.js'; | ||
} | ||
|
||
fs.removeSync(out); | ||
fs.removeSync(out + '.flow'); | ||
fs.removeSync(out.replace('.js', '.tsx')); | ||
fs.removeSync(out.replace('.js', '.d.ts')); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters