mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 15:31:48 +00:00
* stub method to avoid unhandled exception in test from pretendRemote
* less flaky ActionItem test that checks condition before snapshotting
* rename *.{spec => test}.ts
This simplifies the test filename pattern.
* rename top-level tsconfig.all.json to tsconfig.json
* upgrade to pnpm 8.9.2
* avoid usage of jsdom.reconfigure
* more robust linkClickHandler.test.tsx
* make getBundleSizeStats.test.ts not need to use mocks
* extract createBarrier() to @sourcegraph/testing
* more robust fromObservableQuery.test.ts
* avoid jsdom.reconfigure
* do not attempt to request assets from assets.gitlab-static.net
fastmod -F assets.gitlab-static.net example.com client/browser/src/
* avoid "incorrect casing" for mocked React components
* use createBarrier
* fix SurveyToast mock GraphQL query
* fix classNames typo
49 lines
2.8 KiB
JSON
49 lines
2.8 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@sourcegraph/browser",
|
|
"version": "1.0.0",
|
|
"license": "Apache-2.0",
|
|
"scripts": {
|
|
"storybook": "STORIES_GLOB='client/browser/src/**/*.story.tsx' pnpm --filter @sourcegraph/storybook run start",
|
|
"build-inline-extensions": "node scripts/build-inline-extensions",
|
|
"predev": "pnpm run build-inline-extensions",
|
|
"dev": "pnpm run predev && NODE_ENV=development NODE_OPTIONS=--max_old_space_size=8192 ts-node-transpile-only scripts/development",
|
|
"dev:no-reload": "AUTO_RELOAD=false pnpm run dev",
|
|
"dev:firefox": "if type web-ext 2>/dev/null; then pnpm dev & web-ext run --source-dir ./build/firefox; else echo 'web-ext not found. Install it with: pnpm global add web-ext'; exit 1; fi",
|
|
"dev:chrome": "TARGETS=chrome pnpm run dev",
|
|
"dev:edge": "TARGETS=edge pnpm run dev",
|
|
"dev:safari": "TARGETS=safari pnpm run build",
|
|
"prebuild": "pnpm -w run generate && pnpm run build-inline-extensions",
|
|
"build": "pnpm run prebuild && NODE_ENV=production NODE_OPTIONS=--max_old_space_size=8192 ts-node-transpile-only scripts/build",
|
|
"release": "pnpm release:chrome",
|
|
"release:chrome": "pnpm webstore upload --auto-publish --source build/bundles/chrome-bundle.zip --extension-id dgjhfomjieaadpoljlnidmbgkdffpack --client-id $GOOGLE_CLIENT_ID --client-secret $GOOGLE_CLIENT_SECRET --refresh-token $GOOGLE_REFRESH_TOKEN",
|
|
"release:firefox": "./scripts/release-firefox.sh",
|
|
"release:npm": "TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" ts-node-transpile-only ./scripts/publish-npm.ts",
|
|
"lint": "eslint && stylelint",
|
|
"lint:js": "eslint --cache '**/*.[jt]s?(x)'",
|
|
"lint:css": "stylelint 'src/**/*.scss'",
|
|
"clean": "rm -rf build/ dist/ *.zip *.xpi .checksum",
|
|
"test": "jest --testPathIgnorePatterns end-to-end --testPathIgnorePatterns integration",
|
|
"test-e2e": "TS_NODE_PROJECT=src/end-to-end/tsconfig.json mocha './src/end-to-end/**/*.test.ts'",
|
|
"run-integration": "TS_NODE_PROJECT=src/integration/tsconfig.json SOURCEGRAPH_BASE_URL=https://sourcegraph.com mocha --parallel=${CI:-\"false\"} --retries=2 ./src/integration/**/*.test.ts",
|
|
"test-integration": "node scripts/test-integration",
|
|
"record-integration": "node scripts/record-integration",
|
|
"create-source-zip": "node scripts/create-source-zip"
|
|
},
|
|
"devDependencies": {
|
|
"@sourcegraph/build-config": "workspace:*",
|
|
"@sourcegraph/extension-api-types": "workspace:*",
|
|
"@sourcegraph/testing": "workspace:*",
|
|
"sourcegraph": "workspace:*"
|
|
},
|
|
"dependencies": {
|
|
"@sourcegraph/common": "workspace:*",
|
|
"@sourcegraph/shared": "workspace:*",
|
|
"@sourcegraph/wildcard": "workspace:*",
|
|
"@sourcegraph/branded": "workspace:*",
|
|
"@sourcegraph/http-client": "workspace:*",
|
|
"@sourcegraph/client-api": "workspace:*",
|
|
"@sourcegraph/codeintellify": "workspace:*"
|
|
}
|
|
}
|