@generation/icons 1.1.2 → 1.1.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/.circleci/config.yml +51 -3
- package/assets/not-available.svg +9 -0
- package/dist/index.js +1 -1
- package/package.json +3 -2
- package/packages/demo/image.png +0 -0
- package/packages/demo/package-lock.json +4 -4
- package/packages/demo/package.json +1 -1
- package/packages/demo/src/components/Gallery/Gallery.jsx +415 -3
- package/scripts/create-full.mjs +46 -0
- package/src/Icons/{Link.jsx → LinkIcon.jsx} +2 -2
- package/src/Icons/NotAvailable.jsx +23 -0
- package/src/Icons/index.js +2 -1
- /package/assets/{link.svg → link-icon.svg} +0 -0
package/.circleci/config.yml
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
version: 2.1
|
|
2
|
+
orbs:
|
|
3
|
+
aws-s3: circleci/aws-s3@2.0.0
|
|
2
4
|
jobs:
|
|
3
5
|
install_dependencies:
|
|
4
6
|
docker:
|
|
@@ -21,6 +23,7 @@ jobs:
|
|
|
21
23
|
key: source-{{ .Branch }}-{{ .Revision }}
|
|
22
24
|
paths:
|
|
23
25
|
- "~/repo"
|
|
26
|
+
|
|
24
27
|
build:
|
|
25
28
|
docker:
|
|
26
29
|
- image: cimg/node:20.14.0
|
|
@@ -33,11 +36,12 @@ jobs:
|
|
|
33
36
|
- source-
|
|
34
37
|
- run:
|
|
35
38
|
name: Build bundle
|
|
36
|
-
command: npm run build
|
|
39
|
+
command: npm run build-all
|
|
37
40
|
- persist_to_workspace:
|
|
38
41
|
root: "~/repo"
|
|
39
42
|
paths:
|
|
40
43
|
- package.json
|
|
44
|
+
|
|
41
45
|
release:
|
|
42
46
|
docker:
|
|
43
47
|
- image: cimg/node:20.14.0
|
|
@@ -51,7 +55,37 @@ jobs:
|
|
|
51
55
|
name: Build project in a minified and transpiled version
|
|
52
56
|
command: npm run semantic-release
|
|
53
57
|
|
|
54
|
-
|
|
58
|
+
build-gallery:
|
|
59
|
+
docker:
|
|
60
|
+
- image: cimg/node:20.14.0
|
|
61
|
+
working_directory: ~/repo/packages/demo
|
|
62
|
+
steps:
|
|
63
|
+
- checkout
|
|
64
|
+
- run:
|
|
65
|
+
name: Install @generation/icons
|
|
66
|
+
command: npm install @generation/icons@latest
|
|
67
|
+
- run:
|
|
68
|
+
name: Build gallery
|
|
69
|
+
command: npm run build
|
|
70
|
+
- persist_to_workspace:
|
|
71
|
+
root: ~/repo/packages/demo
|
|
72
|
+
paths:
|
|
73
|
+
- dist
|
|
74
|
+
- package.json
|
|
75
|
+
|
|
76
|
+
deploy_to_dev:
|
|
77
|
+
docker:
|
|
78
|
+
- image: cimg/node:20.14.0
|
|
79
|
+
steps:
|
|
80
|
+
- attach_workspace:
|
|
81
|
+
at: "~/repo/packages/demo"
|
|
82
|
+
- aws-s3/sync:
|
|
83
|
+
from: dist
|
|
84
|
+
to: 's3://icons.deployment.dev'
|
|
85
|
+
arguments: |
|
|
86
|
+
--acl public-read \
|
|
87
|
+
--cache-control "max-age=86400"
|
|
88
|
+
|
|
55
89
|
workflows:
|
|
56
90
|
version: 2
|
|
57
91
|
test_build_deploy_release:
|
|
@@ -67,4 +101,18 @@ workflows:
|
|
|
67
101
|
filters:
|
|
68
102
|
branches:
|
|
69
103
|
only:
|
|
70
|
-
- master
|
|
104
|
+
- master
|
|
105
|
+
- build-gallery:
|
|
106
|
+
requires:
|
|
107
|
+
- release
|
|
108
|
+
filters:
|
|
109
|
+
branches:
|
|
110
|
+
only:
|
|
111
|
+
- master
|
|
112
|
+
- deploy_to_dev:
|
|
113
|
+
requires:
|
|
114
|
+
- build-gallery
|
|
115
|
+
filters:
|
|
116
|
+
branches:
|
|
117
|
+
only:
|
|
118
|
+
- master
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
3
|
+
viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve">
|
|
4
|
+
<style type="text/css">
|
|
5
|
+
.st0{fill:none;}
|
|
6
|
+
</style>
|
|
7
|
+
<path class="st0" d="M0,0h24v24H0V0z"/>
|
|
8
|
+
<path d="M12,2C6.5,2,2,6.5,2,12s4.5,10,10,10s10-4.5,10-10S17.5,2,12,2z M17,13H7v-2h10V13z" fill="currentColor"/>
|
|
9
|
+
</svg>
|