Update examples, update README documentation (#772)

* chore(examples): update example set-ups

* chore: update readme docs
This commit is contained in:
Eric 2021-07-29 15:51:34 -07:00 committed by GitHub
commit 0315a17d4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
97 changed files with 6778 additions and 15821 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