chore(examples): update example set-ups

This commit is contained in:
Eric Y Liu 2021-07-29 15:23:37 -07:00
commit 49c5142111
97 changed files with 6670 additions and 15715 deletions

3
examples/snowpack/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
/.snowpack
/build
/node_modules

View file

@ -0,0 +1,6 @@
<script>
import "carbon-components-svelte/css/white.css";
import { Button } from "carbon-components-svelte";
</script>
<Button>Primary button</Button>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Snowpack App" />
<title>snowpack</title>
</head>
<body>
<script type="module" src="/index.js"></script>
</body>
</html>

View file

@ -0,0 +1,5 @@
import App from "./App.svelte";
const app = new App({ target: document.body });
export default app;

View file

@ -0,0 +1,16 @@
{
"private": true,
"scripts": {
"dev": "snowpack dev",
"build": "snowpack build"
},
"dependencies": {
"svelte": "^3.38.3"
},
"devDependencies": {
"@snowpack/plugin-svelte": "^3.7.0",
"carbon-components-svelte": "^0.41.0",
"carbon-preprocess-svelte": "^0.6.0",
"snowpack": "^3.8.2"
}
}

View file

@ -0,0 +1,4 @@
/** @type {import("snowpack").SnowpackUserConfig } */
module.exports = {
plugins: ["@snowpack/plugin-svelte"],
};

2950
examples/snowpack/yarn.lock Normal file

File diff suppressed because it is too large Load diff