@talend/scripts-core

16.5.1 • Public • Published

Talend Scripts

Description

This project, inspired by react-scripts and kcd-scripts, aims to abstract all tools and configuration from your project.

It will expose basic scripts:

  • start
  • test
  • build
  • lint
  • lint-merge-report

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.

  • app: if you have src/app folder
  • lib: if not an app
  • angular: if there is a dependencies on angularjs
  • public project: you have a publishConfig: { access : 'public' } in your package.json

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

Table of content

Basic usage

  1. Getting started

Advanced

  1. config customisation

Possible issues

Build

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"
	}
}

Test

@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

Extra scripts

We have added two scripts to be as simple as possible

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
10.0.0-alpha.10next
16.5.1374latest

Version History

VersionDownloads (Last 7 Days)Published
16.5.1374
16.5.038
16.4.014
16.3.614
16.3.514
16.3.417
16.3.314
16.3.214
16.3.114
16.3.014
16.2.014
16.1.114
16.1.014
16.0.014
15.0.014
14.0.114
14.0.014
13.3.014
13.2.014
13.1.314
13.1.216
13.1.114
13.1.014
13.0.014
12.2.014
12.1.014
12.0.018
11.7.214
11.7.114
11.7.014
11.6.014
11.5.115
11.5.014
11.4.014
11.3.214
11.3.114
11.3.016
11.2.014
11.1.014
11.0.114
11.0.014
9.13.214
9.13.114
9.13.014
9.12.114
9.12.00
9.11.00
9.10.00
9.9.10
9.9.00
9.7.01
9.7.0-alpha.10
9.7.0-alpha.00
9.6.20
9.6.10
9.6.00
9.5.10
9.5.00
9.4.10
9.4.00
10.1.00
9.3.21
10.0.20
9.3.10
10.0.10
9.3.00
10.0.00
10.0.0-alpha.10
9.2.20
9.2.2-alpha.00
9.2.10
9.2.1-alpha.60
9.2.1-alpha.50
9.2.1-alpha.40
9.2.1-alpha.30
9.2.1-alpha.20
9.2.1-alpha.10
9.2.1-alpha.00
9.2.00
9.2.0-alpha.10
9.2.0-alpha.00
9.1.00
9.0.10
9.1.0-ng.00
7.5.10
9.1.0-alpha.00
9.0.00
8.0.20
9.0.0-jest.00
8.0.1-jest.00
8.0.10
8.0.00
7.5.1-alpha.00
7.5.00
8.0.0-jest.260
7.4.30
7.4.20
7.4.10
7.4.00
7.3.10
8.0.0-alpha.20
8.0.0-alpha.10
7.3.00
7.2.10
7.2.00
7.1.30
7.1.20
7.1.10
7.1.00
6.10.10
7.0.50
7.0.40
7.0.30
7.0.2-alpha.10
7.0.20
7.0.2-alpha.00
7.0.10
7.0.1-alpha.10
7.0.1-alpha.00
7.0.00
6.10.00
7.0.0-alpha.480
7.0.0-alpha.470
6.9.10
6.9.00
7.0.0-alpha.460
7.0.0-alpha.450
6.8.20
6.8.10
6.8.00
7.0.0-alpha.440
7.0.0-alpha.430
7.0.0-alpha.420
7.0.0-alpha.410
7.0.0-alpha.400
7.0.0-alpha.390
7.0.0-alpha.380
7.0.0-alpha.370
6.7.00
7.0.0-alpha.360
7.0.0-alpha.340
7.0.0-alpha.330
7.0.0-alpha.320
7.0.0-alpha.310
7.0.0-alpha.300
7.0.0-alpha.290
6.6.10
7.0.0-alpha.280
7.0.0-alpha.260
7.0.0-alpha.250
7.0.0-alpha.240
6.6.00
7.0.0-alpha.230
7.0.0-alpha.220
7.0.0-alpha.210
7.0.0-alpha.200
7.0.0-alpha.190
7.0.0-alpha.180
7.0.0-alpha.170
7.0.0-alpha.160
7.0.0-alpha.150
7.0.0-alpha.130
7.0.0-alpha.120
7.0.0-alpha.110
7.0.0-alpha.100
6.5.00
7.0.0-alpha.90
7.0.0-alpha.80
7.0.0-alpha.70
7.0.0-alpha.60
7.0.0-alpha.50
6.4.20
6.4.10
6.4.00
6.4.0-alpha.30
6.4.0-alpha.20
6.4.0-alpha.10
6.4.0-alpha.00
6.3.20
7.0.0-alpha.40
7.0.0-alpha.30
6.3.10
7.0.0-alpha.22
6.3.00
7.0.0-alpha.10
7.0.0-alpha.00
6.2.50
6.2.40
6.2.30
6.2.20
6.2.10
6.2.00
6.1.00
6.0.00
5.3.00
5.2.10
5.2.00
5.1.20
5.1.10
5.1.00
5.0.00
5.0.0-alpha.20
5.0.0-alpha.10
5.0.0-alpha.00
4.0.00
3.3.30
3.3.20
3.3.10
3.3.00
3.2.00
3.2.0-alpha.00
3.1.10
4.0.0-alpha.00
3.1.00
3.0.10
3.0.01
2.6.10
2.6.00
2.5.00
2.4.00
2.3.00
2.2.20
2.2.10
2.1.00
2.0.00
1.0.00
1.0.0-alpha.10
1.0.0-alpha.00

Package Sidebar

Install

npm i @talend/scripts-core

Weekly Downloads

904

Version

16.5.1

License

Apache-2.0

Unpacked Size

59.1 kB

Total Files

31

Last publish

Collaborators

  • talend-frontend