@financial-times/n-myft-ui 25.0.1 → 27.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.circleci/config.yml +42 -13
- package/.nvmrc +1 -1
- package/Makefile +0 -1
- package/README.md +4 -0
- package/build-state/npm-shrinkwrap.json +23540 -34370
- package/components/collections/collections.html +11 -3
- package/components/concept-list/concept-list.html +4 -1
- package/components/csrf-token/input.html +5 -0
- package/components/follow-button/follow-button.html +79 -0
- package/components/instant-alert/instant-alert.html +1 -1
- package/components/pin-button/pin-button.html +1 -1
- package/components/save-for-later/save-for-later.html +1 -1
- package/components/unread-articles-indicator/date-fns.js +6 -6
- package/demos/app.js +0 -25
- package/demos/templates/demo.html +2 -2
- package/package.json +15 -25
- package/components/csrf-token/__tests__/input.test.js +0 -23
- package/components/csrf-token/input.jsx +0 -26
- package/components/follow-button/__tests__/follow-button.test.js +0 -40
- package/components/follow-button/follow-button.jsx +0 -174
- package/demos/templates/demo-layout.html +0 -25
- package/demos/templates/demo.jsx +0 -33
- package/jest.config.js +0 -8
package/.circleci/config.yml
CHANGED
@@ -5,7 +5,11 @@ references:
|
|
5
5
|
container_config_node: &container_config_node
|
6
6
|
working_directory: ~/project/build
|
7
7
|
docker:
|
8
|
-
- image:
|
8
|
+
- image: cimg/node:<< parameters.node-version >>-browsers
|
9
|
+
parameters:
|
10
|
+
node-version:
|
11
|
+
default: "16.14"
|
12
|
+
type: string
|
9
13
|
|
10
14
|
workspace_root: &workspace_root ~/project
|
11
15
|
|
@@ -63,17 +67,16 @@ jobs:
|
|
63
67
|
steps:
|
64
68
|
- checkout
|
65
69
|
- node/install-npm:
|
66
|
-
|
70
|
+
version: "7"
|
67
71
|
- run:
|
68
72
|
name: Checkout next-ci-shared-helpers
|
69
|
-
command: git clone --depth 1
|
73
|
+
command: git clone --depth 1
|
74
|
+
git@github.com:Financial-Times/next-ci-shared-helpers.git
|
75
|
+
.circleci/shared-helpers
|
70
76
|
- *restore_npm_cache
|
71
77
|
- run:
|
72
78
|
name: Install project dependencies
|
73
79
|
command: make install
|
74
|
-
- run:
|
75
|
-
name: shared-helper / npm-update
|
76
|
-
command: .circleci/shared-helpers/helper-npm-update
|
77
80
|
- run:
|
78
81
|
name: shared-helper / generate-build-state-artifacts
|
79
82
|
command: .circleci/shared-helpers/helper-generate-build-state-artifacts
|
@@ -111,7 +114,8 @@ jobs:
|
|
111
114
|
- run:
|
112
115
|
name: shared-helper / npm-store-auth-token
|
113
116
|
command: .circleci/shared-helpers/helper-npm-store-auth-token
|
114
|
-
- run: npx snyk monitor --org=customer-products
|
117
|
+
- run: npx snyk monitor --org=customer-products
|
118
|
+
--project-name=Financial-Times/n-myft-ui
|
115
119
|
- run:
|
116
120
|
name: shared-helper / npm-version-and-publish-public
|
117
121
|
command: .circleci/shared-helpers/helper-npm-version-and-publish-public
|
@@ -135,32 +139,49 @@ workflows:
|
|
135
139
|
filters:
|
136
140
|
<<: *filters_ignore_tags
|
137
141
|
<<: *filters_ignore_gh_pages
|
142
|
+
name: build-v<< matrix.node-version >>
|
143
|
+
matrix:
|
144
|
+
parameters:
|
145
|
+
node-version: ["16.14", "14.19"]
|
138
146
|
- test:
|
139
147
|
filters:
|
140
148
|
<<: *filters_ignore_tags
|
141
|
-
<<: *filters_ignore_gh_pages
|
142
149
|
requires:
|
143
|
-
- build
|
150
|
+
- build-v<< matrix.node-version >>
|
151
|
+
name: test-v<< matrix.node-version >>
|
152
|
+
matrix:
|
153
|
+
parameters:
|
154
|
+
node-version: ["16.14", "14.19"]
|
144
155
|
- deploy:
|
145
156
|
filters:
|
146
157
|
<<: *filters_only_main
|
147
158
|
requires:
|
148
|
-
- build
|
159
|
+
- build-v16.14
|
149
160
|
build-test-publish:
|
150
161
|
jobs:
|
151
162
|
- build:
|
152
163
|
filters:
|
153
164
|
<<: *filters_version_tag
|
165
|
+
<<: *filters_ignore_gh_pages
|
166
|
+
name: build-v<< matrix.node-version >>
|
167
|
+
matrix:
|
168
|
+
parameters:
|
169
|
+
node-version: ["16.14", "14.19"]
|
154
170
|
- test:
|
155
171
|
filters:
|
156
172
|
<<: *filters_version_tag
|
157
173
|
requires:
|
158
|
-
- build
|
174
|
+
- build-v<< matrix.node-version >>
|
175
|
+
name: test-v<< matrix.node-version >>
|
176
|
+
matrix:
|
177
|
+
parameters:
|
178
|
+
node-version: ["16.14", "14.19"]
|
159
179
|
- publish:
|
180
|
+
context: npm-publish-token
|
160
181
|
filters:
|
161
182
|
<<: *filters_version_tag
|
162
183
|
requires:
|
163
|
-
- test
|
184
|
+
- test-v16.14
|
164
185
|
|
165
186
|
nightly:
|
166
187
|
triggers:
|
@@ -171,10 +192,18 @@ workflows:
|
|
171
192
|
jobs:
|
172
193
|
- build:
|
173
194
|
context: next-nightly-build
|
195
|
+
name: build-v<< matrix.node-version >>
|
196
|
+
matrix:
|
197
|
+
parameters:
|
198
|
+
node-version: ["16.14", "14.19"]
|
174
199
|
- test:
|
175
200
|
requires:
|
176
|
-
- build
|
201
|
+
- build-v<< matrix.node-version >>
|
177
202
|
context: next-nightly-build
|
203
|
+
name: test-v<< matrix.node-version >>
|
204
|
+
matrix:
|
205
|
+
parameters:
|
206
|
+
node-version: ["16.14", "14.19"]
|
178
207
|
|
179
208
|
notify:
|
180
209
|
webhooks:
|
package/.nvmrc
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
16
|
package/Makefile
CHANGED
package/README.md
CHANGED