-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
67 lines (67 loc) · 2.42 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
62
63
64
65
66
67
{
"name": "tmb-icons",
"version": "2.2.0",
"description": "Icons for TMB-Barcelona",
"main": "dist/index.js",
"files": [
"dist",
"static"
],
"scripts": {
"clean": "rm -rf src static",
"svg2png": "cd scripts && ./svg2png.js",
"svgo": "svgo -f ./svg -o ./svgo",
"mapbox": "npm run svgo && mkdir -p static/mapboxgl && spritezero static/mapboxgl/sprites svgo/ && spritezero --retina static/mapboxgl/sprites@2x svgo/ && rm -rf svgo/",
"index": "cp -r svg static/ && cd scripts && ./generate-index.js",
"react": "svgr --typescript --svg-props width='100%',height='100%' -d src/react/ svg/",
"build-static": "npm run svg2png && npm run mapbox && npm run index",
"build-react": "npm run react && webpack --env prod",
"gh-pages": "npm run build-static && gh-pages -d static",
"version": "npm run build-static && npm run build-react && auto-changelog -p && git add CHANGELOG.md",
"release": "git push --follow-tags && npm pack && gh-release -y -a *.tgz && npm run upload-to-s3",
"s3-static": "aws s3 cp static s3://cdn.tmb.cat/icons/v$npm_package_version/static/ --recursive --acl public-read",
"s3-dist": "aws s3 cp dist s3://cdn.tmb.cat/icons/v$npm_package_version/dist/ --recursive --acl public-read",
"upload-to-s3": "npm run s3-static && npm run s3-dist"
},
"auto-changelog": {
"template": "keepachangelog",
"unreleased": true,
"commitLimit": false
},
"repository": {
"type": "git",
"url": "git+https://github.com/tmb-barcelona/TMB-Icons.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/tmb-barcelona/TMB-Icons/issues"
},
"homepage": "https://tmb-barcelona.github.io/TMB-Icons/",
"devDependencies": {
"@babel/preset-env": "7.12.1",
"@babel/preset-react": "7.12.5",
"@geomatico/spritezero-cli": "2.3.0",
"@svgr/cli": "5.5.0",
"@types/react": "17.0.43",
"auto-changelog": "2.2.1",
"aws-sdk": "2.803.0",
"babel-loader": "8.2.1",
"clean-webpack-plugin": "^3.0.0",
"eslint": "7.13.0",
"eslint-loader": "4.0.2",
"eslint-plugin-react": "^7.21.5",
"gh-pages": "3.1.0",
"gh-release": "5.0.0",
"glob": "7.1.6",
"mustache": "2.3.0",
"npm-dts-webpack-plugin": "1.3.11",
"react": "16.3.0",
"svg2png": "4.1.1",
"ts-loader": "9.2.8",
"typescript": "4.6.3",
"url-loader": "4.1.1",
"webpack": "5.71.0",
"webpack-cli": "4.2.0",
"webpack-node-externals": "^2.5.2"
}
}