Create New Template
Ns-flip lets you generate fairly fast a template from a sample code base. Your users will be able to enter once the information needed and it will be stored in their settings file for future generation.
NOTE: this information is updating very actively. We're trying to keep this reasonably up-to-date, but it's hard. If there are errors here, or if you have quations, please tell us on our community.
Start by selecting or creating a sample code base from which to build a template. Then do the following.
Install the cli:
npm i -g ns-flip
Or, skip this step and run
npx ns-flipinstead of
nswhen calling commands.
and answer the questions there. For more information about what happens with the setup sequence, see create your own setup sequence.
and answer the questions there. This is an area where we are attempting to automate more. You can add your needed files. Basically, you keep calling
$CODEand making them more and more equivalent until you have a version of the working code that was produced by the template.
Add to config information about the needed general info and other config information.
Create a Readme File Although it's not technically required, in practice a README file is necessary to explain how to use the template. Actually,
ns newtemplategenerated a stub for you.
Also, please contact us at
email@example.com if you have suggestions or want us to see what you've created--could be we'll promote some examples soon. ☺