@ant-design/icons
Advanced tools
Comparing version 0.1.2-alpha.1 to 0.1.2-alpha.2
{ | ||
"name": "@ant-design/icons", | ||
"version": "0.1.2-alpha.1", | ||
"version": "0.1.2-alpha.2", | ||
"description": "Ant Design Icons", | ||
@@ -12,2 +12,7 @@ "module": "es/index.js", | ||
], | ||
"files": [ | ||
"es", | ||
"lib", | ||
"README.md" | ||
], | ||
"license": "MIT", | ||
@@ -21,27 +26,54 @@ "dependencies": {}, | ||
"test": "npm run test:unit", | ||
"test:unit": "cross-env TS_NODE_PROJECT=test/tsconfig.json mocha --require espower-typescript/guess test/**/*.ts -t 5000" | ||
"test:unit": "jest", | ||
"start": "rimraf _site && cross-env NODE_ENV=development bisheng start -c ./site/bisheng.config.js" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0-beta.55", | ||
"@svgr/core": "^2.1.1", | ||
"@types/globby": "^8.0.0", | ||
"@types/jest": "^23.3.1", | ||
"@types/lodash": "^4.14.115", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.5.5", | ||
"@types/parse5": "^5.0.0", | ||
"@types/react": "^16.4.7", | ||
"@types/rimraf": "^2.0.2", | ||
"@types/svgo": "^1.0.1", | ||
"babel-core": "^6.26.3", | ||
"babel-jest": "^23.4.2", | ||
"bisheng": "^0.28.0", | ||
"chalk": "^2.4.1", | ||
"cross-env": "^5.2.0", | ||
"espower-typescript": "^9.0.0", | ||
"globby": "^8.0.1", | ||
"jest": "^23.4.2", | ||
"lodash": "^4.17.10", | ||
"mocha": "^5.2.0", | ||
"parse5": "^5.0.0", | ||
"power-assert": "^1.6.0", | ||
"react": "^16.4.2", | ||
"rimraf": "^2.6.2", | ||
"svgo": "^1.0.5", | ||
"ts-node": "^7.0.0", | ||
"ts-jest": "^23.1.0", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.0.1" | ||
"typescript": "^3.0.1", | ||
"webpack": "3.x", | ||
"webpackbar": "^2.6.1" | ||
}, | ||
"jest": { | ||
"transform": { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", | ||
"moduleFileExtensions": [ | ||
"ts", | ||
"tsx", | ||
"js", | ||
"jsx", | ||
"json", | ||
"node" | ||
], | ||
"globals": { | ||
"ts-jest": { | ||
"tsConfigFile": "./test/tsconfig.json" | ||
} | ||
}, | ||
"testURL": "http://localhost" | ||
} | ||
} |
@@ -18,8 +18,6 @@ # Ant Design Icons | ||
- React: See [@ant-design/icons-react](./packages/icons-react) | ||
- Vue: WIP | ||
- Angular: WIP | ||
## Usage | ||
```ts | ||
import { Alibaba } from '@ant-design/icons/esm'; | ||
import { Alibaba } from '@ant-design/icons/es'; | ||
@@ -31,2 +29,3 @@ console.log(Alibaba); | ||
// height: 1024, | ||
// viewBox: '0 0 1024 1024', | ||
// style: '', | ||
@@ -44,9 +43,10 @@ // children: | ||
```ts | ||
interface IconDefinition extends IAbstractTree { | ||
interface IconDefinition extends AbstractTree { | ||
name: string; // kebab-case-style | ||
} | ||
interface IAbstractTree { | ||
interface AbstractTree { | ||
width: number; | ||
height: number; | ||
viewBox: string; | ||
style?: string; | ||
@@ -59,4 +59,5 @@ children: Array<{ tag: string, attrs: { [key: string]: string } }>; | ||
```bash | ||
npm run generate # generate src/svgs.ts | ||
npm run build # generate module bundle | ||
npm run generate # Generate files to ./src | ||
npm run build # Build library | ||
npm run test # Runing Test | ||
``` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
60
1258921
27
15
7710
1