@getcronit/pylon-dev 1.0.4 → 1.0.5

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{build as v}from"@getcronit/pylon-builder";import{fetchSchema as b,generateClient as w}from"@gqty/cli";import{program as p}from"commander";import e from"consola";import S from"path";var g="1.0.4";import{spawn as C}from"child_process";import y from"treekill";import*as l from"@getcronit/pylon-telemetry";import x from"dotenv";x.config();p.name("pylon-dev").description("Pylon Development CLI").version(g);p.command("build").description("Build the Pylon Schema").action(async()=>{e.start("[Pylon]: Building schema");let{totalFiles:n,totalSize:m,duration:t}=await v({sfiFilePath:"./src/index.ts",outputFilePath:"./.pylon"});await l.sendBuildEvent({duration:t,totalFiles:n,totalSize:m,isDevelopment:!1}),e.success("[Pylon]: Schema built")});p.name("dev").option("-c, --command <command>","Command to run the server","bun run .pylon/index.js").option("--client","Generate the client from the server's schema").option("--test","Test").option("--client-path <clientPath>","Path to generate the client to","gqty/index.ts").option("--client-port <clientPort>","Port of the pylon server to generate the client from","3000").action(I);var k=Date.now();async function I(n,m){e.log(`[Pylon]: ${m.name()} version ${m.version()}`);let t=null,h=async(i=!1)=>{t&&(t.removeAllListeners(),y(t.pid,"SIGINT",o=>{o&&e.error(o)}));let[r,...s]=n.command.split(" ");if(t=C(r,s,{shell:!0,stdio:"inherit",env:{...process.env,NODE_ENV:"development"}}),t.on("exit",o=>{o===0&&(e.success("Pylon server stopped"),process.exit(0)),e.error(`Pylon exited with code ${o}, fix the error and save the file to restart the server`)}),i&&n.client&&n.clientPath&&n.clientPort){let o=S.resolve(process.cwd(),n.clientPath),a=`http://localhost:${n.clientPort}/graphql`;console.log("Generating client...",a);let u=async()=>{e.start("[Pylon]: Fetching schema from server");let P=await b(a,{silent:!0});e.success("[Pylon]: Schema fetched"),e.start("[Pylon]: Generating client"),await w(P,{endpoint:a,destination:o,react:!0,scalarTypes:{Number:"number",Object:"Record<string, unknown>"}}),e.success("[Pylon]: Client generated")},d=0,c=async()=>{try{await u()}catch{d++,d<5&&setTimeout(()=>{c()},1e3)}};c()}};e.start("[Pylon]: Building schema");try{let{duration:i,totalFiles:r,totalSize:s}=await v({sfiFilePath:"./src/index.ts",outputFilePath:"./.pylon",watch:!0,onWatch:async({schemaChanged:o,totalFiles:a,totalSize:u,duration:d})=>{let c=t!==null;c?e.start("[Pylon]: Reloading server"):e.start("[Pylon]: Starting server"),await h(o),c?e.ready("[Pylon]: Server reloaded"):(e.ready("[Pylon]: Server started"),e.box(`
2
+ import{build as v}from"@getcronit/pylon-builder";import{fetchSchema as b,generateClient as w}from"@gqty/cli";import{program as p}from"commander";import e from"consola";import S from"path";var g="1.0.5";import{spawn as C}from"child_process";import y from"treekill";import*as l from"@getcronit/pylon-telemetry";import x from"dotenv";x.config();p.name("pylon-dev").description("Pylon Development CLI").version(g);p.command("build").description("Build the Pylon Schema").action(async()=>{e.start("[Pylon]: Building schema");let{totalFiles:n,totalSize:m,duration:t}=await v({sfiFilePath:"./src/index.ts",outputFilePath:"./.pylon"});await l.sendBuildEvent({duration:t,totalFiles:n,totalSize:m,isDevelopment:!1}),e.success("[Pylon]: Schema built")});p.name("dev").option("-c, --command <command>","Command to run the server","bun run .pylon/index.js").option("--client","Generate the client from the server's schema").option("--test","Test").option("--client-path <clientPath>","Path to generate the client to","gqty/index.ts").option("--client-port <clientPort>","Port of the pylon server to generate the client from","3000").action(I);var k=Date.now();async function I(n,m){e.log(`[Pylon]: ${m.name()} version ${m.version()}`);let t=null,h=async(i=!1)=>{t&&(t.removeAllListeners(),y(t.pid,"SIGINT",o=>{o&&e.error(o)}));let[r,...s]=n.command.split(" ");if(t=C(r,s,{shell:!0,stdio:"inherit",env:{...process.env,NODE_ENV:"development"}}),t.on("exit",o=>{o===0&&(e.success("Pylon server stopped"),process.exit(0)),e.error(`Pylon exited with code ${o}, fix the error and save the file to restart the server`)}),i&&n.client&&n.clientPath&&n.clientPort){let o=S.resolve(process.cwd(),n.clientPath),a=`http://localhost:${n.clientPort}/graphql`;console.log("Generating client...",a);let u=async()=>{e.start("[Pylon]: Fetching schema from server");let P=await b(a,{silent:!0});e.success("[Pylon]: Schema fetched"),e.start("[Pylon]: Generating client"),await w(P,{endpoint:a,destination:o,react:!0,scalarTypes:{Number:"number",Object:"Record<string, unknown>"}}),e.success("[Pylon]: Client generated")},d=0,c=async()=>{try{await u()}catch{d++,d<5&&setTimeout(()=>{c()},1e3)}};c()}};e.start("[Pylon]: Building schema");try{let{duration:i,totalFiles:r,totalSize:s}=await v({sfiFilePath:"./src/index.ts",outputFilePath:"./.pylon",watch:!0,onWatch:async({schemaChanged:o,totalFiles:a,totalSize:u,duration:d})=>{let c=t!==null;c?e.start("[Pylon]: Reloading server"):e.start("[Pylon]: Starting server"),await h(o),c?e.ready("[Pylon]: Server reloaded"):(e.ready("[Pylon]: Server started"),e.box(`
3
3
  Pylon is up and running!
4
4
 
5
5
  Press \`Ctrl + C\` to stop the server.
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts", "../package.json"],
4
- "sourcesContent": ["#!/usr/bin/env node\n\nimport {build} from '@getcronit/pylon-builder'\nimport {fetchSchema, generateClient} from '@gqty/cli'\nimport {program, type Command} from 'commander'\nimport consola from 'consola'\nimport path from 'path'\nimport {version} from '../package.json'\nimport {ChildProcess, spawn} from 'child_process'\nimport kill from 'treekill'\nimport * as telemetry from '@getcronit/pylon-telemetry'\nimport dotenv from 'dotenv'\n\ndotenv.config()\n\nprogram.name('pylon-dev').description('Pylon Development CLI').version(version)\n\nprogram\n .command('build')\n .description('Build the Pylon Schema')\n .action(async () => {\n consola.start('[Pylon]: Building schema')\n\n const {totalFiles, totalSize, duration} = await build({\n sfiFilePath: './src/index.ts',\n outputFilePath: './.pylon'\n })\n\n await telemetry.sendBuildEvent({\n duration: duration,\n totalFiles,\n totalSize,\n isDevelopment: false\n })\n\n consola.success('[Pylon]: Schema built')\n })\n\nprogram\n .name('dev')\n .option(\n '-c, --command <command>',\n 'Command to run the server',\n 'bun run .pylon/index.js'\n )\n .option('--client', \"Generate the client from the server's schema\")\n .option('--test', 'Test')\n .option(\n '--client-path <clientPath>',\n 'Path to generate the client to',\n 'gqty/index.ts'\n )\n .option(\n '--client-port <clientPort>',\n 'Port of the pylon server to generate the client from',\n '3000'\n )\n .action(main)\n\ntype ArgOptions = {\n command: string\n client: boolean\n clientPath: string\n clientPort: string\n}\n\nconst start = Date.now()\n\nasync function main(options: ArgOptions, command: Command) {\n consola.log(`[Pylon]: ${command.name()} version ${command.version()}`)\n\n let currentProc: ChildProcess | null = null\n\n let serve = async (shouldGenerateClient: boolean = false) => {\n if (currentProc) {\n // Remove all listeners to prevent the pylon dev server from crashing\n currentProc.removeAllListeners()\n\n kill(currentProc.pid, 'SIGINT', err => {\n if (err) {\n consola.error(err)\n }\n })\n }\n\n const [commandName, ...args] = options.command.split(' ')\n\n currentProc = spawn(commandName, args, {\n shell: true,\n stdio: 'inherit',\n env: {\n ...process.env,\n NODE_ENV: 'development'\n }\n })\n\n currentProc.on('exit', code => {\n // if (code === 143 || code === null) {\n // return\n // }\n\n if (code === 0) {\n consola.success('Pylon server stopped')\n process.exit(0)\n }\n\n consola.error(\n `Pylon exited with code ${code}, fix the error and save the file to restart the server`\n )\n })\n\n if (\n shouldGenerateClient &&\n options.client &&\n options.clientPath &&\n options.clientPort\n ) {\n const clientPath = path.resolve(process.cwd(), options.clientPath)\n\n const endpoint = `http://localhost:${options.clientPort}/graphql`\n\n console.log('Generating client...', endpoint)\n\n const generate = async () => {\n consola.start('[Pylon]: Fetching schema from server')\n\n const schema = await fetchSchema(endpoint, {\n silent: true\n })\n\n consola.success('[Pylon]: Schema fetched')\n\n consola.start('[Pylon]: Generating client')\n\n await generateClient(schema, {\n endpoint,\n destination: clientPath,\n react: true,\n scalarTypes: {\n Number: 'number',\n Object: 'Record<string, unknown>'\n }\n })\n\n consola.success('[Pylon]: Client generated')\n }\n\n let retries = 0\n\n const generateWithRetry = async () => {\n try {\n await generate()\n } catch (e) {\n retries++\n\n if (retries < 5) {\n setTimeout(() => {\n generateWithRetry()\n }, 1000)\n }\n }\n }\n\n generateWithRetry()\n }\n }\n\n consola.start('[Pylon]: Building schema')\n\n try {\n const {duration, totalFiles, totalSize} = await build({\n sfiFilePath: './src/index.ts',\n outputFilePath: `./.pylon`,\n watch: true,\n onWatch: async ({schemaChanged, totalFiles, totalSize, duration}) => {\n const isServerRunning = currentProc !== null\n\n if (isServerRunning) {\n consola.start('[Pylon]: Reloading server')\n } else {\n consola.start('[Pylon]: Starting server')\n }\n\n await serve(schemaChanged)\n\n if (isServerRunning) {\n consola.ready('[Pylon]: Server reloaded')\n } else {\n consola.ready('[Pylon]: Server started')\n\n consola.box(`\n Pylon is up and running!\n\n Press \\`Ctrl + C\\` to stop the server.\n\n Encounter any issues? Report them here: \n https://github.com/getcronit/pylon/issues\n\n We value your feedback\u2014help us make Pylon even better!\n `)\n }\n\n if (schemaChanged) {\n consola.info('[Pylon]: Schema updated')\n\n await telemetry.sendBuildEvent({\n duration,\n totalFiles,\n totalSize,\n isDevelopment: true\n })\n }\n }\n })\n\n await telemetry.sendBuildEvent({\n duration,\n totalFiles,\n totalSize,\n isDevelopment: true\n })\n\n consola.success('[Pylon]: Schema built')\n\n consola.start('[Pylon]: Starting server')\n await serve(true)\n consola.ready('[Pylon]: Server started')\n\n consola.box(`\n Pylon is up and running!\n\n Press \\`Ctrl + C\\` to stop the server.\n \n Encounter any issues? Report them here: \n https://github.com/getcronit/pylon/issues\n \n We value your feedback\u2014help us make Pylon even better!\n `)\n } catch (e) {\n consola.error(\"[Pylon]: Couldn't build schema\", e)\n\n // Kill the server if it's running\n const proc = currentProc as ChildProcess | null\n if (proc) {\n proc.removeAllListeners()\n\n kill(proc.pid, 'SIGINT', err => {\n if (err) {\n consola.error(err)\n }\n })\n }\n }\n\n process.on('SIGINT', async code => {\n try {\n if (currentProc) {\n currentProc.removeAllListeners()\n\n kill(currentProc.pid, 'SIGINT', err => {\n if (err) {\n consola.error(err)\n }\n })\n }\n } catch {\n // Ignore\n } finally {\n await telemetry.sendDevEvent({\n duration: Date.now() - start,\n clientPath: options.clientPath,\n clientPort: parseInt(options.clientPort)\n })\n\n process.exit(0)\n }\n })\n}\n\nprogram.parse()\n", "{\n \"name\": \"@getcronit/pylon-dev\",\n \"type\": \"module\",\n \"version\": \"1.0.4\",\n \"description\": \"CLI for creating a Pylon\",\n \"scripts\": {\n \"build\": \"rimraf ./dist && esbuild ./src/index.ts --bundle --platform=node --target=node18 --format=esm --minify --outdir=./dist --sourcemap=linked --packages=external\"\n },\n \"bin\": {\n \"pylon\": \"./dist/index.js\"\n },\n \"files\": [\n \"dist\"\n ],\n \"author\": \"Nico Schett <nico.schett@cronit.io>\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/getcronit/pylon.git\",\n \"directory\": \"packages/create-pylon\"\n },\n \"homepage\": \"https://pylon.cronit.io\",\n \"dependencies\": {\n \"@getcronit/pylon-builder\": \"workspace:^\",\n \"@getcronit/pylon-telemetry\": \"workspace:^\",\n \"@gqty/cli\": \"^4.2.0\",\n \"commander\": \"^12.1.0\",\n \"consola\": \"^3.2.3\",\n \"dotenv\": \"^16.4.5\",\n \"treekill\": \"^1.0.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"engines\": {\n \"node\": \">=18.0.0\"\n }\n}\n"],
4
+ "sourcesContent": ["#!/usr/bin/env node\n\nimport {build} from '@getcronit/pylon-builder'\nimport {fetchSchema, generateClient} from '@gqty/cli'\nimport {program, type Command} from 'commander'\nimport consola from 'consola'\nimport path from 'path'\nimport {version} from '../package.json'\nimport {ChildProcess, spawn} from 'child_process'\nimport kill from 'treekill'\nimport * as telemetry from '@getcronit/pylon-telemetry'\nimport dotenv from 'dotenv'\n\ndotenv.config()\n\nprogram.name('pylon-dev').description('Pylon Development CLI').version(version)\n\nprogram\n .command('build')\n .description('Build the Pylon Schema')\n .action(async () => {\n consola.start('[Pylon]: Building schema')\n\n const {totalFiles, totalSize, duration} = await build({\n sfiFilePath: './src/index.ts',\n outputFilePath: './.pylon'\n })\n\n await telemetry.sendBuildEvent({\n duration: duration,\n totalFiles,\n totalSize,\n isDevelopment: false\n })\n\n consola.success('[Pylon]: Schema built')\n })\n\nprogram\n .name('dev')\n .option(\n '-c, --command <command>',\n 'Command to run the server',\n 'bun run .pylon/index.js'\n )\n .option('--client', \"Generate the client from the server's schema\")\n .option('--test', 'Test')\n .option(\n '--client-path <clientPath>',\n 'Path to generate the client to',\n 'gqty/index.ts'\n )\n .option(\n '--client-port <clientPort>',\n 'Port of the pylon server to generate the client from',\n '3000'\n )\n .action(main)\n\ntype ArgOptions = {\n command: string\n client: boolean\n clientPath: string\n clientPort: string\n}\n\nconst start = Date.now()\n\nasync function main(options: ArgOptions, command: Command) {\n consola.log(`[Pylon]: ${command.name()} version ${command.version()}`)\n\n let currentProc: ChildProcess | null = null\n\n let serve = async (shouldGenerateClient: boolean = false) => {\n if (currentProc) {\n // Remove all listeners to prevent the pylon dev server from crashing\n currentProc.removeAllListeners()\n\n kill(currentProc.pid, 'SIGINT', err => {\n if (err) {\n consola.error(err)\n }\n })\n }\n\n const [commandName, ...args] = options.command.split(' ')\n\n currentProc = spawn(commandName, args, {\n shell: true,\n stdio: 'inherit',\n env: {\n ...process.env,\n NODE_ENV: 'development'\n }\n })\n\n currentProc.on('exit', code => {\n // if (code === 143 || code === null) {\n // return\n // }\n\n if (code === 0) {\n consola.success('Pylon server stopped')\n process.exit(0)\n }\n\n consola.error(\n `Pylon exited with code ${code}, fix the error and save the file to restart the server`\n )\n })\n\n if (\n shouldGenerateClient &&\n options.client &&\n options.clientPath &&\n options.clientPort\n ) {\n const clientPath = path.resolve(process.cwd(), options.clientPath)\n\n const endpoint = `http://localhost:${options.clientPort}/graphql`\n\n console.log('Generating client...', endpoint)\n\n const generate = async () => {\n consola.start('[Pylon]: Fetching schema from server')\n\n const schema = await fetchSchema(endpoint, {\n silent: true\n })\n\n consola.success('[Pylon]: Schema fetched')\n\n consola.start('[Pylon]: Generating client')\n\n await generateClient(schema, {\n endpoint,\n destination: clientPath,\n react: true,\n scalarTypes: {\n Number: 'number',\n Object: 'Record<string, unknown>'\n }\n })\n\n consola.success('[Pylon]: Client generated')\n }\n\n let retries = 0\n\n const generateWithRetry = async () => {\n try {\n await generate()\n } catch (e) {\n retries++\n\n if (retries < 5) {\n setTimeout(() => {\n generateWithRetry()\n }, 1000)\n }\n }\n }\n\n generateWithRetry()\n }\n }\n\n consola.start('[Pylon]: Building schema')\n\n try {\n const {duration, totalFiles, totalSize} = await build({\n sfiFilePath: './src/index.ts',\n outputFilePath: `./.pylon`,\n watch: true,\n onWatch: async ({schemaChanged, totalFiles, totalSize, duration}) => {\n const isServerRunning = currentProc !== null\n\n if (isServerRunning) {\n consola.start('[Pylon]: Reloading server')\n } else {\n consola.start('[Pylon]: Starting server')\n }\n\n await serve(schemaChanged)\n\n if (isServerRunning) {\n consola.ready('[Pylon]: Server reloaded')\n } else {\n consola.ready('[Pylon]: Server started')\n\n consola.box(`\n Pylon is up and running!\n\n Press \\`Ctrl + C\\` to stop the server.\n\n Encounter any issues? Report them here: \n https://github.com/getcronit/pylon/issues\n\n We value your feedback\u2014help us make Pylon even better!\n `)\n }\n\n if (schemaChanged) {\n consola.info('[Pylon]: Schema updated')\n\n await telemetry.sendBuildEvent({\n duration,\n totalFiles,\n totalSize,\n isDevelopment: true\n })\n }\n }\n })\n\n await telemetry.sendBuildEvent({\n duration,\n totalFiles,\n totalSize,\n isDevelopment: true\n })\n\n consola.success('[Pylon]: Schema built')\n\n consola.start('[Pylon]: Starting server')\n await serve(true)\n consola.ready('[Pylon]: Server started')\n\n consola.box(`\n Pylon is up and running!\n\n Press \\`Ctrl + C\\` to stop the server.\n \n Encounter any issues? Report them here: \n https://github.com/getcronit/pylon/issues\n \n We value your feedback\u2014help us make Pylon even better!\n `)\n } catch (e) {\n consola.error(\"[Pylon]: Couldn't build schema\", e)\n\n // Kill the server if it's running\n const proc = currentProc as ChildProcess | null\n if (proc) {\n proc.removeAllListeners()\n\n kill(proc.pid, 'SIGINT', err => {\n if (err) {\n consola.error(err)\n }\n })\n }\n }\n\n process.on('SIGINT', async code => {\n try {\n if (currentProc) {\n currentProc.removeAllListeners()\n\n kill(currentProc.pid, 'SIGINT', err => {\n if (err) {\n consola.error(err)\n }\n })\n }\n } catch {\n // Ignore\n } finally {\n await telemetry.sendDevEvent({\n duration: Date.now() - start,\n clientPath: options.clientPath,\n clientPort: parseInt(options.clientPort)\n })\n\n process.exit(0)\n }\n })\n}\n\nprogram.parse()\n", "{\n \"name\": \"@getcronit/pylon-dev\",\n \"type\": \"module\",\n \"version\": \"1.0.5\",\n \"description\": \"CLI for creating a Pylon\",\n \"scripts\": {\n \"build\": \"rimraf ./dist && esbuild ./src/index.ts --bundle --platform=node --target=node18 --format=esm --minify --outdir=./dist --sourcemap=linked --packages=external\"\n },\n \"bin\": {\n \"pylon\": \"./dist/index.js\"\n },\n \"files\": [\n \"dist\"\n ],\n \"author\": \"Nico Schett <nico.schett@cronit.io>\",\n \"license\": \"Apache-2.0\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/getcronit/pylon.git\",\n \"directory\": \"packages/create-pylon\"\n },\n \"homepage\": \"https://pylon.cronit.io\",\n \"dependencies\": {\n \"@getcronit/pylon-builder\": \"workspace:^\",\n \"@getcronit/pylon-telemetry\": \"workspace:^\",\n \"@gqty/cli\": \"^4.2.0\",\n \"commander\": \"^12.1.0\",\n \"consola\": \"^3.2.3\",\n \"dotenv\": \"^16.4.5\",\n \"treekill\": \"^1.0.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"engines\": {\n \"node\": \">=18.0.0\"\n }\n}\n"],
5
5
  "mappings": ";AAEA,OAAQ,SAAAA,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,EAAQ,MAAM",
6
6
  "names": ["build", "fetchSchema", "generateClient", "program", "consola", "path", "version", "spawn", "kill", "telemetry", "dotenv", "program", "version", "consola", "totalFiles", "totalSize", "duration", "build", "main", "start", "options", "command", "currentProc", "serve", "shouldGenerateClient", "err", "commandName", "args", "code", "clientPath", "path", "endpoint", "generate", "schema", "fetchSchema", "generateClient", "retries", "generateWithRetry", "schemaChanged", "isServerRunning", "e", "proc"]
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@getcronit/pylon-dev",
3
3
  "type": "module",
4
- "version": "1.0.4",
4
+ "version": "1.0.5",
5
5
  "description": "CLI for creating a Pylon",
6
6
  "bin": {
7
7
  "pylon": "./dist/index.js"
@@ -24,7 +24,7 @@
24
24
  "dotenv": "^16.4.5",
25
25
  "treekill": "^1.0.0",
26
26
  "@getcronit/pylon-builder": "^2.6.8",
27
- "@getcronit/pylon-telemetry": "^1.0.3"
27
+ "@getcronit/pylon-telemetry": "^1.0.4"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"