70.0.29 • Published 2 months ago

@nginstack/build-tools v70.0.29

Weekly downloads
156
License
-
Repository
-
Last release
2 months ago

Build Tools

Auxiliary tools used for build JAZ packages on nginstack platform.

Install

Prerequisites

Installation

  1. Install @nginstack/build-tools using npm (or yarn):

    npm install @nginstack/build-tools

Configuration

Build tools scripts requires a configuration about the target database that will run the tests and receive the build artifacts. The configuration can be informed by environment variables or by a .env config file placed at repository root.

The build API and scripts will search custom jaz archives automatically at directory build/ and they will use directory .engine as Engine work directory. It´s recommended to ignore this directory in .gitignore to avoid to commit Engine large temporary files like logs and database local caches.

Configure defining the environment variables:

  • ENGINE_URL: engine server URL. Example: http://my_database.nginstack.com.
  • ENGINE_DATABASE: database name. Example: MY_DATABASE.
  • ENGINE_USERNAME: user name used to upload artifacts and run tests.
  • ENGINE_PASSWORD: user password used to upload artifacts and run tests.
  • DEVOPS_API_KEY: API_KEY configured at /configuration/HTTP APIs/DevOps.

Or use a .env file:

ENGINE_URL=http://my_database.nginstack.com
ENGINE_DATABASE=MY_DATABASE
ENGINE_USERNAME=username
ENGINE_PASSWORD=password
DEVOPS_API_KEY=my-builder-api-key

Build and utilities scripts

uploadToVfs

Upload one or more build artifacts to Engine Virtual File System.

Usage:

uploadToVfs PATH_1 FILE_KEY_1 PATH_2 FILE_KEY_2 ... PATH_N FILE_KEY_N

runTests

Run server testes on Engine and save the results to a file using the JUnit tests XML report file format. If the report path was not informed it will use "build/server-tests.xml".

Usage:

runTests.js TESTS_PATHS [OUT_REPORT_PATH] 

installJazDependencies

Read the array property jazDependencies of package.json and download the informed JAZ packages of the server informed by the environment variable SERVER_URL using the JAZ_API_KEY. The downloaded JAZ packages are extracted in node_modules.

Is recommended to use installJazDependencies as a postinstall script of package.json.

Usage:

installJazDependencies

packJaz

Build a JAZ file using a config file informed as argument. Config example:

{
  "dest": "build/my-package.jaz",
  "files": [
    "package.json", "lib/**", "routes/**", "controllers/**", "keys/**", "tests/**",
    "publicModules.js", "scripts/**", "startups/**"
  ],
  "ignore": [
      "lib/localConfig.js"
  ],
  "minifier": {
    "files": [
      "lib/**"
    ]
  },
  "e2c": [
    {
      "metadata": {
        "license": {
          "product": -1898148465
        }
      },
      "files": [
        "lib/testing/e2c/**"
      ]
    }
  ]  
}

Use the minifier option to minify and to obfuscate the files of the JAZ Package and the e2c option to encrypt files using the Engine E2C file format. Both features are experimental and not were officially released as supported product features.

Usage:

packJaz jaz.config.json
71.0.359

2 months ago

71.0.334

2 months ago

71.0.87

10 months ago

70.0.1

1 year ago

71.0.17

1 year ago

71.0.1

1 year ago

70.0.19

1 year ago

70.0.23

1 year ago

70.0.29

1 year ago

69.0.40

1 year ago

68.0.31

1 year ago

69.0.1

1 year ago

67.0.21

1 year ago

68.0.1

1 year ago

66.0.17

1 year ago

67.0.1

1 year ago

66.0.1

1 year ago

65.0.34

1 year ago

65.0.1

2 years ago

64.0.23

2 years ago

64.0.1

2 years ago

64.0.6

2 years ago

63.0.28

2 years ago

61.0.1

2 years ago

63.0.1

2 years ago

60.0.11

2 years ago

62.0.1

2 years ago

62.0.17

2 years ago

60.0.1

2 years ago

59.0.15

2 years ago

58.0.20

2 years ago

59.0.1

2 years ago

58.0.1

2 years ago

57.0.16

2 years ago

55.0.8

2 years ago

56.0.11

2 years ago

56.0.1

2 years ago

57.0.1

2 years ago

57.0.5

2 years ago

55.0.1

2 years ago

53.0.22

2 years ago

54.0.7

2 years ago

54.0.1

2 years ago

53.0.1

3 years ago

53.0.5

3 years ago

52.0.18

3 years ago

52.0.1

3 years ago

51.0.17

3 years ago

51.0.1

3 years ago

50.0.41

3 years ago

50.0.33

3 years ago

50.0.14

3 years ago

50.0.10

3 years ago

49.0.52

3 years ago

50.0.1

3 years ago

49.0.46

3 years ago

49.0.47

3 years ago

49.0.48

3 years ago

49.0.43

3 years ago

49.0.30

3 years ago

49.0.28

3 years ago

49.0.1

3 years ago

48.0.37

3 years ago

48.0.12

3 years ago

48.0.1

3 years ago

47.0.41

3 years ago

47.0.1

3 years ago

46.0.56

3 years ago

45.0.53

3 years ago

46.0.13

3 years ago

46.0.1

3 years ago

45.0.44

3 years ago

45.0.10

3 years ago

45.0.1

3 years ago

44.0.47

3 years ago

44.0.4

3 years ago

43.0.43

3 years ago

44.0.1

3 years ago

43.0.1

3 years ago

42.0.45

3 years ago

41.0.55

3 years ago

42.0.1

3 years ago

40.0.56

4 years ago

41.0.1

4 years ago

40.0.50

4 years ago

40.0.1

4 years ago

39.0.59

4 years ago

39.0.1

4 years ago

38.0.54

4 years ago

38.0.47

4 years ago

38.0.1

4 years ago

37.0.46

4 years ago

37.0.5

4 years ago

37.0.1

4 years ago

36.0.39

4 years ago

36.0.1

4 years ago

35.0.30

4 years ago

35.0.22

4 years ago

35.0.23

4 years ago

35.0.16

4 years ago

34.0.33

4 years ago

35.0.1

4 years ago

34.0.7

4 years ago

34.0.5

4 years ago

34.0.6

4 years ago

33.0.38

4 years ago

34.0.1

4 years ago

33.0.14

4 years ago

32.0.39

4 years ago

33.0.1

4 years ago

32.0.1

4 years ago

31.0.29

4 years ago

31.0.5

4 years ago

31.0.1

4 years ago

30.0.55

4 years ago

30.0.23

4 years ago

30.0.1

4 years ago

29.0.72

4 years ago

29.0.68

4 years ago

29.0.61

4 years ago

29.0.55

4 years ago

29.0.31

5 years ago

29.0.1

5 years ago

28.0.54

5 years ago

28.0.51

5 years ago

28.0.48

5 years ago

28.0.34

5 years ago

28.0.18

5 years ago

28.0.1

5 years ago

27.0.46

5 years ago

27.0.26

5 years ago

27.0.12

5 years ago

26.0.36

5 years ago

27.0.1

5 years ago

26.0.5

5 years ago

26.0.4

5 years ago

26.0.3

5 years ago

26.0.1

5 years ago

25.0.42

5 years ago

25.0.17

5 years ago

25.0.15

5 years ago

25.0.11

5 years ago

25.0.9

5 years ago

24.0.60

5 years ago

25.0.1

5 years ago

24.0.55

5 years ago

24.0.17

5 years ago

24.0.1

5 years ago

23.0.50

5 years ago

23.0.15

5 years ago

23.0.3

5 years ago