-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bd4bd3e
Showing
17 changed files
with
8,024 additions
and
0 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,2 @@ | ||
dist | ||
node_modules |
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,30 @@ | ||
const readPackage = (pkg, context) => { | ||
if (pkg.peerDependencies && pkg.peerDependencies.react) { | ||
// fixes react error "Error: Invalid hook call." | ||
// with multiple copy of react in the node_modules folder | ||
context.log( | ||
`[${pkg.name}] Removing react as a peer dependency (https://bit.ly/3jmD8J6).` | ||
); | ||
delete pkg.peerDependencies.react; | ||
} | ||
// Same for react-dom | ||
if (pkg.peerDependencies && pkg.peerDependencies["react-dom"]) { | ||
context.log( | ||
`[${pkg.name}] Removing react-dom as a peer dependency (https://bit.ly/3jmD8J6).` | ||
); | ||
delete pkg.peerDependencies["react-dom"]; | ||
} | ||
if (pkg.peerDependencies && pkg.peerDependencies["@mdx-js/react"]) { | ||
context.log( | ||
`[${pkg.name}] Removing @mdx-js/react as a peer dependency (https://bit.ly/3jmD8J6).` | ||
); | ||
delete pkg.peerDependencies["@mdx-js/react"]; | ||
} | ||
return pkg; | ||
}; | ||
|
||
module.exports = { | ||
hooks: { | ||
readPackage, | ||
}, | ||
}; |
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,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Presentation</title> | ||
|
||
<style> | ||
html { | ||
--code-preview-background-color: #222; | ||
} | ||
</style> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link rel="icon" type="image/x-icon" href="favicon.ico" /> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="__SCRIPT__"></script> | ||
</body> | ||
</html> |
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,26 @@ | ||
{ | ||
"name": "talks", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"dev": "vite dev", | ||
"build": "vite build" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@vitejs/plugin-react-swc": "^3.4.1", | ||
"vite": "^4.5.0", | ||
"vite-plugin-react-deck": "^1.0.1" | ||
}, | ||
"dependencies": { | ||
"@gpichot/spectacle-deck": "^1.0.6", | ||
"@mdx-js/react": "^3.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"spectacle": "^10.1.6" | ||
} | ||
} |
Oops, something went wrong.