beginner-corp / generators Goto Github PK
View Code? Open in Web Editor NEWGenerators for Begin apps
License: Apache License 2.0
Generators for Begin apps
License: Apache License 2.0
there should be one globally accessible help menu always available by running without arguments and then a sub-command explicitly named 'help' to give specific documentation for specific generators.
examples of the help command:
#! arc-gen-beta help mvc
Usage
arc-gen-beta mvc modelname hashkey:*String sortkey:**String ...additional attributes...
Examples
arc-gen-beta mvc post postID:*String title:string published:boolean body:text
running any command prints
Welcome to the Architect Generator Beta
run this command with --help to see info
I would only expect to see this message when:
arc-gen-beta
)arc-get-beta foo
)(And not when generating code.)
generated auth example has a broken layout
Welcome to the Architect Generator Beta
run this command with --help to see info
cp: /Users/brianleroux/src/static/template: No such file or directory
(node:42628) UnhandledPromiseRejectionWarning: Error: Command failed: cp -r /Users/brianleroux/src/static/template /Users/brianleroux/cool
cp: /Users/brianleroux/src/static/template: No such file or directory
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at staticGenerator (/Users/brianleroux/.npm-global/lib/node_modules/arc-gen-beta/src/static/index.js:6:3)
at cli (/Users/brianleroux/.npm-global/lib/node_modules/arc-gen-beta/cli.js:63:11)
at async main (/Users/brianleroux/.npm-global/lib/node_modules/arc-gen-beta/cli.js:29:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:42628) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:42628) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
#!```
don't make people search for help in the help! should always be just one global help accessible via running without args
package.json
currently only displays this:
{
"dependencies": {
"@architect/functions": "latest",
"@architect/sandbox": "latest"
}
}
Would be ideal to have it pre-made with a simple arc-sandbox
script, etc.
the readme should be focused on what people should do with this program.
if we're going to give output lets make it useful
current:
#! arc-gen-beta auth -d cool
Welcome to the Architect Generator Beta
run this command with --help to see info
created auth example
this would be much better:
#! arc-gen-beta auth -d cool
Successfully generated auth. Install deps are preview by running:
cd /Users/brianleroux/cool
npm i
npm start
also look into putting console output thru stderr so we don't fuck up piping
cli fails when I run repeated. expected behavior: should not fail when running repeatedly in same dir.
steps to repro
arc-gen-beta mvc -d ./cool
arc-gen-beta static -d ./cool
full output:
#! arc-gen-beta mvc -d ./cool
arc-gen-beta static -d ./coolWelcome to the Architect Generator Beta
run this command with --help to see info
created mvc example
#! arc-gen-beta static -d ./cool
Welcome to the Architect Generator Beta
run this command with --help to see info
cp: /Users/brianleroux/src/static/template: No such file or directory
(node:42616) UnhandledPromiseRejectionWarning: Error: Command failed: cp -r /Users/brianleroux/src/static/template /Users/brianleroux/cool
cp: /Users/brianleroux/src/static/template: No such file or directory
at checkExecSyncError (child_process.js:616:11)
at execSync (child_process.js:652:15)
at staticGenerator (/Users/brianleroux/.npm-global/lib/node_modules/arc-gen-beta/src/static/index.js:6:3)
at cli (/Users/brianleroux/.npm-global/lib/node_modules/arc-gen-beta/cli.js:63:11)
at async main (/Users/brianleroux/.npm-global/lib/node_modules/arc-gen-beta/cli.js:29:5)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:42616) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:42616) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
#!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.