Skip to content

Commit

Permalink
feat: update searchbox version to lastest
Browse files Browse the repository at this point in the history
  • Loading branch information
raiindev committed Oct 4, 2024
1 parent 0283a96 commit dcbe80a
Show file tree
Hide file tree
Showing 54 changed files with 790 additions and 3,554 deletions.
6 changes: 0 additions & 6 deletions packages/plugin-docusaurus/.editorconfig

This file was deleted.

45 changes: 0 additions & 45 deletions packages/plugin-docusaurus/.eslintrc.cjs

This file was deleted.

59 changes: 0 additions & 59 deletions packages/plugin-docusaurus/.swcrc

This file was deleted.

98 changes: 28 additions & 70 deletions packages/plugin-docusaurus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,93 +5,51 @@
"keywords": ["orama", "docusaurus"],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/orama/plugin-docusaurus/issues"
"url": "https://github.com/orama/orama/issues"
},
"homepage": "https://github.com/orama/plugin-docusaurus#readme",
"homepage": "https://docs.oramasearch.com/open-source/plugins/plugin-docusaurus.html",
"repository": {
"type": "git",
"url": "git+https://github.com/orama/plugin-docusaurus.git"
"url": "git+https://github.com/orama/orama.git"
},
"type": "module",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/server/index.d.ts",
"import": "./dist/server/index.js",
"require": "./dist/server/commonjs.cjs"
},
"./types": {
"types": "./dist/server/types.d.ts",
"import": "./dist/server/types.js",
"require": "./dist/server/types.cjs"
}
},
"types": "./dist/server/index.d.ts",
"files": ["dist"],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"dev": "swc --delete-dir-on-start -s -w --extensions .ts,.tsx,.cts -d dist src",
"prebuild": "npm run lint",
"build": "swc --delete-dir-on-start --extensions .ts,.tsx,.cts -d dist src",
"build": "tsc",
"postbuild": "sh scripts/postbuild.sh",
"pretest": "node ../../scripts/test-pack.mjs plugin-docusaurus",
"test": "echo \"Docusaurus v2 will become unmaintained soon. Use Docusaurus v3.\" # node --loader=tsx --no-warnings=loader --test ./test/integration.ts | tap-mocha-reporter spec",
"format": "prettier -w src",
"lint": "eslint src --ext .js,.ts,.tsx,.cts",
"changelog": "auto-changelog -p"
"watch": "tsc --watch"
},
"dependencies": {
"@algolia/autocomplete-js": "^1.7.2",
"@algolia/autocomplete-theme-classic": "^1.7.3",
"@docusaurus/theme-common": "^2.4.3",
"@docusaurus/plugin-content-docs": "^2.4.3",
"@orama/highlight": "^0.1.2",
"@orama/orama": "workspace:*",
"@orama/plugin-analytics": "workspace:*",
"@orama/plugin-parsedoc": "workspace:*",
"@orama/highlight": "^0.1.5",
"@orama/orama": "^2.1.0",
"@orama/react-components": "^0.0.25",
"@orama/plugin-analytics": "^2.1.0",
"@orama/plugin-parsedoc": "^2.1.0",
"@orama/switch": "^2.1.0",
"@oramacloud/client": "^1.0.14",
"github-slugger": "^2.0.0",
"gray-matter": "^4.0.3",
"jsdom": "^23.2.0",
"markdown-it": "^13.0.2",
"pako": "^2.1.0",
"vfile-message": "^3.1.3"
"tslib": "^2.6.2",
"vfile-message": "^3.1.4"
},
"devDependencies": {
"@commitlint/cli": "^17.4.0",
"@commitlint/config-conventional": "^17.4.0",
"@docusaurus/module-type-aliases": "^2.4.3",
"@docusaurus/types": "^2.4.3",
"@swc/cli": "^0.1.59",
"@swc/core": "^1.3.27",
"@types/node": "^18.11.17",
"@types/pako": "^2.0.0",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"eslint": "^8.48.0",
"eslint-config-react": "^1.1.7",
"eslint-config-react-app": "^7.0.1",
"eslint-config-standard": "^17.0.0",
"eslint-config-standard-with-typescript": "^39.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.0.2",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tap-mocha-reporter": "^5.0.3",
"tsx": "^3.12.2",
"typescript": "^5.0.0",
"webpack": "^5.75.0"
"@types/jsdom": "^21.1.6",
"@types/markdown-it": "^13.0.7",
"@types/pako": "^2.0.3"
},
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2"
"@docusaurus/plugin-content-docs": "2.x",
"@docusaurus/theme-common": "2.x",
"@docusaurus/types": "2.x",
"@docusaurus/utils": "2.x",
"react": "17.x",
"react-dom": "17.x"
},
"publishConfig": {
"access": "public"
},
"lint-staged": {
"*.{ts, tsx}": "eslint ./src --cache --fix"
}
}
8 changes: 0 additions & 8 deletions packages/plugin-docusaurus/prettier.config.cjs

This file was deleted.

15 changes: 2 additions & 13 deletions packages/plugin-docusaurus/scripts/postbuild.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
#!/bin/bash

set -x -e

# tsc -p . --emitDeclarationOnly
# tsc -p tsconfig.cjs.json --emitDeclarationOnly
# tsc --module CommonJS --outDir dist/server/cjs/ src/server/types.ts

mv dist/server/commonjs.js dist/server/commonjs.cjs
mv dist/server/commonjs.js.map dist/server/commonjs.cjs.map
mv dist/server/cjs/types.js dist/server/types.cjs && rm -r dist/server/cjs

cp -a src/translationMessages dist/translationMessages
cp src/client/theme/SearchBar/*.css dist/client/theme/SearchBar
cp src/client/theme/SearchBarFooter/*.css dist/client/theme/SearchBarFooter
mkdir -p dist/theme/SearchBar
cp src/theme/SearchBar/*.css dist/theme/SearchBar
Loading

0 comments on commit dcbe80a

Please sign in to comment.