bonzai-tools 1.0.99 → 1.0.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bconfig.js +10 -2
- package/dist/graph-templates/build/Real.py +9 -0
- package/dist/graph-templates/build/SampleClass.js +353 -0
- package/dist/graph-templates/build/arc_guide.mov +0 -0
- package/dist/graph-templates/build/asset-manifest.json +13 -0
- package/dist/graph-templates/build/brave_guide.mov +0 -0
- package/dist/graph-templates/build/chrome_guide.mov +0 -0
- package/dist/graph-templates/build/favicon.jpg +0 -0
- package/dist/graph-templates/build/functions.py +11 -0
- package/dist/graph-templates/build/icons/Python-logo-notext.svg +3 -0
- package/dist/graph-templates/build/icons/csv-icon.svg +5 -0
- package/dist/graph-templates/build/index.html +1 -0
- package/dist/graph-templates/build/static/css/main.97e4c611.css +32 -0
- package/dist/graph-templates/build/static/css/main.97e4c611.css.map +1 -0
- package/dist/graph-templates/build/static/js/main.601eb044.js +3 -0
- package/dist/graph-templates/build/static/js/main.601eb044.js.LICENSE.txt +70 -0
- package/dist/graph-templates/build/static/js/main.601eb044.js.map +1 -0
- package/dist/index.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -89,6 +89,12 @@ async function main() {
|
|
|
89
89
|
const utilsSrc = path.join(TEMPLATE_DIR, "utils");
|
|
90
90
|
const utilsDest = path.join(bonzaiDir, "utils");
|
|
91
91
|
copyDirectory(utilsSrc, utilsDest);
|
|
92
|
+
const buildSrc = path.join(TEMPLATE_DIR, "build");
|
|
93
|
+
if (fs.existsSync(buildSrc)) {
|
|
94
|
+
console.log("Copying frontend build...");
|
|
95
|
+
const buildDest = path.join(bonzaiDir, "build");
|
|
96
|
+
copyDirectory(buildSrc, buildDest);
|
|
97
|
+
}
|
|
92
98
|
const ignoreTargetPath = path.join(bonzaiDir, ".ignore");
|
|
93
99
|
if (!fs.existsSync(ignoreTargetPath)) {
|
|
94
100
|
console.log("Writing .ignore file...");
|
|
@@ -152,7 +158,7 @@ async function main() {
|
|
|
152
158
|
console.log("All code stays on your machine\n");
|
|
153
159
|
console.log("Relay server running on localhost:3001");
|
|
154
160
|
console.log("Terminal WebSocket available at ws://localhost:3001/terminal");
|
|
155
|
-
console.log("
|
|
161
|
+
console.log("App available at http://localhost:3001\n");
|
|
156
162
|
const server = spawn("node", ["receiver.js"], {
|
|
157
163
|
stdio: "inherit",
|
|
158
164
|
cwd: bonzaiDir,
|
|
@@ -161,7 +167,7 @@ async function main() {
|
|
|
161
167
|
BONZAI_REPO_DIR: currentDir
|
|
162
168
|
}
|
|
163
169
|
});
|
|
164
|
-
exec("open
|
|
170
|
+
exec("open http://localhost:3001");
|
|
165
171
|
server.on("close", (serverCode) => {
|
|
166
172
|
console.log(`
|
|
167
173
|
Server stopped with code ${serverCode}`);
|