Migration path: talend‐script DEPRECATED REMOVED - Talend/ui GitHub Wiki
talend-scripts has been created back in the days where setting up webpack was hard and to be able to use sass or css module you had to add 8 webpack plugins. Zero configuration becomes a trend and we had jump into it.
Nowdays we have bunch of new tech and talend/ui is under maintenance and drop talend-script is part of this maintenance.
talend-scripts test
This command was doing the following
- if angular run karma with
@talend/scripts-config-karma - if not angula run jest with
@talend/scripts-config-jest
To migrate please switch to vitest
talend-scripts lint
This command was doing the following:
- run eslint and stylelint
- if in ci swich in report JSON mode
eslint -o eslint-report.json --format json .
So to move out and be able to upgrade to eslint 10 here is what you have to do:
Create configuration files and scripts
# eslint.config.mjs
import config from '@talend/eslint-config';
export default config;
# stylelint.config.mjs
import config from '@talend/scripts-config-stylelint';
export default config;
# package.json
{
"scripts": {
"lint": "npm run lint:js && npm run lint:css",
"lint:js": "eslint -o eslint-report.json --format json .",
"lint:css": "stylelint --formatter json -o stylelint-report.json \"**/*.css\""
}
}
Conclusion
If you need more details you can look at the corresponding PR in talend/ui.