@vizydrop/tracer 2.3.0 → 2.4.2-ci.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +50 -0
- package/CHANGELOG.md +7 -0
- package/GitVersion.yml +4 -0
- package/package.json +12 -14
- package/src/tracer.js +2 -1
- package/version.txt +1 -0
package/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- prepare
|
|
3
|
+
- tests
|
|
4
|
+
- publish
|
|
5
|
+
|
|
6
|
+
variables:
|
|
7
|
+
VERSION_OUTPUT_PATH: version.txt
|
|
8
|
+
|
|
9
|
+
prepare:version:
|
|
10
|
+
stage: prepare
|
|
11
|
+
image: targetprocess/gitversion:latest
|
|
12
|
+
script:
|
|
13
|
+
- git-version '/showvariable' SemVer | tee ${VERSION_OUTPUT_PATH}
|
|
14
|
+
artifacts:
|
|
15
|
+
expire_in: 2 days
|
|
16
|
+
paths:
|
|
17
|
+
- ${VERSION_OUTPUT_PATH}
|
|
18
|
+
|
|
19
|
+
tests:
|
|
20
|
+
stage: tests
|
|
21
|
+
image: node:16-alpine
|
|
22
|
+
needs: []
|
|
23
|
+
before_script:
|
|
24
|
+
- yarn install
|
|
25
|
+
script:
|
|
26
|
+
- npm run lint
|
|
27
|
+
- npm run test
|
|
28
|
+
cache:
|
|
29
|
+
key: "node_modules"
|
|
30
|
+
policy: pull # remove this to invalidate cache
|
|
31
|
+
paths:
|
|
32
|
+
- node_modules/
|
|
33
|
+
|
|
34
|
+
publish:npm:
|
|
35
|
+
stage: publish
|
|
36
|
+
dependencies:
|
|
37
|
+
- prepare:version
|
|
38
|
+
needs:
|
|
39
|
+
- tests
|
|
40
|
+
- prepare:version
|
|
41
|
+
image: node:12-alpine
|
|
42
|
+
rules:
|
|
43
|
+
- if: $PUBLISH
|
|
44
|
+
- if: $CI_COMMIT_TAG
|
|
45
|
+
before_script:
|
|
46
|
+
script:
|
|
47
|
+
- APP_VERSION=`cat ${VERSION_OUTPUT_PATH}`
|
|
48
|
+
- sed "s/999.999.999/$APP_VERSION/g" "package.json" > temp_package.json && mv temp_package.json "package.json"
|
|
49
|
+
- echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ~/.npmrc
|
|
50
|
+
- npm publish
|
package/CHANGELOG.md
CHANGED
package/GitVersion.yml
ADDED
package/package.json
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizydrop/tracer",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.2-ci.4",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
7
7
|
"lint": "eslint --quiet ."
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"elastic-apm-node": "3.
|
|
11
|
-
"lodash": "4.17.
|
|
10
|
+
"elastic-apm-node": "3.24.0",
|
|
11
|
+
"lodash": "^4.17.21"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@vizydrop/eslint-config-vizydrop": "6.0.
|
|
15
|
-
"eslint": "6.
|
|
14
|
+
"@vizydrop/eslint-config-vizydrop": "6.0.9",
|
|
15
|
+
"eslint": "6.8.0",
|
|
16
16
|
"eslint-config-airbnb": "18.0.1",
|
|
17
|
-
"eslint-config-prettier": "6.
|
|
17
|
+
"eslint-config-prettier": "6.10.0",
|
|
18
18
|
"eslint-plugin-babel": "5.3.0",
|
|
19
19
|
"eslint-plugin-filenames": "1.3.2",
|
|
20
|
-
"eslint-plugin-flowtype": "4.
|
|
21
|
-
"eslint-plugin-import": "2.
|
|
20
|
+
"eslint-plugin-flowtype": "4.6.0",
|
|
21
|
+
"eslint-plugin-import": "2.20.0",
|
|
22
22
|
"eslint-plugin-jsx-a11y": "6.2.3",
|
|
23
23
|
"eslint-plugin-lodash-fp": "2.2.0-a1",
|
|
24
24
|
"eslint-plugin-mocha": "6.2.2",
|
|
25
|
-
"eslint-plugin-node": "
|
|
25
|
+
"eslint-plugin-node": "11.0.0",
|
|
26
26
|
"eslint-plugin-promise": "4.2.1",
|
|
27
|
-
"eslint-plugin-react": "7.
|
|
27
|
+
"eslint-plugin-react": "7.18.0",
|
|
28
28
|
"eslint-plugin-react-hooks": "2.3.0",
|
|
29
|
-
"jest": "
|
|
30
|
-
"jest-teamcity": "1.6.0"
|
|
29
|
+
"jest": "25.1.0"
|
|
31
30
|
},
|
|
32
31
|
"jest": {
|
|
33
|
-
"testEnvironment": "node"
|
|
34
|
-
"testResultsProcessor": "jest-teamcity"
|
|
32
|
+
"testEnvironment": "node"
|
|
35
33
|
}
|
|
36
34
|
}
|
package/src/tracer.js
CHANGED
package/version.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.4.2-ci.4
|