11.3.0 • Published 3 months ago

@talend/scripts-core v11.3.0

Weekly downloads
1,394
License
Apache-2.0
Repository
github
Last release
3 months ago

Talend Scripts

Description

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

  • build, dev-serve, analyze: based on webpack
  • build-lib-umd: based on webpack with target umd
  • build-lib: based on babel
  • lint: based on eslint
  • test: based on jest and enzyme
  • test-ng: based on karma
  • extends: customised Talend scripts configuration for your project needs
  • postinstall: doing local update for CDN
  • upgrade:deps: update your dependencies

Table of content

Basic usage

  1. Getting started
  2. Presets

Advanced

  1. Preset customisation
  2. Talend preset

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

postinstall

To support custom UMD build for some libraries we face the need to download that build and install it into your node_modules. The best to do so is to provide a postinstall hook.

talend-scripts postinstall

it does the following:

  • update the configuration (modules supported in UMDs)
  • download all umd custom builds of modules installed

In some condition you may need to use one of the following options:

namedescription
-vverbose to display progress
-fforce to download custom builds even if present on the system
--no-umd-config-updateescape the download of the config
--no-install-custom-buildsescape the download and install of custom builds
11.3.0

3 months ago

11.2.0

4 months ago

11.1.0

4 months ago

11.0.0

5 months ago

11.0.1

5 months ago

9.13.2

5 months ago

9.13.1

5 months ago

9.13.0

5 months ago

9.12.0

5 months ago

9.12.1

5 months ago

9.11.0

8 months ago

9.10.0

9 months ago

9.9.1

10 months ago

9.9.0

10 months ago

9.7.0-alpha.0

11 months ago

9.7.0-alpha.1

11 months ago

9.7.0

11 months ago

9.6.2

11 months ago

9.6.1

11 months ago

9.6.0

11 months ago

9.5.1

11 months ago

9.5.0

11 months ago

9.4.1

11 months ago

9.4.0

11 months ago

9.3.2

11 months ago

10.1.0

11 months ago

10.0.1

11 months ago

10.0.2

11 months ago

9.3.1

11 months ago

9.3.0

12 months ago

10.0.0

12 months ago

10.0.0-alpha.1

12 months ago

9.2.2

12 months ago

9.2.2-alpha.0

12 months ago

9.2.1-alpha.6

12 months ago

9.2.1-alpha.5

12 months ago

9.2.1-alpha.0

12 months ago

9.2.1-alpha.2

12 months ago

9.2.1-alpha.1

12 months ago

9.2.1-alpha.4

12 months ago

9.2.1-alpha.3

12 months ago

9.2.1

12 months ago

9.2.0

12 months ago

9.2.0-alpha.0

12 months ago

9.2.0-alpha.1

12 months ago

9.1.0

12 months ago

9.0.1

12 months ago

9.1.0-ng.0

12 months ago

7.5.1

12 months ago

9.0.0

12 months ago

9.1.0-alpha.0

12 months ago

9.0.0-jest.0

12 months ago

8.0.2

12 months ago

8.0.1-jest.0

12 months ago

8.0.1

12 months ago

8.0.0

12 months ago

7.5.1-alpha.0

12 months ago

7.5.0

1 year ago

8.0.0-jest.26

1 year ago

7.4.3

1 year ago

7.4.2

1 year ago

7.4.1

1 year ago

7.4.0

1 year ago

7.3.1

1 year ago

8.0.0-alpha.2

1 year ago

8.0.0-alpha.1

1 year ago

7.3.0

1 year ago

7.2.1

1 year ago

7.2.0

1 year ago

7.1.3

1 year ago

7.1.2

1 year ago

7.1.1

1 year ago

7.1.0

1 year ago

6.10.1

1 year ago

7.0.5

1 year ago

7.0.4

1 year ago

7.0.3

1 year ago

7.0.2

1 year ago

7.0.1

1 year ago

7.0.2-alpha.0

