Skip to content

Upgrade dependencies and fix linting issues. #105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions example/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
"type": "module",
"author": "Exceptionless",
"license": "Apache-2.0",
"scripts": {
"build": "",
"watch": "",
"test": ""
},
"publishConfig": {
"access": "restricted"
},
Expand Down
5 changes: 1 addition & 4 deletions example/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,14 @@
"author": "Exceptionless",
"license": "Apache-2.0",
"scripts": {
"build": "",
"watch": "",
"test": "",
"dev": "nodemon app.js",
"start": "node app.js"
},
"publishConfig": {
"access": "restricted"
},
"dependencies": {
"express": "4.17.1",
"express": "^4.18.2",
"@exceptionless/node": "2.0.0-dev"
}
}
18 changes: 8 additions & 10 deletions example/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "",
"eject": "react-scripts eject",
"watch": ""
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
Expand All @@ -28,16 +26,16 @@
]
},
"devDependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^12.0.0",
"@testing-library/user-event": "^13.2.1",
"react-scripts": "4.0.3"
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^14.4.3",
"react-scripts": "^5.0.1"
},
"dependencies": {
"@exceptionless/react": "2.0.0-dev",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"web-vitals": "^2.1.0"
"react": "^18.2.0",
"react-dom": "^18.2.0",
"web-vitals": "^3.1.1"
},
"publishConfig": {
"access": "restricted"
Expand Down
10 changes: 6 additions & 4 deletions example/react/src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

ReactDOM.render(
const container = document.getElementById('root');
const root = createRoot(container);

root.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
Expand Down
5 changes: 5 additions & 0 deletions example/svelte-kit/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions example/svelte-kit/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
14 changes: 7 additions & 7 deletions example/svelte-kit/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# create-svelte

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte);
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

## Creating a project

If you're seeing this, you've probably already done this step. Congrats!

```bash
# create a new project in the current directory
npm init svelte@next
npm create svelte@latest

# create a new project in my-app
npm init svelte@next my-app
npm create svelte@latest my-app
```

> Note: the `@next` is temporary

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
Expand All @@ -29,10 +27,12 @@ npm run dev -- --open

## Building

Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then:
To create a production version of your app:

```bash
npm run build
```

> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production.
You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
21 changes: 14 additions & 7 deletions example/svelte-kit/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"]
}
},
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
}
// Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias and https://kit.svelte.dev/docs/configuration#files
//
// If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
// from the referenced tsconfig.json - TypeScript does not merge them in
}
21 changes: 15 additions & 6 deletions example/svelte-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "svelte-kit dev",
"build": "svelte-kit build",
"preview": "svelte-kit preview"
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch"
},
"dependencies": {
"@exceptionless/browser": "2.0.0-dev"
},
"devDependencies": {
"@sveltejs/kit": "next",
"svelte": "^3.42.6"
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.5.6",
"svelte": "^3.54.0",
"svelte-check": "^3.0.1",
"typescript": "^4.9.3",
"vite": "^4.0.0"
},
"type": "module"
"type": "module",
"publishConfig": {
"access": "restricted"
}
}
12 changes: 12 additions & 0 deletions example/svelte-kit/src/app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface Platform {}
}
}

export {};
10 changes: 5 additions & 5 deletions example/svelte-kit/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%svelte.head%
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
%sveltekit.head%
</head>
<body>
<div id="svelte">%svelte.body%</div>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
1 change: 0 additions & 1 deletion example/svelte-kit/src/global.d.ts

This file was deleted.

9 changes: 5 additions & 4 deletions example/svelte-kit/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import adapter from '@sveltejs/adapter-auto';

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte',
}
kit: {
adapter: adapter()
}
};

export default config;
6 changes: 6 additions & 0 deletions example/svelte-kit/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';

export default defineConfig({
plugins: [sveltekit()]
});
10 changes: 4 additions & 6 deletions example/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,16 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"watch": "",
"test": "",
"serve": "vite preview"
},
"dependencies": {
"vue": "^3.2.11",
"vue": "^3.2.47",
"@exceptionless/vue": "2.0.0-dev"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.6.2",
"@vue/compiler-sfc": "^3.2.11",
"vite": "^2.5.6"
"@vitejs/plugin-vue": "^4.0.0",
"@vue/compiler-sfc": "^3.2.47",
"vite": "^4.1.1"
},
"publishConfig": {
"access": "restricted"
Expand Down
Loading