mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 09:32:24 -05:00
Goreleaser (#241)
* add goreleaser tooling * add files + hook * update hooks * allow passing build-dir using cli args * build tweaks * tweak more * update drone and goreleaser * chill out tests * remove postgres * docker push on snapshot * update releaser
This commit is contained in:
parent
142f37f1bd
commit
d515c9f1ec
14 changed files with 253 additions and 136 deletions
|
|
@ -4,6 +4,7 @@ const Promise = require("bluebird");
|
|||
const fs = require("fs").promises;
|
||||
const postcss = require('postcss');
|
||||
const {parse} = require("postcss-scss");
|
||||
const argv = require('minimist')(process.argv.slice(2));
|
||||
|
||||
/*
|
||||
Bundle all postCSS files under the `templates/` directory separately, each prepended with the (variable) contents of ./colors.css
|
||||
|
|
@ -42,10 +43,23 @@ function bundle([template, path]) {
|
|||
});
|
||||
}
|
||||
|
||||
let buildDir = process.env.BUILD_DIR;
|
||||
let buildDir
|
||||
|
||||
// try reading from arguments first
|
||||
if (argv["build-dir"] != undefined) {
|
||||
buildDir = argv["build-dir"]
|
||||
}
|
||||
|
||||
// then try reading from environment variable
|
||||
if (buildDir == undefined) {
|
||||
buildDir = process.env.BUILD_DIR;
|
||||
}
|
||||
|
||||
// then take default
|
||||
if (buildDir == undefined) {
|
||||
buildDir = `${__dirname}/build`;
|
||||
}
|
||||
|
||||
console.log("bundling to", buildDir);
|
||||
|
||||
function bundleAll() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue