Skip to content

Commit

Permalink
Add dist to repo for updating via GIT and FoundryVTT
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Källstrand Modig committed Feb 9, 2021
1 parent 79a1300 commit 764173e
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
foundryconfig.json
dist
Binary file added dist/morkbork.zip
Binary file not shown.
17 changes: 17 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ const gulp = require('gulp');
const prefix = require('gulp-autoprefixer');
const sourcemaps = require('gulp-sourcemaps');
const sass = require('gulp-sass');
const zip = require('gulp-zip');
const package = require('./package.json')

/* ----------------------------------------- */
/* Compile Sass
Expand Down Expand Up @@ -39,6 +41,16 @@ function watchUpdates() {
gulp.watch(SYSTEM_SCSS, css);
}

/* ----------------------------------------- */
/* Build dist-zip
/* ----------------------------------------- */

function makeZip(){
return gulp.src('./**')
.pipe(zip(`${package.name}.zip`))
.pipe(gulp.dest('./dist'));
}

/* ----------------------------------------- */
/* Export Tasks
/* ----------------------------------------- */
Expand All @@ -48,3 +60,8 @@ exports.default = gulp.series(
watchUpdates
);
exports.css = css;

exports.dist = gulp.series(
compileScss,
makeZip
);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"gulp": "^4.0.2",
"gulp-autoprefixer": "^7.0.1",
"gulp-sourcemaps": "^2.6.5",
"gulp-zip": "^5.0.2",
"node-sass": "^4.14.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@
"secondaryTokenAttribute": null,
"url": "https://github.com/foag/morkborkFVTT",
"manifest": "https://raw.githubusercontent.com/foag/morkborkFVTT/main/system.json",
"download": "https://raw.githubusercontent.com/foag/morkborkFVTT/main/morkbork.zip",
"download": "https://raw.githubusercontent.com/foag/morkborkFVTT/main/dist/morkbork.zip",
"license": null
}
40 changes: 39 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@ browserslist@^4.12.0:
escalade "^3.1.1"
node-releases "^1.1.70"

buffer-crc32@~0.2.3:
version "0.2.13"
resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
integrity sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=

buffer-equal@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/buffer-equal/-/buffer-equal-1.0.0.tgz#59616b498304d556abd466966b22eeda3eca5fbe"
Expand Down Expand Up @@ -1441,6 +1446,13 @@ get-stdin@^4.0.1:
resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-4.0.1.tgz#b968c6b0a04384324902e8bf1a5df32579a450fe"
integrity sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=

get-stream@^5.1.0:
version "5.2.0"
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-5.2.0.tgz#4966a1795ee5ace65e706c4b7beb71257d6e22d3"
integrity sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==
dependencies:
pump "^3.0.0"

get-value@^2.0.3, get-value@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
Expand Down Expand Up @@ -1624,6 +1636,17 @@ gulp-sourcemaps@^2.6.5:
strip-bom-string "1.X"
through2 "2.X"

gulp-zip@^5.0.2:
version "5.0.2"
resolved "https://registry.yarnpkg.com/gulp-zip/-/gulp-zip-5.0.2.tgz#2edf797ec842e770f4dfde8bef97d139015b1972"
integrity sha512-rZd0Ppuc8Bf7J2/WzcdNaeb+lcEXf1R8mV/PJ9Kdu7PmnInWVeLSmiXIka/2QSe6uhAsGVFAMffWSaMzAPGTBg==
dependencies:
get-stream "^5.1.0"
plugin-error "^1.0.1"
through2 "^3.0.1"
vinyl "^2.1.0"
yazl "^2.5.1"

gulp@^4.0.2:
version "4.0.2"
resolved "https://registry.yarnpkg.com/gulp/-/gulp-4.0.2.tgz#543651070fd0f6ab0a0650c6a3e6ff5a7cb09caa"
Expand Down Expand Up @@ -2821,6 +2844,14 @@ pump@^2.0.0:
end-of-stream "^1.1.0"
once "^1.3.1"

pump@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64"
integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==
dependencies:
end-of-stream "^1.1.0"
once "^1.3.1"

pumpify@^1.3.5:
version "1.5.1"
resolved "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce"
Expand Down Expand Up @@ -3779,7 +3810,7 @@ vinyl-sourcemaps-apply@^0.2.0, vinyl-sourcemaps-apply@^0.2.1:
dependencies:
source-map "^0.5.1"

vinyl@^2.0.0:
vinyl@^2.0.0, vinyl@^2.1.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.2.1.tgz#23cfb8bbab5ece3803aa2c0a1eb28af7cbba1974"
integrity sha512-LII3bXRFBZLlezoG5FfZVcXflZgWP/4dCwKtxd5ky9+LOtM4CS3bIRQsmR1KMnMW07jpE8fqR2lcxPZ+8sJIcw==
Expand Down Expand Up @@ -3924,3 +3955,10 @@ yargs@^7.1.0:
which-module "^1.0.0"
y18n "^3.2.1"
yargs-parser "5.0.0-security.0"

yazl@^2.5.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/yazl/-/yazl-2.5.1.tgz#a3d65d3dd659a5b0937850e8609f22fffa2b5c35"
integrity sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==
dependencies:
buffer-crc32 "~0.2.3"

0 comments on commit 764173e

Please sign in to comment.