generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introducing a `-pretty` flag to the validate command.
- Loading branch information
Showing
18 changed files
with
1,397 additions
and
2,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
| Issue Type | Issues Found? | Issue Count | | ||
-------------------------------------------- | ||
| Errors | false | 0 | | ||
| Warnings | true | 1 | | ||
|
||
|
||
Warnings: | ||
|
||
| code | severity | message | path | schemaPath | line_start | line_end | character_start | character_end | | ||
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| instantiation-has-no-placeholder-properties-numerical | warning | Numerical placeholder (-1) detected in instantiated pattern. | /nodes/2/interfaces/0/port | | 32 | 32 | 18 | 20 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* This script uses `chokidar` to watch for changes in the `src` and `shared/dist` directories. | ||
* When a change is detected, it triggers a rebuild of the project by running the `npm run build` command. | ||
* | ||
* The purpose of this script is to automate the build process during development, ensuring that any changes | ||
* to the source files or shared distribution files are quickly reflected in the build output. | ||
* | ||
* The script sets a debounce timeout of 5 seconds to prevent multiple rapid rebuilds in quick succession. | ||
* It also ignores changes to `.map` files to avoid unnecessary rebuilds from compiled JavaScript files. | ||
* | ||
* Usage: | ||
* - Run this script to start watching for changes and automatically rebuild the project when changes are detected. | ||
*/ | ||
import { exec } from 'child_process'; | ||
import chokidar from 'chokidar'; | ||
|
||
let timeout; | ||
|
||
const runBuild = () => { | ||
if (timeout) clearTimeout(timeout); | ||
timeout = setTimeout(() => { | ||
console.log('Rebuilding...'); | ||
exec('npm run build', (err, stdout, stderr) => { | ||
if (err) { | ||
console.error(`Error during build: ${stderr}`); | ||
return; | ||
} | ||
console.log(stdout); | ||
}); | ||
}, 5000); | ||
}; | ||
|
||
|
||
const watcher = chokidar.watch(['src', '../shared/dist'], { | ||
persistent: true, | ||
ignoreInitial: true, | ||
ignored: ['**/*.map'] | ||
}); | ||
|
||
watcher.on('all', (event, path) => { | ||
console.log(`File ${path} has been ${event}.`); | ||
runBuild(); | ||
}); | ||
|
||
console.log('Watching for changes in src and shared/dist...'); |
Oops, something went wrong.