@axdspub/axiom-charts 0.0.50 → 0.0.52

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/.eslintrc.json CHANGED
@@ -1,25 +1,25 @@
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
- "no-debugger": 1
23
- },
24
- "ignorePatterns": ["**/build/*","**/node_modules/*", "**/library/"]
25
- }
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
+ "no-debugger": 1
23
+ },
24
+ "ignorePatterns": ["**/build/*","**/node_modules/*", "**/library/"]
25
+ }
package/.gitlab-ci.yml CHANGED
@@ -1,140 +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
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
package/README.md CHANGED
@@ -1,49 +1,49 @@
1
- ## Storybook
2
-
3
- `npm run storybook`
4
-
5
- ## Local development
6
-
7
- Be sure yalc is installed:
8
-
9
- ``
10
-
11
- Then
12
-
13
- `yalc publish`
14
-
15
- To update linked projects
16
-
17
- `yalc push`
18
-
19
- In consuming project:
20
-
21
- `yalc add @axdspub/axiom-ui-data-services`
22
-
23
- then
24
-
25
- `yalc link @axdspub/axiom-ui-data-services`
26
-
27
-
28
- # Publish
29
-
30
- ```
31
- npm login --scope=@axdspub
32
- npm publish --dryrun
33
- ```
34
-
35
- If all looks good
36
-
37
- ```
38
- npm publish --access public
39
- ```
40
-
41
-
42
-
43
- # Usage
44
-
45
-
46
- # Todo
47
-
48
- Documentation
49
-
1
+ ## Storybook
2
+
3
+ `npm run storybook`
4
+
5
+ ## Local development
6
+
7
+ Be sure yalc is installed:
8
+
9
+ ``
10
+
11
+ Then
12
+
13
+ `yalc publish`
14
+
15
+ To update linked projects
16
+
17
+ `yalc push`
18
+
19
+ In consuming project:
20
+
21
+ `yalc add @axdspub/axiom-ui-data-services`
22
+
23
+ then
24
+
25
+ `yalc link @axdspub/axiom-ui-data-services`
26
+
27
+
28
+ # Publish
29
+
30
+ ```
31
+ npm login --scope=@axdspub
32
+ npm publish --dryrun
33
+ ```
34
+
35
+ If all looks good
36
+
37
+ ```
38
+ npm publish --access public
39
+ ```
40
+
41
+
42
+
43
+ # Usage
44
+
45
+
46
+ # Todo
47
+
48
+ Documentation
49
+
package/craco.config.js CHANGED
@@ -1,36 +1,38 @@
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
- typescript: {
12
- enableTypeChecking: true
13
- },
14
- alias: {
15
- '@': path.resolve(__dirname, './src/')
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
- }
1
+ const path = require('path')
2
+
3
+ // someday, clean up the the FOUR! repeated declarations of aliases (others are is in tsconfig.paths.json => tsconfig.json and .storybook/main.ts)
4
+ // https://stackoverflow.com/a/71892901
5
+
6
+ module.exports = {
7
+ webpack: {
8
+ eslint: {
9
+ enable: false
10
+ },
11
+ alias: {
12
+ '@': path.resolve(__dirname, './src/'),
13
+ '@WebCOOS': path.resolve(__dirname, 'src/Root/Images/WebCOOS/')
14
+ },
15
+ configure: {
16
+ ignoreWarnings: [/Failed to parse source map/],
17
+ resolve: {
18
+ fallback: {
19
+ https: false,
20
+ http: false,
21
+ path: false,
22
+ zlib: false
23
+ }
24
+ },
25
+ module: {
26
+ // this silences a warning (Critical dependency: require function is used in a way in which dependencies cannot be statically extracted) that comes up with the cesium build included with @axdspubs/axiom-maps
27
+ unknownContextCritical: false
28
+ }
29
+ }
30
+ },
31
+ jest: {
32
+ configure: {
33
+ verbose: true,
34
+ moduleNameMapper: {}
35
+ }
36
+ },
37
+ plugins: []
38
+ }
@@ -1,18 +1,18 @@
1
- services:
2
- app:
3
- image: axiom-charts:latest
4
- build:
5
- context: .
6
- dockerfile: Dockerfile
7
- ports:
8
- - "8787:80"
9
- # profiles:
10
- # - app
11
-
12
- storybook:
13
- image: axiom-charts-storybook:latest
14
- build:
15
- context: .
16
- dockerfile: Dockerfile.storybook
17
- ports:
18
- - "8888:80"
1
+ services:
2
+ app:
3
+ image: axiom-charts:latest
4
+ build:
5
+ context: .
6
+ dockerfile: Dockerfile
7
+ ports:
8
+ - "8787:80"
9
+ # profiles:
10
+ # - app
11
+
12
+ storybook:
13
+ image: axiom-charts-storybook:latest
14
+ build:
15
+ context: .
16
+ dockerfile: Dockerfile.storybook
17
+ ports:
18
+ - "8888:80"