Security News
UK Officials Consider Banning Ransomware Payments from Public Entities
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
@talend/scripts-core
Advanced tools
This project, inspired by react-scripts
and kcd-scripts
, aims to abstract all tools and configuration from your project.
It will expose basic scripts:
By default no configuration is needed (except for lint-merge-report) but you can at any time create a configuration file and extends from the default config.
talend-scripts
will detect the kind of package you are in.
Depending on this the sub command will use a real command like webpack
and apply either custom configuration or default configuration.
command | app | lib | angular |
---|---|---|---|
build | webpack | babel | |
lint | eslint + stylelint | eslint + stylelint | |
test | jest | jest | karma |
start | webpack | start-storybook |
Basic usage
Advanced
While building a huge app, you can run into a JavaScript heap out of memory
, espacially on production mode, with webpack optimisation and sourcemap.
You can increase the node space size to overcome this issue.
Package.json
{
"scripts": {
"build": "NODE_OPTIONS=--max_old_space_size=4096 talend-scripts build"
}
}
@talend/scripts-core uses jest
to run tests. On mac and watch mode, if you have a lot of files to watch, you can bump into this error
$ jest --watch
2016-09-22 10:49 node[79167] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-22 10:49 node[79167] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-22 10:49 node[79167] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
events.js:160
throw er; // Unhandled 'error' event
^
Error: Error watching file for changes: EMFILE
at exports._errnoException (util.js:1036:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1406:11)
The issue is well known, still not fixed in the lib or any of its dependencies. This github issue brings you a lot of info.
As a workaround, consider installing watchman
.
brew install watchman
We have added two scripts to be as simple as possible
FAQs
Set of scripts
We found that @talend/scripts-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.