}
task "yarn_validate-ci"(type: Exec) {
- dependsOn ":server:sonar-web:yarn_design-system"
+ dependsOn ":server:sonar-web:yarn_run"
inputs.dir('src')
}
task "yarn_lint-report-ci"(type: Exec) {
- dependsOn ":server:sonar-web:yarn_design-system"
+ dependsOn ":server:sonar-web:yarn_run"
['src'].each {
inputs.dir(it)
"@typescript-eslint/parser": "5.49.0",
"autoprefixer": "10.4.13",
"chalk": "4.1.2",
+ "chokidar": "3.5.3",
"design-system": "1.0.0",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.7",
const build = spawn('npx', ['turbo', 'run', 'design-system#build']);
- build.stdout.on('data', function (data) {
+ build.stdout.on('data', (data) => {
console.log(chalk.green.bold(data.toString()));
});
- build.stderr.on('data', function (data) {
+ build.stderr.on('data', (data) => {
console.log(chalk.red.bold(data.toString()));
});
- build.on('exit', function (code) {
+ build.on('exit', (code) => {
if (code === 0) {
callback();
}
const fs = require('fs');
const chalk = require('chalk');
+const chokidar = require('chokidar');
const esbuild = require('esbuild');
const http = require('http');
const httpProxy = require('http-proxy');
}
buildDesignSystem(run);
+
+chokidar
+ .watch('./design-system/src', {
+ ignored: /(^|[/\\])\../, // ignore dotfiles
+ persistent: true,
+ })
+ .on('change', () => buildDesignSystem());
"@typescript-eslint/parser": 5.49.0
autoprefixer: 10.4.13
chalk: 4.1.2
+ chokidar: 3.5.3
classnames: 2.3.2
clipboard: 2.0.11
core-js: 3.27.2
languageName: node
linkType: hard
-"chokidar@npm:^3.5.2":
+"chokidar@npm:3.5.3, chokidar@npm:^3.5.2":
version: 3.5.3
resolution: "chokidar@npm:3.5.3"
dependencies: