diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-02-17 16:08:20 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-02-25 12:51:51 +0100 |
| commit | 8841ab9e621ab7b41f19670410b82a109e4dd44a (patch) | |
| tree | 76ac018abf94554d237641404e49a4e0505ea117 | |
| parent | 61df3605b8ae2b43446a2506bc6acb12283dbed3 (diff) | |
| download | mullvadvpn-8841ab9e621ab7b41f19670410b82a109e4dd44a.tar.xz mullvadvpn-8841ab9e621ab7b41f19670410b82a109e4dd44a.zip | |
Add gulp tasks to build standalone files
Previously the standalone files were built at the
same time as the application with the build npm
script. However with the migration to vite they
have to be created separately as they are
not referenced in the application and as such
will not be built, which is as expected.
| -rw-r--r-- | desktop/packages/mullvad-vpn/gulpfile.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/packages/mullvad-vpn/gulpfile.js b/desktop/packages/mullvad-vpn/gulpfile.js index 1f168fb102..917878b977 100644 --- a/desktop/packages/mullvad-vpn/gulpfile.js +++ b/desktop/packages/mullvad-vpn/gulpfile.js @@ -23,10 +23,17 @@ task('set-test-env', function (done) { task('clean', function (done) { fs.rm('./build', { recursive: true, force: true }, done); }); +task('clean-standalone', function (done) { + fs.rm('./build-standalone', { recursive: true, force: true }, done); +}); task('build-vite-prod', function (done) { execSync('npm run build:vite'); done(); }); +task('build-standalone-transpile', function (done) { + execSync('npx tsc -p tsconfig.standalone.json'); + done(); +}); task('build-proto', scripts.buildProto); task( 'develop', @@ -41,6 +48,7 @@ task( task('build', series('clean', 'set-prod-env', assets.copyAll, scripts.build)); task('build-vite', series('clean', 'set-prod-env', 'build-vite-prod', assets.copyAllVite)); task('build-test', series('clean', 'set-test-env', 'build-vite-prod', assets.copyAllVite)); +task('build-standalone', series('clean-standalone', 'set-prod-env', 'build-standalone-transpile')); task('pack-win', series('build-vite', dist.packWin)); task('pack-linux', series('build-vite', dist.packLinux)); task('pack-mac', series('build-vite', dist.packMac)); |
