diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..72f914b --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,79 @@ +const gulp = require('gulp'); +const prefix = require('gulp-autoprefixer'); +const sourcemaps = require('gulp-sourcemaps'); +const sass = require('gulp-sass')(require('sass')); +const zip = require('gulp-zip'); + +/* ----------------------------------------- */ +/* Compile Sass +/* ----------------------------------------- */ + +// Small error handler helper function. +function handleError(err) { + console.log(err.toString()); + this.emit('end'); +} + +const SYSTEM_SCSS = ["scss/**/*.scss"]; +function compileScss() { + // Configure options for sass output. For example, 'expanded' or 'nested' + let options = { + outputStyle: 'expanded' + }; + return gulp.src(SYSTEM_SCSS) + .pipe( + sass(options) + .on('error', handleError) + ) + .pipe(prefix({ + cascade: false + })) + .pipe(gulp.dest("./css")) +} +const css = gulp.series(compileScss); + +/* ----------------------------------------- */ +/* Watch Updates +/* ----------------------------------------- */ + +function watchUpdates() { + gulp.watch(SYSTEM_SCSS, css); +} + +/* ----------------------------------------- */ +/* Export Tasks +/* ----------------------------------------- */ + +exports.default = gulp.series( + compileScss, + watchUpdates +); +exports.build = gulp.series( + compileScss +); +exports.css = css; + +/* ----------------------------------------- */ +/* Zip Release +/* ----------------------------------------- */ + +function zipRelease() { + return gulp.src([ + './**/*', + '!./node_modules/**', + '!./.git/**', + '!./.gitignore', + '!./gulpfile.js', + '!./package-lock.json', + '!./package.json', + '!./scss/**/*', + '!./.github/**/*', + ], { base: '.' }) + .pipe(zip('kids-on-brooms.zip')) + .pipe(gulp.dest('.')); +} + +exports.build = gulp.series( + compileScss, + zipRelease +); diff --git a/kids-on-brooms.zip b/kids-on-brooms.zip new file mode 100644 index 0000000..6a9fe92 Binary files /dev/null and b/kids-on-brooms.zip differ diff --git a/readme.md b/readme.md index d7a397a..e0141b6 100644 --- a/readme.md +++ b/readme.md @@ -1 +1,3 @@ -The Kids On Brooms System Implemented in FoundryVTT, reupload from https://github.com/Singularity-Lathe-VTT/kids-on-brooms \ No newline at end of file +The Kids On Brooms System Implemented in FoundryVTT, reupload from https://github.com/Singularity-Lathe-VTT/kids-on-brooms + +To get support create a issue on this Repository \ No newline at end of file diff --git a/system.json b/system.json index fc341b9..c4f6678 100644 --- a/system.json +++ b/system.json @@ -19,6 +19,6 @@ }, "primaryTokenAttribute": "system.adversityTokens", "url": "https://github.com/josmaier/KidsOnBroomsFoundryVTT", - "manifest": "https://github.com/josmaier/KidsOnBroomsFoundryVTT/blob/2fb5d0a11d1c9d78945c2508d5aa2cc7daf297e0/system.json", - "download": "https://github.com/josmaier/KidsOnBroomsFoundryVTT/blob/2fb5d0a11d1c9d78945c2508d5aa2cc7daf297e0/kids-on-brooms.zip" -} \ No newline at end of file + "manifest": "https://github.com/josmaier/KidsOnBroomsFoundryVTT/blob/1c09eda6c50756a87ffcbdf27c31b732c3420d7c/system.json", + "download": "https://github.com/josmaier/KidsOnBroomsFoundryVTT/releases/download/0.0.1/kids-on-brooms.zip" +}