This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: prep repo for move to @sentry-javascript (#227)
* esm is unused * tsconfig port * ref: output to build * ref: build ts * ref: fix linter errors * cleanup output * fix lint error when deleting property * copy binary to correct outdir * use yarn * swap npm run for yarn * install and use yarn in CI workflows * install prod deps only * drop node 14 * build with node 20 * downgrade ts to match sentry repo * install dev dep for test * test python latest * test python latest * install devdeps when building * remove node 14 from expected precompile binaries * output to lib because node-gyp doesnt allow configurable outdir * fix jsdoc comments * fix binary dir * revert optional chaining * bundle test should import from lib * remove another nullish coalescing * fix * build w/o typescript * drop modules after install * install prod deps to run * rename demo app build file * fix dep install
- Loading branch information
Showing
54 changed files
with
6,337 additions
and
8,943 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
es6: true, | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
}, | ||
rules: { | ||
'@sentry-internal/sdk/no-optional-chaining': 'off', | ||
'@sentry-internal/sdk/no-nullish-coalescing': 'off', | ||
'@sentry-internal/sdk/no-unsupported-es6-methods': 'off', | ||
'@sentry-internal/sdk/no-class-field-initializers': 'off', | ||
}, | ||
extends: ['@sentry-internal/sdk/src/base'], | ||
ignorePatterns: [ | ||
'coverage/**', | ||
'build/**', | ||
'lib/**', | ||
'dist/**', | ||
'cjs/**', | ||
'esm/**', | ||
'examples/**', | ||
'test/manual/**', | ||
'benchmarks/**', | ||
'playground/**', | ||
'demo_app/**', | ||
'test-binaries.entry.js', | ||
'jest.config.ts' | ||
], | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx', '*.d.ts'], | ||
parserOptions: { | ||
project: ['tsconfig.json'], | ||
}, | ||
}, | ||
{ | ||
files: ['test/**/*.ts', 'test/**/*.tsx'], | ||
parserOptions: { | ||
project: ['tsconfig.test.json'], | ||
}, | ||
}, | ||
{ | ||
files: ['jest/**/*.ts', 'scripts/**/*.ts'], | ||
parserOptions: { | ||
project: ['tsconfig.dev.json'], | ||
}, | ||
}, | ||
{ | ||
files: ['*.tsx'], | ||
rules: { | ||
// Turn off jsdoc on tsx files until jsdoc is fixed for tsx files | ||
// See: https://github.com/getsentry/sentry-javascript/issues/3871 | ||
'jsdoc/require-jsdoc': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['scenarios/**', 'dev-packages/rollup-utils/**'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
}, | ||
rules: { | ||
'no-console': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,20 +9,20 @@ jobs: | |
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
- run: npm ci | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- run: yarn install --frozen-lockfile | ||
- run: | | ||
git config clangFormat.binary node_modules/.bin/clang-format | ||
git config clangFormat.style file | ||
npm run lint | ||
yarn lint | ||
build-test-matrix: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, windows-2019, ubuntu-latest] | ||
node-version: [14.x, 16.x, 18.x, 20.x] | ||
node-version: [16.x, 18.x, 20.x] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
@@ -33,13 +33,13 @@ jobs: | |
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- run: npm run clean | ||
- run: yarn clean | ||
|
||
- name: Setup windows build tools | ||
uses: microsoft/[email protected] | ||
if: ${{ runner.os == 'Windows' }} | ||
|
||
- run: npm install | ||
- run: npm run build:configure | ||
- run: npm run build | ||
- run: npm run test --silent | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build:configure | ||
- run: yarn build | ||
- run: yarn test --silent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.