Skip to content

Commit

Permalink
Sound quality option. Build docs script.
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoKnebel committed Mar 17, 2018
1 parent 57caef1 commit 39d91d2
Show file tree
Hide file tree
Showing 36 changed files with 7,777 additions and 57 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ build
node_modules/
SpaceInvader-*
apps/
package-lock.json
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ module.exports = (grunt) => {
dist: {
files: [
{
src: ['data/bgm/**/*', '!data/bgm/high_res/*', '!data/bgm/mid_res/*', '!data/bgm/unused/*'],
src: ['data/bgm/**/*', '!data/bgm/high_res/*', '!data/bgm/mid_res/*', '!data/bgm/unused/**/*'],
type: 'audio',
bgm: true
},
Expand Down
Binary file removed data/bgm/high_res/cold_stone.ogg
Binary file not shown.
Binary file removed data/bgm/high_res/deathmatch.ogg
Binary file not shown.
Binary file removed data/bgm/high_res/defeated.ogg
Binary file not shown.
Binary file removed data/bgm/high_res/rain_of_lasers.ogg
Binary file not shown.
Binary file removed data/bgm/high_res/tranquil_trance_express.ogg
Binary file not shown.
Binary file removed data/bgm/high_res/victory_tune.ogg
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions deployment/docs.js
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 removed docs/data/bgm/high_res/cold_stone.ogg
Binary file not shown.
Binary file removed docs/data/bgm/high_res/deathmatch.ogg
Binary file not shown.
Binary file removed docs/data/bgm/high_res/defeated.ogg
Binary file not shown.
Binary file removed docs/data/bgm/high_res/rain_of_lasers.ogg
Binary file not shown.
Binary file removed docs/data/bgm/high_res/tranquil_trance_express.ogg
Binary file not shown.
Binary file removed docs/data/bgm/high_res/victory_tune.ogg
Binary file not shown.
Binary file removed docs/data/bgm/unused/deathmatch.mp3
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed docs/data/bgm/unused/rain_of_lasers.mp3
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/js/app.min.js

Large diffs are not rendered by default.

47 changes: 0 additions & 47 deletions docs/main.js

This file was deleted.

5 changes: 3 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "spaceinvader",
"version": "0.2.3",
"version": "0.2.4",
"main": "main.js",
"scripts": {
"build": "grunt dist && npm run build-linux && npm run build-win32 && npm run build-darwin",
"build-all": "grunt dist && node deployment/build --platform all",
"build-darwin": "node deployment/build --platform darwin",
"build-linux": "node deployment/build --platform linux",
"build-win32": "node deployment/build --platform win32",
"build-docs": "grunt dist && ncp build docs",
"build-docs": "grunt dist && node deployment/docs",
"dev": "concurrently \"grunt dev\" \"cd modules/highscores && npm run dev\"",
"deploy-appveyor": "node deployment/build --platform win32 --arch all && node deployment/deploy-appveyor apps",
"deploy-travis": "node deployment/build --platform linux --arch all && node deployment/deploy-travis 'apps'",
Expand Down Expand Up @@ -45,6 +45,7 @@
"husky": "^0.14.3",
"minimist": "^1.2.0",
"ncp": "^2.0.0",
"rmfr": "^2.0.0",
"tar.gz": "^1.0.5",
"zip-folder": "^1.0.0"
},
Expand Down
File renamed without changes.
Loading

0 comments on commit 39d91d2

Please sign in to comment.