1 year ago

7.0.2-alpha.1

1 year ago

7.0.1-alpha.0

1 year ago

7.0.1-alpha.1

1 year ago

7.0.0

1 year ago

6.10.0

1 year ago

7.0.0-alpha.48

1 year ago

7.0.0-alpha.47

1 year ago

6.9.1

1 year ago

6.9.0

1 year ago

7.0.0-alpha.46

1 year ago

7.0.0-alpha.45

1 year ago

6.8.2

1 year ago

6.8.1

1 year ago

6.8.0

1 year ago

7.0.0-alpha.44

1 year ago

7.0.0-alpha.43

1 year ago

7.0.0-alpha.42

1 year ago

7.0.0-alpha.41

1 year ago

7.0.0-alpha.40

1 year ago

7.0.0-alpha.39

1 year ago

7.0.0-alpha.38

1 year ago

7.0.0-alpha.37

1 year ago

6.7.0

1 year ago

7.0.0-alpha.36

1 year ago

7.0.0-alpha.34

1 year ago

7.0.0-alpha.33

1 year ago

7.0.0-alpha.32

1 year ago

7.0.0-alpha.31

1 year ago

7.0.0-alpha.30

1 year ago

7.0.0-alpha.29

1 year ago

6.6.1

1 year ago

7.0.0-alpha.28

1 year ago

7.0.0-alpha.26

1 year ago

7.0.0-alpha.25

1 year ago

7.0.0-alpha.24

1 year ago

6.6.0

1 year ago

7.0.0-alpha.23

1 year ago

7.0.0-alpha.22

1 year ago

7.0.0-alpha.21

1 year ago

7.0.0-alpha.20

1 year ago

7.0.0-alpha.19

1 year ago

7.0.0-alpha.18

1 year ago

7.0.0-alpha.15

1 year ago

7.0.0-alpha.16

1 year ago

7.0.0-alpha.13

1 year ago

7.0.0-alpha.17

1 year ago

7.0.0-alpha.11

1 year ago

7.0.0-alpha.12

1 year ago

7.0.0-alpha.10

1 year ago

6.5.0

1 year ago

7.0.0-alpha.9

1 year ago

7.0.0-alpha.8

1 year ago

7.0.0-alpha.7

1 year ago

7.0.0-alpha.6

1 year ago

7.0.0-alpha.5

1 year ago

6.4.2

1 year ago

6.4.1

2 years ago

6.4.0

2 years ago

6.4.0-alpha.3

2 years ago

6.4.0-alpha.2

2 years ago

6.4.0-alpha.1

2 years ago

6.4.0-alpha.0

2 years ago

6.3.2

2 years ago

7.0.0-alpha.4

2 years ago

7.0.0-alpha.3

2 years ago

6.3.1

2 years ago

7.0.0-alpha.2

2 years ago

7.0.0-alpha.1

2 years ago

6.3.0

2 years ago

7.0.0-alpha.0

2 years ago

6.2.5

2 years ago

6.2.4

2 years ago

6.2.3

2 years ago

6.2.2

2 years ago

6.2.1

2 years ago

6.2.0

2 years ago

6.1.0

2 years ago

6.0.0

2 years ago

5.3.0

2 years ago

5.2.1

2 years ago

5.2.0

2 years ago

5.1.2

2 years ago

5.1.1

2 years ago

5.1.0

2 years ago

5.0.0

2 years ago

5.0.0-alpha.2

2 years ago

5.0.0-alpha.1

2 years ago

5.0.0-alpha.0

2 years ago

4.0.0

2 years ago

3.3.3

2 years ago

3.3.2

2 years ago

3.3.1

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.2.0-alpha.0

2 years ago

3.1.1

2 years ago

4.0.0-alpha.0

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.3.0

2 years ago

2.2.2

2 years ago

2.2.1

2 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

1.0.0-alpha.1

3 years ago

1.0.0-alpha.0

3 years ago