mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 16:44:27 +01:00
d1a8f59c79
The goal is to achieve the same behavior from Insomnia which allow to format a GraphQL query using prettier (see 264177b56f/packages/insomnia/src/ui/components/editors/body/graph-ql-editor.tsx (L260-L266)
).
I moved the `prettier` deps from `devDependencies` to `dependencies` because it's now used within the application.
I was forced to import `prettier/standalone` & `prettier/parser-graphql` (as it is explained here: https://prettier.io/docs/en/browser.html) otherwise I got that error:
> Couldn't resolve parser "graphql". Parsers must be explicitly added to the standalone bundle.
100 lines
2.8 KiB
JSON
100 lines
2.8 KiB
JSON
{
|
|
"name": "@usebruno/app",
|
|
"version": "0.3.0",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "cross-env ENV=dev next dev -p 3000",
|
|
"build": "next build && next export",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"test": "jest",
|
|
"test:prettier": "prettier --check \"./src/**/*.{js,jsx,json,ts,tsx}\"",
|
|
"prettier": "prettier --write \"./src/**/*.{js,jsx,json,ts,tsx}\""
|
|
},
|
|
"dependencies": {
|
|
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
|
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
|
"@fortawesome/react-fontawesome": "^0.1.16",
|
|
"@reduxjs/toolkit": "^1.8.0",
|
|
"@tabler/icons": "^1.46.0",
|
|
"@tippyjs/react": "^4.2.6",
|
|
"@usebruno/common": "0.1.0",
|
|
"@usebruno/graphql-docs": "0.1.0",
|
|
"@usebruno/schema": "0.6.0",
|
|
"axios": "^1.5.1",
|
|
"classnames": "^2.3.1",
|
|
"codemirror": "5.65.2",
|
|
"codemirror-graphql": "1.2.5",
|
|
"cookie": "^0.6.0",
|
|
"escape-html": "^1.0.3",
|
|
"file": "^0.2.2",
|
|
"file-dialog": "^0.0.8",
|
|
"file-saver": "^2.0.5",
|
|
"formik": "^2.2.9",
|
|
"github-markdown-css": "^5.2.0",
|
|
"graphiql": "^1.5.9",
|
|
"graphql": "^16.6.0",
|
|
"graphql-request": "^3.7.0",
|
|
"httpsnippet": "^3.0.1",
|
|
"idb": "^7.0.0",
|
|
"immer": "^9.0.15",
|
|
"jsesc": "^3.0.2",
|
|
"jshint": "^2.13.6",
|
|
"json5": "^2.2.3",
|
|
"jsonlint": "^1.6.3",
|
|
"jsonpath-plus": "^7.2.0",
|
|
"know-your-http-well": "^0.5.0",
|
|
"lodash": "^4.17.21",
|
|
"markdown-it": "^13.0.2",
|
|
"mousetrap": "^1.6.5",
|
|
"nanoid": "3.3.4",
|
|
"next": "12.3.3",
|
|
"path": "^0.12.7",
|
|
"pdfjs-dist": "^3.11.174",
|
|
"platform": "^1.3.6",
|
|
"posthog-node": "^2.1.0",
|
|
"prettier": "^2.7.1",
|
|
"qs": "^6.11.0",
|
|
"query-string": "^7.0.1",
|
|
"react": "18.2.0",
|
|
"react-copy-to-clipboard": "^5.1.0",
|
|
"react-dnd": "^16.0.1",
|
|
"react-dnd-html5-backend": "^16.0.1",
|
|
"react-dom": "18.2.0",
|
|
"react-github-btn": "^1.4.0",
|
|
"react-hot-toast": "^2.4.0",
|
|
"react-inspector": "^6.0.2",
|
|
"react-pdf": "^7.5.1",
|
|
"react-redux": "^7.2.6",
|
|
"react-tooltip": "^5.5.2",
|
|
"sass": "^1.46.0",
|
|
"strip-json-comments": "^5.0.1",
|
|
"styled-components": "^5.3.3",
|
|
"system": "^2.0.1",
|
|
"url": "^0.11.3",
|
|
"xml-formatter": "^3.5.0",
|
|
"yargs-parser": "^21.1.1",
|
|
"yup": "^0.32.11"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.16.0",
|
|
"@babel/plugin-transform-spread": "^7.16.7",
|
|
"@babel/preset-env": "^7.16.4",
|
|
"@babel/preset-react": "^7.16.0",
|
|
"@babel/runtime": "^7.16.3",
|
|
"autoprefixer": "^10.4.17",
|
|
"babel-loader": "^8.2.3",
|
|
"cross-env": "^7.0.3",
|
|
"css-loader": "^6.5.1",
|
|
"file-loader": "^6.2.0",
|
|
"html-loader": "^3.0.1",
|
|
"html-webpack-plugin": "^5.5.0",
|
|
"mini-css-extract-plugin": "^2.4.5",
|
|
"postcss": "^8.4.35",
|
|
"style-loader": "^3.3.1",
|
|
"tailwindcss": "^3.4.1",
|
|
"webpack": "^5.64.4",
|
|
"webpack-cli": "^4.9.1"
|
|
}
|
|
}
|