-
Notifications
You must be signed in to change notification settings - Fork 326
/
package.json
109 lines (109 loc) · 4.96 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"name": "@ubilabs/react-geosuggest",
"version": "2.16.2",
"description": "A React autosuggest for the Google Maps Places API.",
"main": "module/Geosuggest.umd.js",
"module": "module/Geosuggest.esm.js",
"types": "module/Geosuggest.d.ts",
"homepage": "https://github.com/ubilabs/react-geosuggest",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/ubilabs/react-geosuggest.git"
},
"bugs": {
"url": "https://github.com/ubilabs/react-geosuggest/issues"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
},
"dependencies": {
"classnames": "^2.3.2",
"lodash.debounce": "^4.0.6"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.4.3",
"@testing-library/react": "^14.0.0",
"@types/chai": "^4.3.5",
"@types/classnames": "^2.3.1",
"@types/googlemaps": "^3.43.3",
"@types/jsdom": "^21.1.1",
"@types/lodash.debounce": "^4.0.7",
"@types/mocha": "^10.0.1",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@types/sinon": "^10.0.16",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
"chai": "^4.3.7",
"conventional-changelog-generator": "0.0.3",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-codegen": "^0.17.0",
"eslint-plugin-react": "^7.33.1",
"gh-pages": "^5.0.0",
"jsdom": "^22.1.0",
"light-server": "^2.9.1",
"mkdirp": "^3.0.1",
"mocha": "^10.2.0",
"nodecat": "^2.0.0",
"nodemon": "^3.0.1",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^3.0.1",
"prop-types": "^15.7.2",
"rimraf": "^5.0.1",
"rollup": "^3.27.1",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^5.3.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-typescript2": "^0.35.0",
"sinon": "^15.2.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"scripts": {
"prepublishOnly": "npm run build:module",
"lint": "eslint ./src/*.tsx ./src/*.ts ./example/src/*.tsx ./test/*.tsx ./test/*.ts ./test/fixtures/*.ts",
"pretest": "npm run js:prettier:ci && npm run lint",
"test": "nyc --include 'src/*' -e .tsx -s npm run unit-test",
"posttest": "nyc report --reporter=text --reporter=lcov --reporter=html",
"barrel": "eslint --fix src/index.ts && prettier --config ./.prettierrc.yml --write src/index.ts",
"barrel:watch": "nodemon --delay 1 -e ts,tsx --watch src -x 'npm run barrel --silent || exit 1'",
"start": "run-p barrel:watch server",
"unit-test": "mocha --exit --require ts-node/register --require ./test/test_helper.ts \"test/**/*@(.ts|.tsx)\"",
"server": "npm run prepare:example && npm run js:example && light-server -s example/dist -p 8000 -w 'src/*.tsx,src/*.ts,example/src/*.tsx,example/src/*.ts # npm run js:example' -w 'src/*.css,example/src/*.css # npm run css # reloadcss' -w 'example/src/*.html # npm run copy:assets # reload'",
"prepare:example": "rimraf example/dist && mkdirp example/dist && npm run copy:assets && npm run css",
"copy:assets": "copyfiles -f example/src/*.html example/dist && copyfiles -f example/src/*.svg example/dist",
"css": "nodecat example/src/app.css src/geosuggest.css > example/dist/app.css",
"js:example": "rollup -c rollup.example.config.mjs",
"js:prettier:ci": "prettier --config ./.prettierrc.yml --ignore-path ./.prettierignore --list-different \"**/**.{ts,tsx}\"",
"js:prettier:fix": "prettier --config ./.prettierrc.yml --ignore-path ./.prettierignore --write \"**/**.{ts,tsx}\"",
"build:module": "rimraf module && npm run barrel && cross-env NODE_ENV=production rollup -c rollup.module.config.mjs && copyfiles -f src/geosuggest.css module/",
"build:browser": "rimraf dist && rollup -c rollup.browser.config.mjs && cross-env NODE_ENV=production rollup -c rollup.browser.config.mjs",
"build:example": "npm run prepare:example && cross-env NODE_ENV=production rollup -c rollup.example.config.mjs",
"release:patch": "npm version patch -m \"chore(release): version %s\"",
"release:minor": "npm version minor -m \"chore(release): version %s\"",
"release:major": "npm version major -m \"chore(release): version %s\"",
"changelog": "conventional-changelog-generator",
"preversion": "npm test",
"version": "npm run build:browser && npm run changelog && git checkout -b chore/release-${npm_package_version} && git add .",
"postversion": "git push -u origin chore/release-${npm_package_version} && git push --tags --no-verify",
"publish:example": "gh-pages -d example/dist"
},
"readmeFilename": "README.md",
"keywords": [
"react",
"react-component",
"google",
"autosuggest",
"autocomplete",
"places"
]
}