Development
Prerequisites & Recommendations
Name | Description | More Information |
---|---|---|
node | runtime | version 19.8.1 |
yarn | dependency management | version 1.22.19 |
vscode | code editor | version 1.77.1 |
Clone the project
Install Dependencies
yarn install
or
npm install
Execute CLI commands
./bin/dev <namespace> <command>
e.g.
$ ./bin/dev vue create-project? Enter a project name: » my-rdvue-project
Building
Build
The build command rebuilds all packages and notify the user of the success of the packages being rebuilt. To build the packages of frontier, run the command:
yarn run build
or
npm run build
Rebuild
Rebuilding the frontier packages automatically reconstructs the packages forgetting about any previous compliation of them. To rebuild the frontier packages, run the command:
yarn run rebuild
or
npm run rebuild
Creating a frontier namespace
Adam
To support the creation of new frointer-based namespaces a template, Adam, has been provided to allow for easier development. This template provides the basic structure needed to develop a simple frontier-based namespace. It also provides sample commands and tests to get you started.
Testing
Run Unit Test Suite
yarn run test
or
npm run test
Creating Tests
- create a
<module-name>.test.ts
file in the respective folder - using
chai
assertion syntax, describe your unit test cases - visit the oclif testing documentation to see more details
Contribution Instructions
Testing Requirements
All code contributions made to this repository be properly tested. For testing the testing framework Jest is used. All test files must be writen with the extension ".spec.ts", to maintain the consistency of this project.
GitHub Commits
All commits maded to this repository be rewritten according to the Conventional Commit Messages Standard. This is to ensure that consistency is maintained throughout the repository.
Pull Request
When creating a pull request ensure that the request is well documented and the changes made to the repository have been properly noted. Ensure to link the issue number/s that the pull request satisfies.