After Creating the project structure in the module add the required dependency.
Package.Json:-
We need to add or update the module dependency in three places.Micro-ui-internals:-
Now open the micro-ui-internals package.json file and update the dependency. e.g:- If we need to add br module then will add these dependencies.
Code Block |
---|
"dev:br": "cd packages/modules/br && yarn start",
"build:br": "cd packages/modules/br && yarn build",
|
...
example:-
Now open the example package.json file and update the dependency. e.g:- If we need to add br module then will add these dependencies.Code Block "@egovernments/digit-ui-module-br":"^1.4.0",
...
Web:-
Now open the Web package.json file and update the dependency. e.g:- If we need to add br module then will add these dependencies.
Code Block |
---|
"@egovernments/digit-ui-module-br":"1.5.4", |
...
adding all required Dependency. will add the module code.
Routing:-
Now we will see how to add a new screen. Create an index.js (you can give any name) file in a particular module or service as seen below
...