[fix] schema
This commit is contained in:
parent
66ddcbb717
commit
bc39495921
|
|
@ -15,7 +15,7 @@
|
|||
"type": "string",
|
||||
"enum": ["node", "web"]
|
||||
},
|
||||
"dependencies": {
|
||||
"libs": {
|
||||
"nullable": true,
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
"type": "string",
|
||||
"default": "{{project}}-{{app}"
|
||||
},
|
||||
"shebang": {
|
||||
"head": {
|
||||
"nullable": true,
|
||||
"type": "string",
|
||||
"default": null
|
||||
|
|
|
|||
|
|
@ -57,7 +57,10 @@ namespace _ivaldi
|
|||
"misc"
|
||||
),
|
||||
},
|
||||
"libs": (definition_raw["libs"] ?? {}),
|
||||
"libs": ((libs_raw) => ({
|
||||
"plankton": (libs_raw["plankton"] ?? null),
|
||||
"node": (libs_raw["node"] ?? null),
|
||||
})) (definition_raw["libs"] ?? {}),
|
||||
"core": definition_raw["core"],
|
||||
"apps": (
|
||||
definition_raw["apps"].map(
|
||||
|
|
@ -623,6 +626,29 @@ namespace _ivaldi
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
/*
|
||||
async function action_deploy(
|
||||
definition : _ivaldi.type_definition,
|
||||
build_directory_pattern : string,
|
||||
deploy_system : string,
|
||||
deploy_directory : string
|
||||
) : Promise<void>
|
||||
{
|
||||
const command : string = lib_plankton.string.coin(
|
||||
"rsync --recursive --update{{excludes}} {{from}}/ {{to_system}}:{{to_directory}}",
|
||||
{
|
||||
"from": get_build_directory(definition, build_directory_pattern),
|
||||
"to_system": deploy_system,
|
||||
"to_directory": deploy_directory,
|
||||
}
|
||||
);
|
||||
await _ivaldi.execute(command);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
export async function main(
|
||||
|
|
@ -659,7 +685,7 @@ namespace _ivaldi
|
|||
"name": "assets",
|
||||
}),
|
||||
"targets": lib_plankton.args.class_argument.volatile({
|
||||
"indicators_long": ["targets"],
|
||||
"indicators_long": ["target"],
|
||||
"indicators_short": ["t"],
|
||||
"type": lib_plankton.args.enum_type.string,
|
||||
"mode": lib_plankton.args.enum_mode.accumulate,
|
||||
|
|
@ -668,7 +694,7 @@ namespace _ivaldi
|
|||
"name": "targets",
|
||||
}),
|
||||
"temp_directory_pattern": lib_plankton.args.class_argument.volatile({
|
||||
"indicators_long": ["temp-directory-pattern"],
|
||||
"indicators_long": ["temp-directory"],
|
||||
"indicators_short": ["T"],
|
||||
"type": lib_plankton.args.enum_type.string,
|
||||
"mode": lib_plankton.args.enum_mode.replace,
|
||||
|
|
@ -677,7 +703,7 @@ namespace _ivaldi
|
|||
"name": "temp-directory-pattern",
|
||||
}),
|
||||
"build_directory_pattern": lib_plankton.args.class_argument.volatile({
|
||||
"indicators_long": ["build-directory-pattern"],
|
||||
"indicators_long": ["build-directory"],
|
||||
"indicators_short": ["B"],
|
||||
"type": lib_plankton.args.enum_type.string,
|
||||
"mode": lib_plankton.args.enum_mode.replace,
|
||||
|
|
@ -686,7 +712,7 @@ namespace _ivaldi
|
|||
"name": "build-directory-pattern",
|
||||
}),
|
||||
"makefile_path_pattern": lib_plankton.args.class_argument.volatile({
|
||||
"indicators_long": ["makefile-path-pattern"],
|
||||
"indicators_long": ["makefile-path"],
|
||||
"indicators_short": ["M"],
|
||||
"type": lib_plankton.args.enum_type.string,
|
||||
"mode": lib_plankton.args.enum_mode.replace,
|
||||
|
|
@ -815,11 +841,18 @@ namespace _ivaldi
|
|||
);
|
||||
break;
|
||||
}
|
||||
/*
|
||||
case "deploy":
|
||||
{
|
||||
return Promise.reject<void>(new Error("not yet implemented"));
|
||||
await action_deploy(
|
||||
definition,
|
||||
args.build_directory_pattern,
|
||||
args.deploy_system,
|
||||
args.deploy_directory
|
||||
);
|
||||
break;
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue