|
4 | 4 | "private": false, |
5 | 5 | "description": "The search client to use MeiliSearch with InstantSearch.", |
6 | 6 | "scripts": { |
7 | | - "test": "jest", |
8 | | - "test:env": "yarn build && yarn test:env:browser && yarn test:env:nodejs && yarn test:env:esm", |
| 7 | + "cleanup": "shx rm -rf dist/", |
| 8 | + "test": "yarn build && jest", |
| 9 | + "test:all": "yarn test && yarn test:env && yarn test:playgrounds && yarn test:e2e", |
| 10 | + "test:env": "yarn build && yarn test:env:browser && yarn test:env:nodejs && yarn test:env:esm && yarn test:env:ts", |
9 | 11 | "test:env:browser": "yarn --cwd tests/env/express && yarn --cwd tests/env/express test", |
10 | 12 | "test:env:nodejs": "node tests/env/node/index.js", |
11 | 13 | "test:env:esm": "yarn --cwd tests/env/esm && yarn --cwd tests/env/esm start", |
12 | | - "test:playgrounds": "yarn build:playground:vue && yarn build:playground:react && yarn build:playground:javascript && yarn build:playground:html", |
| 14 | + "test:env:ts": "yarn --cwd tests/env/typescript-node && yarn --cwd tests/env/typescript-node start", |
| 15 | + "test:playgrounds": "yarn build:playground:vue && yarn build:playground:react && yarn build:playground:javascript && yarn build:playground:html && yarn build:playground:angular", |
13 | 16 | "build:playground:vue": "yarn --cwd ./playgrounds/vue && yarn --cwd ./playgrounds/vue build", |
14 | 17 | "build:playground:react": "yarn --cwd ./playgrounds/react && yarn --cwd ./playgrounds/react build", |
15 | 18 | "build:playground:javascript": "yarn --cwd ./playgrounds/javascript && yarn --cwd ./playgrounds/javascript build", |
16 | 19 | "build:playground:html": "yarn --cwd ./playgrounds/html && yarn --cwd ./playgrounds/html build", |
17 | | - "test:all": "yarn test && yarn test:demo", |
18 | | - "lint": "eslint --ext .js,.ts,.tsx,.vue .", |
19 | | - "lint:fix": "eslint --ext .js,.ts,.tsx,.vue --fix .", |
20 | | - "build": "rollup -c rollup.config.js && rollup --environment NODE_ENV:production -c rollup.config.js ", |
| 20 | + "build:playground:angular": "yarn --cwd ./playgrounds/angular && yarn --cwd ./playgrounds/angular build", |
21 | 21 | "playground:vue": "yarn --cwd ./playgrounds/vue && yarn --cwd ./playgrounds/vue serve", |
22 | 22 | "playground:react": "yarn --cwd ./playgrounds/react && yarn --cwd ./playgrounds/react start", |
23 | 23 | "playground:javascript": "yarn --cwd ./playgrounds/javascript && yarn --cwd ./playgrounds/javascript start", |
24 | | - "playground:html": "yarn --cwd ./playgrounds/html && yarn --cwd ./playgrounds/html start" |
| 24 | + "playground:html": "yarn --cwd ./playgrounds/html && yarn --cwd ./playgrounds/html start", |
| 25 | + "playground:angular": "yarn --cwd ./playgrounds/angular && yarn --cwd ./playgrounds/angular start", |
| 26 | + "test:e2e": "yarn e2e:angular", |
| 27 | + "e2e:angular": "yarn --cwd ./playgrounds/angular && yarn --cwd ./playgrounds/angular e2e", |
| 28 | + "postbuild": "yarn typingsheader", |
| 29 | + "typingsheader": "node scripts/build.js", |
| 30 | + "build": "yarn cleanup && rollup -c rollup.config.js && rollup --environment NODE_ENV:production -c rollup.config.js ", |
| 31 | + "dev": "rollup -c rollup.config.js --watch", |
| 32 | + "lint": "eslint --ext .js,.ts,.tsx,.vue .", |
| 33 | + "lint:fix": "eslint --ext .js,.ts,.tsx,.vue --fix ." |
25 | 34 | }, |
26 | 35 | "main": "./dist/instant-meilisearch.umd.js", |
27 | 36 | "module": "./dist/instant-meilisearch.esm.js", |
28 | 37 | "browser": "./dist/instant-meilisearch.umd.js", |
29 | 38 | "cjs": "./dist/instant-meilisearch.cjs.js", |
| 39 | + "source": "src/index.ts", |
| 40 | + "typings": "./dist/types/index.d.ts", |
| 41 | + "types": "./dist/types/index.d.ts", |
| 42 | + "sideEffects": false, |
| 43 | + "bugs": { |
| 44 | + "url": "https://github.com/meilisearch/instant-meilisearch/issues" |
| 45 | + }, |
30 | 46 | "files": [ |
31 | 47 | "dist", |
32 | 48 | "src", |
|
48 | 64 | }, |
49 | 65 | "devDependencies": { |
50 | 66 | "@babel/cli": "^7.10.5", |
51 | | - "@babel/core": "^7.0.0", |
| 67 | + "@babel/core": "^7.0.0-0", |
52 | 68 | "@babel/preset-env": "^7.10.4", |
53 | 69 | "@rollup/plugin-commonjs": "^17.1.0", |
54 | 70 | "@rollup/plugin-node-resolve": "^11.0.0", |
55 | 71 | "@typescript-eslint/eslint-plugin": "^4.14.0", |
56 | 72 | "@typescript-eslint/parser": "^4.14.0", |
| 73 | + "@vue/eslint-config-typescript": "^7.0.0", |
| 74 | + "@vue/eslint-plugin": "^4.2.0", |
57 | 75 | "babel-eslint": "^10.1.0", |
58 | 76 | "babel-jest": "^26.1.0", |
59 | 77 | "cssnano": "^4.1.10", |
60 | 78 | "eslint": "^7.19.0", |
61 | 79 | "eslint-config-prettier": "^7.2.0", |
62 | | - "eslint-config-react-app": "^6.0.0", |
63 | 80 | "eslint-config-standard": "^16.0.0", |
64 | 81 | "eslint-plugin-flowtype": "^5.2.0", |
65 | 82 | "eslint-plugin-import": "^2.22.0", |
66 | 83 | "eslint-plugin-jest": "^24.0.0", |
| 84 | + "eslint-plugin-jsdoc": "^30.7.7", |
67 | 85 | "eslint-plugin-jsx-a11y": "^6.4.1", |
68 | 86 | "eslint-plugin-node": "^11.1.0", |
69 | 87 | "eslint-plugin-prettier": "^3.1.4", |
70 | 88 | "eslint-plugin-promise": "^4.2.1", |
71 | | - "eslint-plugin-react": "^7.21.5", |
| 89 | + "eslint-plugin-react": "^7.22.0", |
72 | 90 | "eslint-plugin-react-hooks": "^4.2.0", |
73 | 91 | "eslint-plugin-standard": "^5.0.0", |
74 | 92 | "eslint-plugin-vue": "^7.5.0", |
75 | | - "jest": "^26.1.0", |
| 93 | + "instantsearch.js": "^4.14.0", |
| 94 | + "jest": "^26.6.3", |
| 95 | + "jest-environment-jsdom": "25.5", |
76 | 96 | "jest-watch-typeahead": "^0.6.0", |
77 | 97 | "prettier": "^2.0.0", |
78 | 98 | "regenerator-runtime": "^0.13.7", |
79 | 99 | "rollup": "^2.38.0", |
80 | 100 | "rollup-plugin-babel": "^4.4.0", |
81 | 101 | "rollup-plugin-terser": "^7.0.0", |
| 102 | + "rollup-plugin-typescript2": "^0.29.0", |
| 103 | + "shx": "^0.3.3", |
| 104 | + "ts-jest": "^26.4.4", |
82 | 105 | "typescript": "^4.0.0" |
83 | 106 | } |
84 | 107 | } |
0 commit comments