Template Scripts
Setup ./.eveble/scripts/setup.js
Script is responsible for setting up repository for new project:
- User will be asked to start with a new repository - if
y, current.gitfolder will be removed. If you're contributing to this project - please typen. - Selection of required package manager:
npm|yarn|pnpmwill be available for installing dependencies. - New repository will be initialized.
- Details about the project in
package.jsonwill changed automatically:
versionwill be set to0.0.0-development(for automatic release with sematic-release) and other values will be set based on user input:namedescriptionauthor.nameauthor.emailauthor.homepagehomepagebugslicenseprivate
CHANGELOG.mdwill be erased.LICENSEwill be erased.AUTHORSwill be erased.- Documentation will be updated to reflect new package details(thus changing automatically
baseUrlandurlso documentation can be uploaded to Github Pages).
Documentation ./.eveble/scripts/docs.js
Script is responsible for generating project.json file under ./website/.eveble/project.json.
This file is used by Docusaurus to establish correct url and baseUrl for documentation published under Github Pages(gh-pages) from package.json and define additional information about the project.
Also it builds up markdown normalized file paths for API(under ./website/docs/api) and guides ./website/docs/guides) that are used by Docusaurus so there is no requirement to do this manually by user.
Its worth to mention that using numbered prefix fallowed by dash(i.e. 0-the-basics) allows to creating an ordered list of categoriazed markdown files that later on will be consumed over Docs
This streamlines the process of setting up documentation manually that can be a tedious process for larger scale projects using multiple libraries.
Its worth mentioning that its best to use object as value for author property in package.json so its easier for parsing: