GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Acode/utils/setup.js at main · unoghost-crypto/Acode

Expand file tree

/

setup.js

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
39 lines (34 loc) · 1.24 KB
/

setup.js

Copy path

File metadata and controls

39 lines (34 loc) · 1.24 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
// setup acode for the first time
// 1. install dependencies
// 2. add cordova platform [email protected]
// 3. install cordova plugins
// cordova-plugin-buildinfo
// cordova-plugin-device
// cordova-plugin-file
// all the plugins in ./src/plugins
const { execSync } = require("node:child_process");
const fs = require("node:fs");
const path = require("node:path");
const PLATFORM_FILES = [".DS_Store"];
execSync("npm install", { stdio: "inherit" });
try {
execSync("cordova platform add android", { stdio: "inherit" });
} catch (error) {
// ignore
}
try {
execSync("mkdir -p www/css/build www/js/build", { stdio: "inherit" });
} catch (error) {
console.log(
"Failed to create www/css/build & www/js/build directories (You may Try after reading The Error)",
error,
);
}
execSync("cordova plugin add cordova-plugin-buildinfo", { stdio: "inherit" });
execSync("cordova plugin add cordova-plugin-device", { stdio: "inherit" });
execSync("cordova plugin add cordova-plugin-file", { stdio: "inherit" });
const plugins = fs.readdirSync(path.join(__dirname, "../src/plugins"));
plugins.forEach((plugin) => {
if (PLATFORM_FILES.includes(plugin) || plugin.startsWith(".")) return;
execSync(`cordova plugin add ./src/plugins/${plugin}`, { stdio: "inherit" });
});
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.