@entur/icons
Advanced tools
Comparing version 0.4.5 to 0.5.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.5.0](https://bitbucket.org/enturas/design-system/compare/@entur/icons@0.4.5...@entur/icons@0.5.0) (2020-01-14) | ||
### Bug Fixes | ||
- **icons:** fix inline icon styles ([a454c62](https://bitbucket.org/enturas/design-system/commits/a454c621e87a807efa5b39605d16cc0578d49e38)) | ||
- include the "native" folder in the npm package ([02f398c](https://bitbucket.org/enturas/design-system/commits/02f398c2a4a489b79a2002cb745ae1fda077201a)) | ||
### Features | ||
- **icons:** add react-native icons ([962f1a5](https://bitbucket.org/enturas/design-system/commits/962f1a543567f5a0a7b76d6b0c53f48c81343e69)) | ||
## [0.4.5](https://bitbucket.org/enturas/design-system/compare/@entur/icons@0.4.4...@entur/icons@0.4.5) (2020-01-13) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@entur/icons", | ||
"version": "0.4.5", | ||
"version": "0.5.0", | ||
"license": "EUPL-1.2", | ||
"main": "dist/index.js", | ||
"module": "dist/icons.esm.js", | ||
"module": "dist/index.esm.js", | ||
"typings": "types/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"native", | ||
"types" | ||
@@ -21,8 +22,5 @@ ], | ||
"scripts": { | ||
"prebuild": "rimraf dist", | ||
"build": "yarn build:index && yarn build:tsdx", | ||
"build:index": "ts-node -O '{\"module\": \"commonjs\"}' bin/build-index.ts", | ||
"build:tsdx": "tsdx build", | ||
"test": "tsdx test --env=jsdom", | ||
"lint": "tsdx lint" | ||
"prebuild": "rimraf dist native tmp ", | ||
"build": "node bin/build.js && rollup -c", | ||
"postbuild": "rimraf tmp" | ||
}, | ||
@@ -34,14 +32,21 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@svgr/rollup": "^5.0.1", | ||
"@babel/core": "^7.7.7", | ||
"@babel/preset-env": "^7.7.7", | ||
"@babel/preset-react": "^7.7.4", | ||
"@rollup/plugin-node-resolve": "^7.0.0", | ||
"@svgr/core": "^5.0.1", | ||
"@svgr/plugin-jsx": "^5.0.1", | ||
"@svgr/plugin-prettier": "^5.0.1", | ||
"@svgr/plugin-svgo": "^5.0.1", | ||
"@types/fs-extra": "^8.0.0", | ||
"case": "^1.6.2", | ||
"fs-extra": "^8.1.0", | ||
"jsdom": "^15.1.1", | ||
"rimraf": "^3.0.0", | ||
"ts-node": "^8.4.1" | ||
"rollup": "^1.29.0", | ||
"rollup-plugin-babel": "^4.3.3" | ||
}, | ||
"dependencies": { | ||
"@entur/utils": "^0.2.0" | ||
"@entur/utils": "^0.2.1" | ||
}, | ||
"gitHead": "af54ee3149f8b3867555d5fdd68699821d5b8fae" | ||
"gitHead": "424f5b8ed5df86c1332f683d13a3ef59efc977ba" | ||
} |
@@ -18,5 +18,5 @@ # Icons | ||
```js | ||
import { AddIcon } from "@entur/icons"; //Import specific icon | ||
import { AddIcon } from '@entur/icons'; // Import specific icon | ||
<AddIcon/> | ||
<AddIcon />; | ||
``` | ||
@@ -30,6 +30,6 @@ | ||
If you're adding an icon, please add the SVG file to the appropriate `svg/` folder. Make sure you give it a unique name. | ||
If you're adding an icon, please add the SVG file to the appropriate `svg/` folder. Make sure you give it a unique name, and make sure it looks correct in a browser after exporting it. | ||
If you're changing an existing icon, just update the existing SVG file with the new source code. | ||
Once you're done, run `yarn build` to generate the new components. This process will take ~10-60 seconds, depending on your computer and cache status. | ||
Unlike most other packages in our design system, this one doesn't use TSDX or TypeScript. This is because TSDX doesn't support the tools we need to optimize our SVG files. Instead, we've opted for configuring Rollup directly. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
18
391961
14
9
6937
1
Updated@entur/utils@^0.2.1