Skip to content

Commit 9f24bf9

Browse files
12 - Using Parceljs
1 parent 3ed3ac1 commit 9f24bf9

File tree

5 files changed

+5276
-1
lines changed

5 files changed

+5276
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
gui/
2+
13
# Byte-compiled / optimized / DLL files
24
__pycache__/
35
*.py[cod]

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<link rel='stylesheet' href='index.scss'/>
5+
</head>
6+
<body>
7+
<h1>Hello world</h1>
8+
<div id='app'></div>
9+
<script src='index.js'></script>
10+
</body>
11+
</html>

index.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body {
2+
color: red !important;
3+
}

package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,15 @@
22
"name": "sockets",
33
"version": "1.0.0",
44
"main": "index.js",
5+
"scripts": {
6+
"start": "parcel serve index.html -d gui",
7+
"build": "parcel build index.html --public-url . -d dist"
8+
},
59
"repository": "https://github.com/codingforentrepreneurs/Websockets-from-Scratch-with-Python-JavaScript",
610
"author": "CFE <hello@teamcfe.com>",
7-
"license": "MIT"
11+
"license": "MIT",
12+
"devDependencies": {
13+
"parcel-bundler": "^1.12.4",
14+
"sass": "^1.26.10"
15+
}
816
}

0 commit comments

Comments
 (0)