Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ymake-skeleton

Generate a new skeleton from an existing project, rewriting its role/root identifiers so the result is a reusable template.

Usage

ymake-skeleton <SOURCE-PROJECT> <DESTINATION-PROJECT> --yunorole <role> --rootname <name>
Argument / OptionPurpose
<SOURCE-PROJECT>Existing project directory (positional, required)
<DESTINATION-PROJECT>New skeleton directory — must not exist (positional, required)
--yunorole / -rRole keyword to parameterize (required)
--rootname / -nRoot name keyword(s), comma-separated (required)

All four are mandatory.

ymake-skeleton ./gate_frigo ./skeletons/yuno_gate --yunorole=gate_frigo --rootname=gate_frigo,frigo

It is the reverse of yuno-skeleton: each keyword becomes a template marker -- {{yunorole}} / {{Rootname}} / {{ROOTNAME}} inside text files, +yunorole+ / +rootname+ in file and directory names -- and every text file takes the _tmpl suffix. A keyword is replaced only as a whole word, the same rules as yclone-project (binary files copied as they are, .git/build/node_modules… not cloned). When yunorole and rootname are the same word, yunorole takes it.

The new directory is a template, not yet a skeleton the tool lists: add an entry for it in the __skeletons__.json of its directory (copy the one of yuno_standalone and change its name), then yuno-skeleton -p <dir> <name>.

A {{ that the source already holds (an i18next {{name}} in a JS file) is read by yuno-skeleton as a marker, and comes out empty: check for it before you publish the template.

See also