sigurdsvela / boot Goto Github PK
View Code? Open in Web Editor NEWA command line tool for quickly creating starting points for project based on templates
A command line tool for quickly creating starting points for project based on templates
Add option if notify to colorise output. Default to true.
Syntax would be something like
{
...
"options" : {
"--my-symbol" : {
"symbol" : "symbol-id",
"format" : "id" // <---
}
}
...
}
\_?[a-zA-Z0-9\-\_]
_Can start with a _, rest must be alpha-numeric or - or __
This would then be used in symbols like --name in the wordpress templates
\d+?.\d+?.\d+?(\-\d+)?
Must the three digits, separated by a period, can contain a prepending - followed by at leas one digit
Should only allow non empty, [a-zA-Z0-9-_] string, starting with [a-zA-Z]
When not specifying -o, boot should try to create the template in the current directory, or notify the user that -o must be specified.
So one may write
boot new wordpress-plugin
Looks better, reads better, is better..
And in turn allows the following
{
...
options : {
"--option" : { "files" : {} },
"--option2" : { "values" : {} },
"--symbol" : { "symbol" : "symbol-name" }
}
...
}
All missing the description field
{
[...]
"options" : {
"--vcs" : {
"description" : "Choose version control system"
"values" : {
"git" : {[...]},
"svn" : {[...]}
}
}
"--remote" : {
"description" : "Set remote for VCS",
"requires" : "--vcs",
"files" : "set-up-remote-file",
"symbol" : "remote-url"
}
}
[...]
}
Make boot automatically download boot template form github.com/sigurdsvela/boot-templates
Now it would for example list the wordpress plugin template as 'WordPress Plugin' and not the desired wordpress-plugin
- try 'boot new --help'
+ try 'boot template the-template'
Fix the check when the boot command is ran, that checks if there is a file of that name, an wether or not said file is a file or a directory.
As of now, it's always verbose. So very very verbose.
Should allow for writing
template.json
{
[...]
"options" : {
"--symbol" : {
"symbol" : "symbol-id"
"format" : "[format]"
"format-description" : "Must be present if the format is a regex"
}
}
[...]
}
[format] should be the name of a built in format, or a regex, starting with ^ and ending with $. If a regex, a format-description is required. This is to print to the user if (s)he enters an invalid value.
The format description should be written in the format
Must [be/start with/end with/conatin/not contain] [...]
This to make sure there are not any conflicts
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.