Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Commit

Permalink
Merge branch 'latest' of github.com:BBC-News/psammead into test-cover…
Browse files Browse the repository at this point in the history
…age-helper-method
  • Loading branch information
Phil Lee committed Jan 7, 2019
2 parents b0a8c0b + 29c83da commit 9a19c45
Show file tree
Hide file tree
Showing 16 changed files with 3,694 additions and 2,207 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ Our recommended `.babelrc` config for this is here:

[See documentation on the Styled Components site](https://www.styled-components.com/docs/tooling#babel-plugin)

**NOTE**: if you run into issues with CSS not being applied to your components, it is likely that there is a duplicate `styled-components` dependency somewhere in your packages. You can try running [`npm dedupe`](https://www.styled-components.com/docs/faqs#duplicated-module-in-node_modules) in most cases, or [`lerna bootstrap --hoist`](https://www.styled-components.com/docs/faqs#usage-with-lerna) in monorepo setups such as Psammead's. Failing that, make sure your application's `styled-components` dependency is the same version as that in Psammead.

## :bar_chart: Support levels

We strive for components to conform to the following minimum levels of support, but please check each component's individual README.
Expand Down
1,185 changes: 607 additions & 578 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@
"main": "index.js",
"scripts": {
"build": "lerna exec --parallel -- babel src -d dist --ignore '**/*.test.jsx,**/*.stories.jsx' --root-mode upward",
"ci:packages": "lerna exec -- npm ci",
"clear_styled_components": "for d in ./packages/*/*; do rm -rf $d/node_modules/styled-components; done; echo \"Cleared nested packages/**/node_modules/styled-components\"",
"deploy-storybook": "build-storybook -o storybook_dist && gh-pages -d storybook_dist",
"force-package-lock-https": "find . -type f -name \"package-lock.json\" | grep -v node_modules | xargs -I % sh -c 'echo \"Replacing http->https in %\"; sed -i \"\" -e \"s/http:\\/\\//https:\\/\\//g\" %'",
"install:packages": "lerna exec -- npm install",
"postinstall": "npm run ci:packages",
"postinstall": "lerna bootstrap --ci --hoist --force-local",
"postshrinkwrap": "if test -z $CI; then \n npm run force-package-lock-https \n fi",
"prepare": "npm run build",
"publish": "node scripts/publish",
"storybook": "npm run clear_styled_components && NODE_ENV=development start-storybook -p 8080 -c .storybook",
"storybook": "NODE_ENV=development start-storybook -p 8080 -c .storybook",
"test": "npm run test:lint && npm run test:lint:css && npm run test:unit && npm run test:packages",
"test:packages": "lerna run test",
"test:lint": "eslint --ext .js,jsx,json ./packages ./scripts",
Expand Down
Loading

0 comments on commit 9a19c45

Please sign in to comment.