-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sound quality option. Build docs script.
- Loading branch information
1 parent
57caef1
commit 39d91d2
Showing
36 changed files
with
7,777 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,3 @@ build | |
node_modules/ | ||
SpaceInvader-* | ||
apps/ | ||
package-lock.json |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
const source = 'build'; | ||
const destination = 'docs'; | ||
const cwd = process.cwd(); | ||
|
||
const { ncp } = require('ncp'); | ||
const rm = require('rmfr'); | ||
|
||
ncp.limit = 16; | ||
|
||
const options = { | ||
filter(name) { | ||
switch (name) { | ||
case `${cwd}/build/main.js`: | ||
return false; | ||
default: | ||
return true; | ||
} | ||
} | ||
}; | ||
|
||
function copyToDocs() { | ||
ncp(source, destination, options, (err) => { | ||
if (err) { | ||
return console.error(err); | ||
} | ||
}); | ||
} | ||
|
||
rm(destination).then(copyToDocs); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
Oops, something went wrong.