-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
61 lines (61 loc) · 1.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"name": "react-world-flags",
"version": "1.6.0",
"description": "SVG flags of the world for react",
"main": "dist/react-world-flags.js",
"jest": {
"moduleNameMapper": {
"\\.(svg)$": "<rootDir>/src/__mocks__/fileMock.js"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/smucode/react-world-flags.git"
},
"keywords": [
"react",
"reactjs",
"world",
"flag",
"flags",
"svg"
],
"author": "SMU",
"license": "MIT",
"bugs": {
"url": "https://github.com/smucode/react-world-flags/issues"
},
"homepage": "https://github.com/smucode/react-world-flags#readme",
"dependencies": {
"svg-country-flags": "^1.2.10",
"svgo": "^3.0.2",
"world-countries": "^5.0.0"
},
"peerDependencies": {
"react": ">=0.14"
},
"devDependencies": {
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.0",
"@babel/node": "^7.22.19",
"@babel/preset-env": "^7.22.20",
"@babel/preset-react": "^7.22.15",
"babel-loader": "^9.1.3",
"jest": "^29.7.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"react-test-renderer": "^18.1.0",
"svg-url-loader": "^8.0.0",
"webpack": "^5.88.2",
"webpack-cli": "^5.1.4"
},
"scripts": {
"test": "jest",
"build": "webpack",
"gen": "babel-node scripts/genFlagExports.js",
"build-demo": "webpack --config docs/webpack.config.js",
"pre-publish": "npm run compress && npm run gen && npm run test && npm run build && npm run build-demo",
"compress": "rm -f ./src/svgs/* && npx svgo --multipass -f node_modules/svg-country-flags/svg/ ./src/svgs && (cd ./src/svgs && sed -i -e \"s/-inkscape-font-specification:'Narkisim, Normal'//g\" *) && cp node_modules/svg-country-flags/svg/si.svg ./src/svgs",
"nocompress": "cp node_modules/svg-country-flags/svg/*.svg ./src/svgs"
}
}