Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/.idea
/.vscode
/dist
/node_modules
**/dist
**/node_modules
*.db
*.sqlite
config.json
privileges.json
*.log
*.css
*.log
31 changes: 31 additions & 0 deletions cards/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
var { watch, series, parallel, src, dest, task } = require('gulp'),
sass = require('gulp-sass')(require('sass')),
fs = require('fs-extra');

task('clear', function(cb) {
if(fs.existsSync('./dist'))
fs.removeSync('./dist');
fs.mkdirSync('./dist');
cb();
});

exports.default = series(
'clear',
parallel(
parallel(
fs.readdirSync('./src')
.map(d => (cb => {
fs.mkdirSync(`./dist/${d}`);
fs.copyFile(`./src/${d}/index.html`, `./dist/${d}/index.html`, cb)
}))
),
(cb) => fs.copy('./icons', './dist/icons', cb)
),
() => src(`./src/**/*.scss`)
.pipe(sass.sync())
.pipe(dest(`./dist`)),
);

exports.watch = function() {
watch(["./src/**/*", "./styles/*"], exports.default);
}
6 changes: 6 additions & 0 deletions cards/icons/Catch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions cards/icons/Mania.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions cards/icons/Standard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions cards/icons/Taiko.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading