Skip to content

Commit

Permalink
feat: Prepare mono repo, new SDKs (#1349)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
HazAT authored Jun 7, 2018
1 parent 90ba247 commit 6d8f2b9
Show file tree
Hide file tree
Showing 361 changed files with 16,198 additions and 152,031 deletions.
11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
34 changes: 19 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,28 @@
.DS_Store

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes
# dependencies
node_modules/

# build and test
docs/_build
docs/doctrees

build
node_modules
npm-debug.log

build/
dist/
coverage/
scratch/

*.pyc

# logs
yarn-error.log
npm-debug.log
lerna-debug.log

# ide
.idea
*.sublime-*

yarn-error.log
# misc
.DS_Store
._*
.Spotlight-V100
.Trashes

.rpt2_cache
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"printWidth": 80,
"proseWrap": "always",
"singleQuote": true,
"trailingComma": "all"
}
19 changes: 6 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,15 @@ before_install:
matrix:
include:
- env: NAME="raven-js"
install: true
addons:
chrome: stable
firefox: latest
sauce_connect: true
script:
- npm run test && if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then npm run test:ci; else exit 0; fi
- env: NAME="@sentry/core"
script: .travis/raven-js.sh
- env: NAME="packages/*/lint"
install: true
script:
- cd packages/core && yarn install && yarn test
- env: NAME="@sentry/browser"
script: .travis/lint.sh
- env: NAME="packages/*/test"
install: true
script:
- yarn link
- cd packages/core && yarn link && yarn install && yarn dist
- cd ../browser
- yarn link "@sentry/core"
- yarn link "raven-js"
- yarn install && yarn test
script: .travis/test.sh
6 changes: 6 additions & 0 deletions .travis/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -e

yarn
yarn lerna bootstrap
yarn lint
12 changes: 12 additions & 0 deletions .travis/raven-js.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e
cd packages/raven-js

npm install
npm run test

if [ "$TRAVIS_SECURE_ENV_VARS" == "true" ]; then
npm run test:ci;
else
exit 0;
fi
7 changes: 7 additions & 0 deletions .travis/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e

yarn
yarn lerna bootstrap
yarn build
yarn test
8 changes: 3 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"esbenp.prettier-vscode"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["esbenp.prettier-vscode", "eg2.tslint", "stkb.rewrap"]
}
38 changes: 20 additions & 18 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
{
"editor.tabSize": 2,
"editor.rulers": [90],
"[typescript]": {
"editor.formatOnSave": true
},
"[javascript]": {
"editor.formatOnSave": true
},
"prettier.typescriptEnable": [
"typescript",
"typescriptreact"
],
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/dist/**": true
},
"tslint.autoFixOnSave": true,
"editor.formatOnType": true,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.rulers": [80],
"editor.tabSize": 2,
"files.autoSave": "onWindowChange",
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"search.exclude": {
"**/node_modules/": true,
"**/build/": true,
"**/dist/": true
},
"typescript.tsdk": "./node_modules/typescript/lib",
"tslint.enable": false,
"[json]": {
"editor.formatOnType": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": false
}
}
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workspaces-experimental true
1 change: 0 additions & 1 deletion AUTHORS

This file was deleted.

26 changes: 22 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
Copyright (c) 2018 Sentry (https://sentry.io) and individual contributors.
All rights reserved.

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

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 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.
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

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.
2. 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.

3. Neither the name of the Sentry nor the names of its contributors may be
used to endorse or promote products derived from this software without specific
prior written permission.

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.
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

34 changes: 24 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,41 @@
<h1>Raven.js - Sentry SDK for JavaScript</h1>
</p>

[![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)
[![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)

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

## Requirements

The latest version of Raven.js is guaranteed to work with [hosted Sentry](https://sentry.io).
The latest version of Raven.js is guaranteed to work with
[hosted Sentry](https://sentry.io).

For on-premise users:

* Raven.js [3.6](https://github.com/getsentry/raven-js/releases/tag/3.6.0) requires Sentry server 8.6.0 or later
* Raven.js [2.0](https://github.com/getsentry/raven-js/releases/tag/2.0.0) requires Sentry server 8.0.0 or later
* Raven.js [3.6](https://github.com/getsentry/raven-js/releases/tag/3.6.0)
requires Sentry server 8.6.0 or later
* Raven.js [2.0](https://github.com/getsentry/raven-js/releases/tag/2.0.0)
requires Sentry server 8.0.0 or later

## Installation

To get started with Raven.js, please see [Installation](https://docs.sentry.io/clients/javascript/install/).
To get started with Raven.js, please see
[Installation](https://docs.sentry.io/clients/javascript/install/).

## Repository

> As of June 2018 this repository will slowly transition into a mono repo
> containing all related Sentry JavaScript SDKs. raven-js will still be
> available as it is but living under `packages/raven-js`. For now nothing
> should change, we will slowly updating the repo/readme as we go forward.
## Resources

* [Download](http://ravenjs.com)
* [Documentation](https://docs.sentry.io/hosted/clients/javascript/)
* [Bug Tracker](https://github.com/getsentry/raven-js/issues)
* [IRC](irc://chat.freenode.net/sentry) (chat.freenode.net, #sentry)
* Follow [@getsentry](https://twitter.com/getsentry) on Twitter for updates
* [Download](http://ravenjs.com)
* [Documentation](https://docs.sentry.io/hosted/clients/javascript/)
* [Bug Tracker](https://github.com/getsentry/raven-js/issues)
* [IRC](irc://chat.freenode.net/sentry) (chat.freenode.net, #sentry)
* Follow [@getsentry](https://twitter.com/getsentry) on Twitter for updates
Loading

0 comments on commit 6d8f2b9

Please sign in to comment.