insomnia/package.json
James Gatz eb21506d40
️vite/esbuild (#4329)
* ️ vite

* replace webpack with esbuild in build script

* move build sr to esbuild

* esbuild send-request shim

* remove main externals

* fix lint

* remove webpack from insomnia-testing

* removes more webpack stuff

TODO after this PR: make debugging work again

* pin swagger-ui-react to version before esm change

* restore prepare script to build in bootstrap

* use default tsconfig for eslint and apply fixes

* bundle insomnia-components as cjs/esm

* makes ca_certs.ts pass linting

* builds types for insomnia-components

* improve build script for production

* skip typechecking insomnia-components

* separate package from build

* add electron to externals

* add preload bundling and fix build output

* exclude grpc/proto-loader from the bundle

* move node packages to commonjs

* don't bundle grpc since it's a node module

* fix content security error

* use vite lib mode for insomnia-components

* tidy up vite config and tsconfig options

* update package-locks

* use process.env. for static build time variables

* fix vscode debugging

Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2022-04-18 17:27:39 +02:00

90 lines
3.9 KiB
JSON

{
"name": "insomnia",
"private": true,
"version": "1.0.0",
"author": "Kong <office@konghq.com>",
"description": "Insomnia is a cross-platform REST client, built on top of Electron.",
"license": "MIT",
"repository": "https://github.com/kong/insomnia",
"bugs": {
"url": "https://github.com/kong/insomnia/issues"
},
"homepage": "https://github.com/kong/insomnia#readme",
"scripts": {
"build": "lerna run build --parallel",
"lint": "lerna run lint --stream --no-bail",
"lint:markdown": "markdownlint-cli2 \"**/*.md\" \"#**/node_modules\"",
"lint:fix": "lerna run lint:fix --stream --no-bail",
"bootstrap": "npm install && lerna bootstrap && lerna run --stream bootstrap",
"bootstrap:electron-builder": "lerna bootstrap --no-ci -- --production --no-optional",
"version": "lerna version",
"postversion": "lerna clean --yes && lerna bootstrap --no-ci --ignore-scripts -- --package-lock-only --no-audit",
"publish": "lerna publish from-package",
"clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules",
"test": "lerna run --stream --parallel test",
"inso-start": "npm start --prefix packages/insomnia-inso",
"inso-package": "npm run build:sr --prefix packages/insomnia-app && npm run package --prefix packages/insomnia-inso",
"inso-package:artifacts": "npm run artifacts --prefix packages/insomnia-inso",
"watch:app": "npm run build:main.min.js --prefix packages/insomnia-app && npm run start:dev-server --prefix packages/insomnia-app",
"app-start": "npm start --prefix packages/insomnia-app",
"app-build": "npm run build --prefix packages/insomnia-app",
"app-package": "npm run package --prefix packages/insomnia-app",
"app-bump-version": "npm run bump-version --prefix packages/insomnia-app",
"preinstall": "node ./scripts/check-version.js",
"test:smoke:dev": "npm run test:dev --prefix packages/insomnia-smoke-test",
"test:smoke:build": "npm run test:build --prefix packages/insomnia-smoke-test",
"test:smoke:package": "npm run test:package --prefix packages/insomnia-smoke-test",
"test:smoke:cli": "npm run test:cli --prefix packages/insomnia-smoke-test",
"hard-reset": "npm run clean && npm run bootstrap && npm run app-start",
"type-check": "lerna run type-check",
"changelog-image": "ts-node ./scripts/changelog-image/changelog-image.ts",
"dev": "npm start --prefix packages/insomnia-app"
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-decorators": "^7.4.0",
"@babel/preset-env": "^7.4.3",
"@babel/preset-react": "^7.9.4",
"@jest/types": "^26.6.2",
"@types/chai": "^4.2.15",
"@types/eslint": "8.4.1",
"@types/jest": "^26.0.23",
"@types/node": "^17.0.21",
"@types/rimraf": "^3.0.0",
"@types/svgo": "^2.6.3",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"babel-loader": "^8.0.5",
"babel-plugin-inline-react-svg": "^1.1.0",
"eslint": "^8.8.0",
"eslint-config-helpers": "^1.1.0",
"eslint-plugin-filenames": "^1.3.2",
"eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.0.0",
"eslint-plugin-jest-formatting": "^3.1.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-standard": "^5.0.0",
"jest": "^26.6.3",
"lerna": "^4.0.0",
"markdownlint-cli2": "^0.2.0",
"rimraf": "^3.0.2",
"svg-text-to-path": "^1.1.2",
"svgo": "^2.8.0",
"ts-jest": "^26.5.6",
"ts-node": "^10.7.0",
"tsimportlib": "^0.0.3",
"type-fest": "^2.12.0",
"typescript": "^4.5.5"
},
"dependencies": {
"immer": "^9.0.6"
}
}