@arvatech/modules-spreading
v1.0.5
Published
Use this module in projects to sync changes from other modules in your project.
Downloads
10
Readme
Module Spreading for Development
Use this module in projects to sync changes from other modules in your project.
No need to reinstall a dependency every time files were changed.
Step 01
Define paths to dependency modules in arva.json
{
"modulesSpreading": {
"modules" : [
"/seeding/angular/listing/"
]
}
}
Step 02
Call the spreading watcher in your package.json
start script as parallel task
"scripts": {
...
"dev": "DEBUG=arva arvamodulesspreading | ng serve --host 0.0.0.0 --poll 1"
},
Step 03
Work on your project and on the dependency at the same time. Every change will be reflected to your node_modules
directory. If dependencies are added a reinstall will be triggerd.
Igniored files
All directory and files defined in .gitignore
and .npmignore
are not watched for changes.
Angular notice
Make sure to add your modules to tsconfig.json
if they have TypeScript files.
{
...
"compilerOptions": { ... },
"include": [
"src/**/*",
"node_modules/@arvatech/**/*"
]
}
Run docker
docker run -it -v "C:/development/seeding/modules-spreading:/app" --rm app bash