Skip to content

Commit 6d8f2b9

Browse files
authored
feat: Prepare mono repo, new SDKs (getsentry#1349)
This commit concludes our work for the new JavaScript SDKs we will ship in the future. We use lerna and every package lives in `packages`.
1 parent 90ba247 commit 6d8f2b9

File tree

361 files changed

+16198
-152031
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+16198
-152031
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[*.md]
11+
trim_trailing_whitespace = false

.gitignore

+19-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
1-
.DS_Store
2-
3-
# Thumbnails
4-
._*
5-
6-
# Files that might appear on external disk
7-
.Spotlight-V100
8-
.Trashes
1+
# dependencies
2+
node_modules/
93

4+
# build and test
105
docs/_build
116
docs/doctrees
12-
13-
build
14-
node_modules
15-
npm-debug.log
16-
7+
build/
8+
dist/
9+
coverage/
1710
scratch/
18-
1911
*.pyc
2012

13+
# logs
14+
yarn-error.log
15+
npm-debug.log
16+
lerna-debug.log
17+
18+
# ide
2119
.idea
2220
*.sublime-*
2321

24-
yarn-error.log
22+
# misc
23+
.DS_Store
24+
._*
25+
.Spotlight-V100
26+
.Trashes
27+
28+
.rpt2_cache

.gitmodules

-3
This file was deleted.

.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 80,
3+
"proseWrap": "always",
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

.travis.yml

+6-13
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,15 @@ before_install:
1717
matrix:
1818
include:
1919
- env: NAME="raven-js"
20+
install: true
2021
addons:
2122
chrome: stable
2223
firefox: latest
2324
sauce_connect: true
24-
script:
25-
- npm run test && if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then npm run test:ci; else exit 0; fi
26-
- env: NAME="@sentry/core"
25+
script: .travis/raven-js.sh
26+
- env: NAME="packages/*/lint"
2727
install: true
28-
script:
29-
- cd packages/core && yarn install && yarn test
30-
- env: NAME="@sentry/browser"
28+
script: .travis/lint.sh
29+
- env: NAME="packages/*/test"
3130
install: true
32-
script:
33-
- yarn link
34-
- cd packages/core && yarn link && yarn install && yarn dist
35-
- cd ../browser
36-
- yarn link "@sentry/core"
37-
- yarn link "raven-js"
38-
- yarn install && yarn test
31+
script: .travis/test.sh

.travis/lint.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
yarn
5+
yarn lerna bootstrap
6+
yarn lint

.travis/raven-js.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -e
3+
cd packages/raven-js
4+
5+
npm install
6+
npm run test
7+
8+
if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then
9+
npm run test:ci;
10+
else
11+
exit 0;
12+
fi

.travis/test.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
4+
yarn
5+
yarn lerna bootstrap
6+
yarn build
7+
yarn test

.vscode/extensions.json

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
// See http://go.microsoft.com/fwlink/?LinkId=827846
3-
// for the documentation about the extensions.json format
4-
"recommendations": [
5-
"esbenp.prettier-vscode"
6-
]
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
4+
"recommendations": ["esbenp.prettier-vscode", "eg2.tslint", "stkb.rewrap"]
75
}

.vscode/settings.json

+20-18
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
2-
"editor.tabSize": 2,
3-
"editor.rulers": [90],
4-
"[typescript]": {
5-
"editor.formatOnSave": true
6-
},
7-
"[javascript]": {
8-
"editor.formatOnSave": true
9-
},
10-
"prettier.typescriptEnable": [
11-
"typescript",
12-
"typescriptreact"
13-
],
14-
"search.exclude": {
15-
"**/node_modules": true,
16-
"**/bower_components": true,
17-
"**/dist/**": true
18-
},
19-
"tslint.autoFixOnSave": true,
2+
"editor.formatOnType": true,
3+
"editor.formatOnPaste": true,
4+
"editor.formatOnSave": true,
5+
"editor.rulers": [80],
6+
"editor.tabSize": 2,
7+
"files.autoSave": "onWindowChange",
8+
"files.trimTrailingWhitespace": true,
9+
"files.insertFinalNewline": true,
10+
"search.exclude": {
11+
"**/node_modules/": true,
12+
"**/build/": true,
13+
"**/dist/": true
14+
},
15+
"typescript.tsdk": "./node_modules/typescript/lib",
16+
"tslint.enable": false,
17+
"[json]": {
18+
"editor.formatOnType": false,
19+
"editor.formatOnPaste": false,
20+
"editor.formatOnSave": false
21+
}
2022
}

.yarnrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
workspaces-experimental true

AUTHORS

-1
This file was deleted.

LICENSE

+22-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,27 @@
11
Copyright (c) 2018 Sentry (https://sentry.io) and individual contributors.
22
All rights reserved.
33

4-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
56

6-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
7+
1. Redistributions of source code must retain the above copyright notice,
8+
this list of conditions and the following disclaimer.
89

9-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10+
2. Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
14+
3. Neither the name of the Sentry nor the names of its contributors may be
15+
used to endorse or promote products derived from this software without specific
16+
prior written permission.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Makefile

-20
This file was deleted.

README.md

+24-10
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,41 @@
66
<h1>Raven.js - Sentry SDK for JavaScript</h1>
77
</p>
88

9-
[![Sauce Test Status](https://saucelabs.com/buildstatus/sentryio)](https://saucelabs.com/u/sentryio) [![Build Status](https://travis-ci.org/getsentry/raven-js.svg?branch=master)](https://travis-ci.org/getsentry/raven-js) [![npm](https://img.shields.io/npm/v/raven-js.svg)](https://www.npmjs.com/package/raven-js) [![npm](https://img.shields.io/npm/dm/raven-js.svg)](https://www.npmjs.com/package/raven-js)
9+
[![Sauce Test Status](https://saucelabs.com/buildstatus/sentryio)](https://saucelabs.com/u/sentryio)
10+
[![Build Status](https://travis-ci.org/getsentry/raven-js.svg?branch=master)](https://travis-ci.org/getsentry/raven-js)
11+
[![npm](https://img.shields.io/npm/v/raven-js.svg)](https://www.npmjs.com/package/raven-js)
12+
[![npm](https://img.shields.io/npm/dm/raven-js.svg)](https://www.npmjs.com/package/raven-js)
1013

1114
[![Sauce Test Status](https://saucelabs.com/browser-matrix/sentryio.svg)](https://saucelabs.com/u/sentryio)
1215

1316
## Requirements
1417

15-
The latest version of Raven.js is guaranteed to work with [hosted Sentry](https://sentry.io).
18+
The latest version of Raven.js is guaranteed to work with
19+
[hosted Sentry](https://sentry.io).
1620

1721
For on-premise users:
1822

19-
* Raven.js [3.6](https://github.com/getsentry/raven-js/releases/tag/3.6.0) requires Sentry server 8.6.0 or later
20-
* Raven.js [2.0](https://github.com/getsentry/raven-js/releases/tag/2.0.0) requires Sentry server 8.0.0 or later
23+
* Raven.js [3.6](https://github.com/getsentry/raven-js/releases/tag/3.6.0)
24+
requires Sentry server 8.6.0 or later
25+
* Raven.js [2.0](https://github.com/getsentry/raven-js/releases/tag/2.0.0)
26+
requires Sentry server 8.0.0 or later
2127

2228
## Installation
2329

24-
To get started with Raven.js, please see [Installation](https://docs.sentry.io/clients/javascript/install/).
30+
To get started with Raven.js, please see
31+
[Installation](https://docs.sentry.io/clients/javascript/install/).
32+
33+
## Repository
34+
35+
> As of June 2018 this repository will slowly transition into a mono repo
36+
> containing all related Sentry JavaScript SDKs. raven-js will still be
37+
> available as it is but living under `packages/raven-js`. For now nothing
38+
> should change, we will slowly updating the repo/readme as we go forward.
2539
2640
## Resources
2741

28-
* [Download](http://ravenjs.com)
29-
* [Documentation](https://docs.sentry.io/hosted/clients/javascript/)
30-
* [Bug Tracker](https://github.com/getsentry/raven-js/issues)
31-
* [IRC](irc://chat.freenode.net/sentry) (chat.freenode.net, #sentry)
32-
* Follow [@getsentry](https://twitter.com/getsentry) on Twitter for updates
42+
* [Download](http://ravenjs.com)
43+
* [Documentation](https://docs.sentry.io/hosted/clients/javascript/)
44+
* [Bug Tracker](https://github.com/getsentry/raven-js/issues)
45+
* [IRC](irc://chat.freenode.net/sentry) (chat.freenode.net, #sentry)
46+
* Follow [@getsentry](https://twitter.com/getsentry) on Twitter for updates

0 commit comments

Comments
 (0)