new-project add default URL, trim tags, allow multiple comma-separated authors

This commit is contained in:
2021-07-23 17:12:46 -06:00
parent f4e6f6a8f2
commit f8c5b7649b

View File

@@ -81,17 +81,17 @@ class Main {
var pkg = name.replace("-", "_"); var pkg = name.replace("-", "_");
var haxelibJson = { var haxelibJson = {
"name": name, "name": name,
"url": promptFor("url"), "url": promptFor("url", "https://github.com/NQNStudios/kisslang"),
"license": promptFor("license", "LGPL"), "license": promptFor("license", "LGPL"),
"tags": { "tags": {
var t = promptFor("tags (comma-separated)", "").split(","); var t = promptFor("tags (comma-separated)", "").split(",").map(StringTools.trim);
t.remove(""); t.remove("");
t; t;
}, },
"description": promptFor("description", ""), "description": promptFor("description", ""),
"version": "0.0.0", "version": "0.0.0",
"releasenote": "", "releasenote": "",
"contributors": [promptFor("author")], "contributors": promptFor("authors (comma-separated)").split(",").map(StringTools.trim),
"classPath": "src/", "classPath": "src/",
"main": '${pkg}.Main', "main": '${pkg}.Main',
"dependencies": { "dependencies": {