Skip to content
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

Add webpack support and vanilla js example #9

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/dist
/examples
*.test.js
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ out

# Nuxt.js build / generate output
.nuxt
dist
# dist

# Gatsby files
.cache/
Expand Down
1 change: 1 addition & 0 deletions dist/cumulus.bundle.js

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions examples/vanilla/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>

<body>
<script src="./node_modules/cumulus/dist/cumulus.bundle.js"></script>
<script defer>
window.cumulus.protect({
key: 'S4RCQKVuVnFMJ8Db1Ol-2',
});
setTimeout(() => {
window.cumulus.captureMessage('Hello, world!');
}, 1000);
</script>
</body>

</html>
22 changes: 22 additions & 0 deletions examples/vanilla/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "vanilla",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "lite-server"
},
"dependencies": {
"cumulus": "https://github.com/cumulus/cumulus",
"lite-server": "^2.6.1"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"eslint:recommended"
],
"rules": {}
}
}
Loading