mirror of
https://github.com/kou029w/_.git
synced 2025-01-31 06:18:07 +00:00
create parcel
This commit is contained in:
parent
c824cef177
commit
ca63a04f5c
6 changed files with 4592 additions and 0 deletions
3
parcel/.gitignore
vendored
Normal file
3
parcel/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/.parcel-cache/
|
||||||
|
/dist/
|
||||||
|
/node_modules/
|
11
parcel/package.json
Normal file
11
parcel/package.json
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"devDependencies": {
|
||||||
|
"@exampledev/new.css": "^1.1.3",
|
||||||
|
"parcel": "^2.0.0",
|
||||||
|
"preact": "^10.5.15"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "parcel src/index.html",
|
||||||
|
"build": "parcel build src/index.html"
|
||||||
|
}
|
||||||
|
}
|
10
parcel/src/index.html
Normal file
10
parcel/src/index.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="ja">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<title>ようこそ!</title>
|
||||||
|
<meta name="viewport" content="width=device-width" />
|
||||||
|
<script type="module" src="main.tsx"></script>
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
4
parcel/src/main.tsx
Normal file
4
parcel/src/main.tsx
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import "@exampledev/new.css";
|
||||||
|
import { render } from "preact";
|
||||||
|
|
||||||
|
render(<main>こんにちは!</main>, document.body);
|
13
parcel/tsconfig.json
Normal file
13
parcel/tsconfig.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"noEmit": true,
|
||||||
|
"strict": true,
|
||||||
|
"target": "esnext",
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
|
"jsx": "preserve",
|
||||||
|
"jsxImportSource": "preact"
|
||||||
|
},
|
||||||
|
"include": ["src"]
|
||||||
|
}
|
4551
parcel/yarn.lock
Normal file
4551
parcel/yarn.lock
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue