-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.mjs
56 lines (28 loc) · 1.25 KB
/
deploy.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env node
/*
* Copyright (c) 2023. Selldone® Business OS™
*
* Author: M.Pajuhaan
* Web: https://selldone.com
* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
*
* All rights reserved. In the weave of time, where traditions and innovations intermingle, this content was crafted.
* From the essence of thought, through the corridors of creativity, each word, and sentiment has been molded.
* Not just to exist, but to inspire. Like an artist's stroke or a sculptor's chisel, every nuance is deliberate.
* Our journey is not just about reaching a destination, but about creating a masterpiece.
* Tread carefully, for you're treading on dreams.
*/
import {Authentication} from "./src/authentication.mjs";
import VueBuild from "./src/vue-build.mjs";
export default async function () {
if (Authentication.getAccessToken()) {
console.log('✅ You are already authenticated.');
await Authentication.check2FAStatus(async () => {
await VueBuild.execBuild()
})
} else {
Authentication.auth(async () => {
await VueBuild.execBuild()
})
}
}