mirror of
https://github.com/bitwarden/browser
synced 2026-02-12 06:23:38 +00:00
chore: replace gulpfile with regular node script
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
"build:dev": "concurrently -n Main,Rend -c yellow,cyan \"npm run build:main:dev\" \"npm run build:renderer:dev\"",
|
||||
"build:preload": "cross-env NODE_ENV=production webpack --config webpack.preload.js",
|
||||
"build:preload:watch": "cross-env NODE_ENV=production webpack --config webpack.preload.js --watch",
|
||||
"build:macos-extension": "gulp build:macos",
|
||||
"build:macos-extension": "node scripts/build-macos-extension.js",
|
||||
"build:main": "cross-env NODE_ENV=production webpack --config webpack.main.js",
|
||||
"build:main:dev": "npm run build-native && cross-env NODE_ENV=development webpack --config webpack.main.js",
|
||||
"build:main:watch": "npm run build-native && cross-env NODE_ENV=development webpack --config webpack.main.js --watch",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
const child = require("child_process");
|
||||
const fse = require("fs-extra");
|
||||
const { exit } = require("process");
|
||||
|
||||
const paths = {
|
||||
macosBuild: "./macos/build",
|
||||
@@ -9,7 +10,7 @@ const paths = {
|
||||
macOsProject: "./macos/desktop.xcodeproj",
|
||||
};
|
||||
|
||||
async function buildMacOs(cb) {
|
||||
async function buildMacOs() {
|
||||
if (fse.existsSync(paths.macosBuild)) {
|
||||
fse.removeSync(paths.macosBuild);
|
||||
}
|
||||
@@ -48,4 +49,9 @@ function stdOutProc(proc) {
|
||||
proc.stderr.on("data", (data) => console.error(data.toString()));
|
||||
}
|
||||
|
||||
exports["build:macos"] = buildMacOs;
|
||||
buildMacOs()
|
||||
.then(() => console.log("macOS build complete"))
|
||||
.catch((err) => {
|
||||
console.error("macOS build failed", err);
|
||||
exit(-1);
|
||||
});
|
||||
Reference in New Issue
Block a user