To create a new routine and it's .asserted directory within a repo, go to the repo and run
asrtd init using the CLI.
This will walk you through a few configuration options, and then create the directory, create the routine, and install the dependencies.
A newly initialized
.asserted directory will contain the following:
examples/ # A directory containing example testsnode_modules/ # Packges installed based on the package.json.gitignore # A standard Node .gitignore filepackage.json # Mostly standard package.json filepackage-lock.json # Lockfile for packagesroutine.json # Routine configuration file
The examples can be removed or altered in any way, but the rest are required.
routine.json file should be updated if you want to change anything about the routine configuration. That's covered here.
Any additional files you wish to create can be added to this directory and they will be included with the routine when it's pushed.