@axdspub/axiom-charts 0.0.3
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/.dockerignore +4 -0
- package/.eslintrc.json +24 -0
- package/.gitlab-ci.yml +140 -0
- package/.yalc/@axdspub/axiom-ui-data-services/.dockerignore +4 -0
- package/.yalc/@axdspub/axiom-ui-data-services/.eslintrc.json +28 -0
- package/.yalc/@axdspub/axiom-ui-data-services/.gitlab-ci.yml +140 -0
- package/.yalc/@axdspub/axiom-ui-data-services/Dockerfile.storybook +33 -0
- package/.yalc/@axdspub/axiom-ui-data-services/craco.config.cjs +36 -0
- package/.yalc/@axdspub/axiom-ui-data-services/docker/nginx/conf.d/default.conf +46 -0
- package/.yalc/@axdspub/axiom-ui-data-services/docker-compose.yml +18 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/axiom-ui-data-services.d.ts +313 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/browser.js +18498 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/browser.js.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/cjs.js +18493 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/cjs.js.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/App.d.ts +4 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/App.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Components/JSON/VanillaJSONEditor.d.ts +8 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Components/JSON/VanillaJSONEditor.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.d.ts +34 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.stories.d.ts +23 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/DataService.stories.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.d.ts +27 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.stories.d.ts +19 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/RequestItem.stories.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Types.d.ts +245 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/Types.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/dataServiceHelpers.d.ts +12 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/dataServiceHelpers.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/endpoints/index.d.ts +9 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/endpoints/index.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/index.d.ts +2 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/index.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/library.d.ts +6 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/library.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/groupAndSum.d.ts +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/groupAndSum.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/index.d.ts +13 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/parsers/index.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/reportWebVitals.d.ts +4 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/reportWebVitals.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/services.d.ts +11 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/dist/esm/types/services.d.ts.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/index.js +18488 -0
- package/.yalc/@axdspub/axiom-ui-data-services/library/index.js.map +1 -0
- package/.yalc/@axdspub/axiom-ui-data-services/package.json +72 -0
- package/.yalc/@axdspub/axiom-ui-data-services/rollup.config.mjs +54 -0
- package/.yalc/@axdspub/axiom-ui-data-services/tsconfig.json +45 -0
- package/.yalc/@axdspub/axiom-ui-data-services/tsconfig.paths.json +11 -0
- package/.yalc/@axdspub/axiom-ui-data-services/yalc.sig +1 -0
- package/Dockerfile.storybook +33 -0
- package/README.md +46 -0
- package/craco.config.js +36 -0
- package/docker/nginx/conf.d/default.conf +46 -0
- package/docker-compose.yml +18 -0
- package/library/Libraries/axiom/assets/browser-ff7df1e3.css +19 -0
- package/library/Libraries/axiom/assets/cjs-ff7df1e3.css +19 -0
- package/library/Libraries/axiom/assets/index-ff7df1e3.css +19 -0
- package/library/Libraries/axiom/browser.js +41130 -0
- package/library/Libraries/axiom/browser.js.map +1 -0
- package/library/Libraries/axiom/cjs.js +41129 -0
- package/library/Libraries/axiom/cjs.js.map +1 -0
- package/library/Libraries/axiom/index.js +41127 -0
- package/library/Libraries/axiom/index.js.map +1 -0
- package/library/axiom-charts.d.ts +195 -0
- package/library/browser.js +36339 -0
- package/library/browser.js.map +1 -0
- package/library/cjs.js +36337 -0
- package/library/cjs.js.map +1 -0
- package/library/index.js +36334 -0
- package/library/index.js.map +1 -0
- package/package.json +112 -0
- package/rollup.config.mjs +141 -0
- package/tsconfig.json +29 -0
- package/tsconfig.paths.json +11 -0
- package/yalc.lock +10 -0
package/.dockerignore
ADDED
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"es2021": true
|
|
5
|
+
},
|
|
6
|
+
"extends": [
|
|
7
|
+
"plugin:react/recommended",
|
|
8
|
+
"standard-with-typescript"
|
|
9
|
+
],
|
|
10
|
+
"overrides": [
|
|
11
|
+
],
|
|
12
|
+
"parserOptions": {
|
|
13
|
+
"ecmaVersion": "latest",
|
|
14
|
+
"sourceType": "module",
|
|
15
|
+
"project": ["./tsconfig.json"]
|
|
16
|
+
},
|
|
17
|
+
"plugins": [
|
|
18
|
+
"react"
|
|
19
|
+
],
|
|
20
|
+
"rules": {
|
|
21
|
+
"ignoreIIFE": 0
|
|
22
|
+
},
|
|
23
|
+
"ignorePatterns": ["**/build/*","**/node_modules/*", "**/library/"]
|
|
24
|
+
}
|
package/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- build
|
|
3
|
+
- test
|
|
4
|
+
- push
|
|
5
|
+
- clean
|
|
6
|
+
- deploy
|
|
7
|
+
|
|
8
|
+
build_image:
|
|
9
|
+
stage: build
|
|
10
|
+
script:
|
|
11
|
+
- docker build -f Dockerfile -t $CI_PROJECT_NAME:$CI_PIPELINE_ID .
|
|
12
|
+
- docker build -f Dockerfile.storybook -t $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID .
|
|
13
|
+
|
|
14
|
+
test:
|
|
15
|
+
stage: test
|
|
16
|
+
image: $CI_PROJECT_NAME:$CI_PIPELINE_ID
|
|
17
|
+
script:
|
|
18
|
+
- test -e /usr/share/nginx/html/index.html
|
|
19
|
+
- test -e /usr/share/nginx/html/asset-manifest.json
|
|
20
|
+
|
|
21
|
+
test_storybook:
|
|
22
|
+
stage: test
|
|
23
|
+
image: $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID
|
|
24
|
+
script:
|
|
25
|
+
- test -e /usr/share/nginx/html/index.html
|
|
26
|
+
- test -e /usr/share/nginx/html/stories.json
|
|
27
|
+
|
|
28
|
+
push_latest:
|
|
29
|
+
stage: push
|
|
30
|
+
only:
|
|
31
|
+
- main
|
|
32
|
+
script:
|
|
33
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:latest
|
|
34
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:latest
|
|
35
|
+
|
|
36
|
+
push_branch:
|
|
37
|
+
stage: push
|
|
38
|
+
only:
|
|
39
|
+
- branches
|
|
40
|
+
except:
|
|
41
|
+
- main
|
|
42
|
+
script:
|
|
43
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
|
|
44
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
|
|
45
|
+
|
|
46
|
+
push_branch_storybook:
|
|
47
|
+
stage: push
|
|
48
|
+
only:
|
|
49
|
+
- branches
|
|
50
|
+
except:
|
|
51
|
+
- main
|
|
52
|
+
script:
|
|
53
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:$CI_COMMIT_REF_NAME
|
|
54
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:$CI_COMMIT_REF_NAME
|
|
55
|
+
|
|
56
|
+
push_latest_storybook:
|
|
57
|
+
stage: push
|
|
58
|
+
only:
|
|
59
|
+
- main
|
|
60
|
+
script:
|
|
61
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:latest
|
|
62
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:latest
|
|
63
|
+
|
|
64
|
+
push_tag:
|
|
65
|
+
stage: push
|
|
66
|
+
only:
|
|
67
|
+
- tags
|
|
68
|
+
script:
|
|
69
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:$CI_BUILD_TAG
|
|
70
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:$CI_BUILD_TAG
|
|
71
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:prod
|
|
72
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:prod
|
|
73
|
+
|
|
74
|
+
push_tag_storybook:
|
|
75
|
+
stage: push
|
|
76
|
+
only:
|
|
77
|
+
- tags
|
|
78
|
+
script:
|
|
79
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:$CI_BUILD_TAG
|
|
80
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:$CI_BUILD_TAG
|
|
81
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:prod
|
|
82
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:prod
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
clean_latest:
|
|
86
|
+
stage: clean
|
|
87
|
+
only:
|
|
88
|
+
- main
|
|
89
|
+
script:
|
|
90
|
+
- docker rmi --no-prune $CI_PROJECT_NAME:$CI_PIPELINE_ID
|
|
91
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME:latest
|
|
92
|
+
|
|
93
|
+
clean_latest_storybook:
|
|
94
|
+
stage: clean
|
|
95
|
+
only:
|
|
96
|
+
- main
|
|
97
|
+
script:
|
|
98
|
+
- docker rmi --no-prune $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID
|
|
99
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME-storybook:latest
|
|
100
|
+
|
|
101
|
+
clean_tag:
|
|
102
|
+
stage: clean
|
|
103
|
+
only:
|
|
104
|
+
- tags
|
|
105
|
+
script:
|
|
106
|
+
- docker rmi --no-prune $CI_PROJECT_NAME:$CI_PIPELINE_ID
|
|
107
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME:$CI_BUILD_TAG
|
|
108
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME:prod
|
|
109
|
+
|
|
110
|
+
clean_tag_storybook:
|
|
111
|
+
stage: clean
|
|
112
|
+
only:
|
|
113
|
+
- tags
|
|
114
|
+
script:
|
|
115
|
+
- docker rmi --no-prune $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID
|
|
116
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME-storybook:$CI_BUILD_TAG
|
|
117
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME-storybook:prod
|
|
118
|
+
|
|
119
|
+
deploy_app_and_storybook:
|
|
120
|
+
stage: deploy
|
|
121
|
+
only:
|
|
122
|
+
- main
|
|
123
|
+
script:
|
|
124
|
+
- aps apps-prod axiom-charts-and-storybook
|
|
125
|
+
|
|
126
|
+
# deploy_prod:
|
|
127
|
+
# stage: deploy
|
|
128
|
+
# environment: production
|
|
129
|
+
# only:
|
|
130
|
+
# - tags
|
|
131
|
+
# script:
|
|
132
|
+
# - docker run --rm registry.axiom/ansible aps apps-prod $CI_PROJECT_NAME -e $CI_PROJECT_NAME_version=$CI_BUILD_TAG --tags deploy
|
|
133
|
+
|
|
134
|
+
# deploy_prod_storybook:
|
|
135
|
+
# stage: deploy
|
|
136
|
+
# environment: production
|
|
137
|
+
# only:
|
|
138
|
+
# - tags
|
|
139
|
+
# script:
|
|
140
|
+
# - docker run --rm registry.axiom/ansible aps apps-prod $CI_PROJECT_NAME-storybook -e $CI_PROJECT_NAME-storybook_version=$CI_BUILD_TAG --tags deploy
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"browser": true,
|
|
4
|
+
"es2021": true
|
|
5
|
+
},
|
|
6
|
+
"extends": [
|
|
7
|
+
"plugin:react/recommended",
|
|
8
|
+
"standard-with-typescript"
|
|
9
|
+
],
|
|
10
|
+
"overrides": [
|
|
11
|
+
],
|
|
12
|
+
"parserOptions": {
|
|
13
|
+
"ecmaVersion": "latest",
|
|
14
|
+
"sourceType": "module",
|
|
15
|
+
"project": ["./tsconfig.json"]
|
|
16
|
+
},
|
|
17
|
+
"plugins": [
|
|
18
|
+
"react"
|
|
19
|
+
],
|
|
20
|
+
"rules": {
|
|
21
|
+
"ignoreIIFE": 0
|
|
22
|
+
},
|
|
23
|
+
"ignorePatterns": [
|
|
24
|
+
"**/build/*",
|
|
25
|
+
"**/library/*",
|
|
26
|
+
"**/node_modules/*"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
stages:
|
|
2
|
+
- build
|
|
3
|
+
- test
|
|
4
|
+
- push
|
|
5
|
+
- clean
|
|
6
|
+
- deploy
|
|
7
|
+
|
|
8
|
+
build_image:
|
|
9
|
+
stage: build
|
|
10
|
+
script:
|
|
11
|
+
- docker build -f Dockerfile -t $CI_PROJECT_NAME:$CI_PIPELINE_ID .
|
|
12
|
+
- docker build -f Dockerfile.storybook -t $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID .
|
|
13
|
+
|
|
14
|
+
test:
|
|
15
|
+
stage: test
|
|
16
|
+
image: $CI_PROJECT_NAME:$CI_PIPELINE_ID
|
|
17
|
+
script:
|
|
18
|
+
- test -e /usr/share/nginx/html/index.html
|
|
19
|
+
- test -e /usr/share/nginx/html/asset-manifest.json
|
|
20
|
+
|
|
21
|
+
test_storybook:
|
|
22
|
+
stage: test
|
|
23
|
+
image: $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID
|
|
24
|
+
script:
|
|
25
|
+
- test -e /usr/share/nginx/html/index.html
|
|
26
|
+
- test -e /usr/share/nginx/html/stories.json
|
|
27
|
+
|
|
28
|
+
push_latest:
|
|
29
|
+
stage: push
|
|
30
|
+
only:
|
|
31
|
+
- main
|
|
32
|
+
script:
|
|
33
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:latest
|
|
34
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:latest
|
|
35
|
+
|
|
36
|
+
push_branch:
|
|
37
|
+
stage: push
|
|
38
|
+
only:
|
|
39
|
+
- branches
|
|
40
|
+
except:
|
|
41
|
+
- main
|
|
42
|
+
script:
|
|
43
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
|
|
44
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
|
|
45
|
+
|
|
46
|
+
push_branch_storybook:
|
|
47
|
+
stage: push
|
|
48
|
+
only:
|
|
49
|
+
- branches
|
|
50
|
+
except:
|
|
51
|
+
- main
|
|
52
|
+
script:
|
|
53
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:$CI_COMMIT_REF_NAME
|
|
54
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:$CI_COMMIT_REF_NAME
|
|
55
|
+
|
|
56
|
+
push_latest_storybook:
|
|
57
|
+
stage: push
|
|
58
|
+
only:
|
|
59
|
+
- main
|
|
60
|
+
script:
|
|
61
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:latest
|
|
62
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:latest
|
|
63
|
+
|
|
64
|
+
push_tag:
|
|
65
|
+
stage: push
|
|
66
|
+
only:
|
|
67
|
+
- tags
|
|
68
|
+
script:
|
|
69
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:$CI_BUILD_TAG
|
|
70
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:$CI_BUILD_TAG
|
|
71
|
+
- docker tag $CI_PROJECT_NAME:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME:prod
|
|
72
|
+
- docker push registry.axiom/$CI_PROJECT_NAME:prod
|
|
73
|
+
|
|
74
|
+
push_tag_storybook:
|
|
75
|
+
stage: push
|
|
76
|
+
only:
|
|
77
|
+
- tags
|
|
78
|
+
script:
|
|
79
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:$CI_BUILD_TAG
|
|
80
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:$CI_BUILD_TAG
|
|
81
|
+
- docker tag $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID registry.axiom/$CI_PROJECT_NAME-storybook:prod
|
|
82
|
+
- docker push registry.axiom/$CI_PROJECT_NAME-storybook:prod
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
clean_latest:
|
|
86
|
+
stage: clean
|
|
87
|
+
only:
|
|
88
|
+
- main
|
|
89
|
+
script:
|
|
90
|
+
- docker rmi --no-prune $CI_PROJECT_NAME:$CI_PIPELINE_ID
|
|
91
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME:latest
|
|
92
|
+
|
|
93
|
+
clean_latest_storybook:
|
|
94
|
+
stage: clean
|
|
95
|
+
only:
|
|
96
|
+
- main
|
|
97
|
+
script:
|
|
98
|
+
- docker rmi --no-prune $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID
|
|
99
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME-storybook:latest
|
|
100
|
+
|
|
101
|
+
clean_tag:
|
|
102
|
+
stage: clean
|
|
103
|
+
only:
|
|
104
|
+
- tags
|
|
105
|
+
script:
|
|
106
|
+
- docker rmi --no-prune $CI_PROJECT_NAME:$CI_PIPELINE_ID
|
|
107
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME:$CI_BUILD_TAG
|
|
108
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME:prod
|
|
109
|
+
|
|
110
|
+
clean_tag_storybook:
|
|
111
|
+
stage: clean
|
|
112
|
+
only:
|
|
113
|
+
- tags
|
|
114
|
+
script:
|
|
115
|
+
- docker rmi --no-prune $CI_PROJECT_NAME-storybook:$CI_PIPELINE_ID
|
|
116
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME-storybook:$CI_BUILD_TAG
|
|
117
|
+
- docker rmi --no-prune registry.axiom/$CI_PROJECT_NAME-storybook:prod
|
|
118
|
+
|
|
119
|
+
deploy_app_and_storybook:
|
|
120
|
+
stage: deploy
|
|
121
|
+
only:
|
|
122
|
+
- main
|
|
123
|
+
script:
|
|
124
|
+
- aps apps-prod axiom-ui-data-services-and-storybook
|
|
125
|
+
|
|
126
|
+
# deploy_prod:
|
|
127
|
+
# stage: deploy
|
|
128
|
+
# environment: production
|
|
129
|
+
# only:
|
|
130
|
+
# - tags
|
|
131
|
+
# script:
|
|
132
|
+
# - docker run --rm registry.axiom/ansible aps apps-prod $CI_PROJECT_NAME -e $CI_PROJECT_NAME_version=$CI_BUILD_TAG --tags deploy
|
|
133
|
+
|
|
134
|
+
# deploy_prod_storybook:
|
|
135
|
+
# stage: deploy
|
|
136
|
+
# environment: production
|
|
137
|
+
# only:
|
|
138
|
+
# - tags
|
|
139
|
+
# script:
|
|
140
|
+
# - docker run --rm registry.axiom/ansible aps apps-prod $CI_PROJECT_NAME-storybook -e $CI_PROJECT_NAME-storybook_version=$CI_BUILD_TAG --tags deploy
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Install dependencies only when needed
|
|
2
|
+
FROM node:18-alpine AS deps
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
COPY package.json package-lock.json ./
|
|
5
|
+
# TODO: Maybe revisit this, as we probably shouldn't be relying on
|
|
6
|
+
# legacy-peer-deps
|
|
7
|
+
COPY .npmrc ./
|
|
8
|
+
RUN npm ci
|
|
9
|
+
|
|
10
|
+
# Rebuild the source code only when needed
|
|
11
|
+
FROM node:18-alpine AS builder
|
|
12
|
+
|
|
13
|
+
# RUN apk --no-cache add curl
|
|
14
|
+
WORKDIR /app
|
|
15
|
+
COPY package.json package-lock.json ./
|
|
16
|
+
COPY .storybook .storybook
|
|
17
|
+
COPY public public
|
|
18
|
+
COPY src src
|
|
19
|
+
COPY .eslintrc.json craco.config.cjs tsconfig.json tsconfig.paths.json ./
|
|
20
|
+
COPY --from=deps /app/node_modules ./node_modules
|
|
21
|
+
RUN npm run build-storybook
|
|
22
|
+
|
|
23
|
+
# Production image, copy all the files and run craco
|
|
24
|
+
FROM nginx:1.25.1 AS nginx
|
|
25
|
+
WORKDIR /app
|
|
26
|
+
|
|
27
|
+
ENV NODE_ENV production
|
|
28
|
+
|
|
29
|
+
COPY --from=builder /app/storybook-static /usr/share/nginx/html
|
|
30
|
+
|
|
31
|
+
COPY ./docker/nginx/conf.d/* /etc/nginx/conf.d/
|
|
32
|
+
|
|
33
|
+
EXPOSE 80
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
const path = require('path')
|
|
2
|
+
// someday, clean up the the FOUR! repeated declarations of aliases (others are is in tsconfig.paths.json => tsconfig.json and .storybook/main.ts)
|
|
3
|
+
// https://stackoverflow.com/a/71892901
|
|
4
|
+
console.log(path.resolve(__dirname, './src/'))
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
webpack: {
|
|
8
|
+
eslint: {
|
|
9
|
+
enable: false
|
|
10
|
+
},
|
|
11
|
+
alias: {
|
|
12
|
+
'@': path.resolve(__dirname, './src/')
|
|
13
|
+
},
|
|
14
|
+
typescript: {
|
|
15
|
+
enableTypeChecking: true
|
|
16
|
+
},
|
|
17
|
+
configure: {
|
|
18
|
+
ignoreWarnings: [/Failed to parse source map/],
|
|
19
|
+
resolve: {
|
|
20
|
+
fallback: {
|
|
21
|
+
https: false,
|
|
22
|
+
http: false,
|
|
23
|
+
path: false,
|
|
24
|
+
zlib: false
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
jest: {
|
|
30
|
+
configure: {
|
|
31
|
+
verbose: true,
|
|
32
|
+
moduleNameMapper: {}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
plugins: []
|
|
36
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
server {
|
|
2
|
+
listen 80;
|
|
3
|
+
listen [::]:80;
|
|
4
|
+
server_name localhost;
|
|
5
|
+
|
|
6
|
+
#access_log /var/log/nginx/host.access.log main;
|
|
7
|
+
|
|
8
|
+
location / {
|
|
9
|
+
root /usr/share/nginx/html;
|
|
10
|
+
index index.html index.htm;
|
|
11
|
+
|
|
12
|
+
try_files $uri /index.html;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
#error_page 404 /404.html;
|
|
16
|
+
|
|
17
|
+
# redirect server error pages to the static page /50x.html
|
|
18
|
+
#
|
|
19
|
+
error_page 500 502 503 504 /50x.html;
|
|
20
|
+
location = /50x.html {
|
|
21
|
+
root /usr/share/nginx/html;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
|
25
|
+
#
|
|
26
|
+
#location ~ \.php$ {
|
|
27
|
+
# proxy_pass http://127.0.0.1;
|
|
28
|
+
#}
|
|
29
|
+
|
|
30
|
+
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
|
31
|
+
#
|
|
32
|
+
#location ~ \.php$ {
|
|
33
|
+
# root html;
|
|
34
|
+
# fastcgi_pass 127.0.0.1:9000;
|
|
35
|
+
# fastcgi_index index.php;
|
|
36
|
+
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
|
37
|
+
# include fastcgi_params;
|
|
38
|
+
#}
|
|
39
|
+
|
|
40
|
+
# deny access to .htaccess files, if Apache's document root
|
|
41
|
+
# concurs with nginx's one
|
|
42
|
+
#
|
|
43
|
+
#location ~ /\.ht {
|
|
44
|
+
# deny all;
|
|
45
|
+
#}
|
|
46
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
services:
|
|
2
|
+
app:
|
|
3
|
+
image: axiom-ui-dataservices:latest
|
|
4
|
+
build:
|
|
5
|
+
context: .
|
|
6
|
+
dockerfile: Dockerfile
|
|
7
|
+
ports:
|
|
8
|
+
- "8787:80"
|
|
9
|
+
# profiles:
|
|
10
|
+
# - app
|
|
11
|
+
|
|
12
|
+
storybook:
|
|
13
|
+
image: axiom-ui-dataservices-storybook:latest
|
|
14
|
+
build:
|
|
15
|
+
context: .
|
|
16
|
+
dockerfile: Dockerfile.storybook
|
|
17
|
+
ports:
|
|
18
|
+
- "8888:80"
|