@financial-times/n-myft-ui 27.2.1 → 28.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/.circleci/config.yml +1 -1
- package/Makefile +7 -16
- package/README.md +1 -1
- package/build-state/npm-shrinkwrap.json +2012 -3984
- package/components/button/main.scss +1 -1
- package/components/instant-alert/index.js +1 -1
- package/components/pin-button/index.js +1 -1
- package/components/unread-articles-indicator/date-fns.js +6 -6
- package/components/unread-articles-indicator/device-session.js +1 -3
- package/components/unread-articles-indicator/index.js +3 -3
- package/components/unread-articles-indicator/initialise-feed-start-time.js +22 -12
- package/components/unread-articles-indicator/storage.js +10 -8
- package/karma.conf.js +2 -11
- package/myft/README.md +1 -1
- package/myft/main.scss +10 -10
- package/myft/ui/lists.js +3 -3
- package/myft/ui/myft-buttons/init.js +1 -1
- package/myft/ui/save-article-to-list-variant.js +1 -1
- package/package.json +29 -8
- package/scripts/deploy-gh-pages.sh +0 -1
- package/styles.css +1 -0
- package/test/unread-articles-indicator/device-session.spec.js +2 -2
- package/test/unread-articles-indicator/initialise-feed-start-time.spec.js +1 -1
- package/webpack.config.js +19 -0
- package/bower.json +0 -36
- package/page-kit.config.js +0 -21
- package/scripts/prevent-npm-deps.js +0 -8
package/.circleci/config.yml
CHANGED
package/Makefile
CHANGED
@@ -5,22 +5,14 @@ node_modules/@financial-times/n-gage/index.mk:
|
|
5
5
|
-include node_modules/@financial-times/n-gage/index.mk
|
6
6
|
|
7
7
|
run:
|
8
|
-
rm -rf bower_components/n-ui
|
9
|
-
mkdir bower_components/n-ui
|
10
|
-
cp -rf $(shell cat _test-server/template-copy-list.txt) bower_components/n-ui
|
11
8
|
node _test-server/app
|
12
9
|
|
13
|
-
prevent-npm-dependencies:
|
14
|
-
@node scripts/prevent-npm-deps.js
|
15
|
-
|
16
|
-
# copy project files into bower components so that we can reference component partials
|
17
|
-
# in the same way that apps that use the components do
|
18
10
|
demo-build:
|
19
|
-
@rm -rf
|
20
|
-
@mkdir
|
21
|
-
@mkdir
|
22
|
-
@cp -r components
|
23
|
-
@
|
11
|
+
@rm -rf node_modules/@financial-times/n-myft-ui
|
12
|
+
@mkdir node_modules/@financial-times/n-myft-ui
|
13
|
+
@mkdir node_modules/@financial-times/n-myft-ui/myft
|
14
|
+
@cp -r components node_modules/@financial-times/n-myft-ui/components/
|
15
|
+
@sass demos/src/demo.scss public/main.css --load-path node_modules
|
24
16
|
@$(DONE)
|
25
17
|
|
26
18
|
demo: demo-build
|
@@ -30,10 +22,10 @@ static-demo: demo-build
|
|
30
22
|
@scripts/make-static-demo.sh
|
31
23
|
|
32
24
|
test-build:
|
33
|
-
|
25
|
+
webpack --mode=development
|
34
26
|
|
35
27
|
test-unit:
|
36
|
-
karma start
|
28
|
+
node_modules/karma/bin/karma start
|
37
29
|
|
38
30
|
a11y: demo-build
|
39
31
|
@node .pa11yci.js
|
@@ -41,7 +33,6 @@ a11y: demo-build
|
|
41
33
|
@$(DONE)
|
42
34
|
|
43
35
|
test:
|
44
|
-
make prevent-npm-dependencies
|
45
36
|
make verify
|
46
37
|
make test-unit
|
47
38
|
make test-build
|
package/README.md
CHANGED
@@ -27,7 +27,7 @@ As of August 2017, The following apps use n-myft-ui:
|
|
27
27
|
|
28
28
|
When you merge to main, you should make a new release and then roll it out to the apps, plus n-topic-card which contains a reference to this so that there aren't missing dependencies.
|
29
29
|
|
30
|
-
If you are making a major change, you will need to update the
|
30
|
+
If you are making a major change, you will need to update the package.json files for the above apps. For minor and patch updates, you can rebuild without cache from CircleCI.
|
31
31
|
|
32
32
|
## Running locally
|
33
33
|
|