Skip to content
Snippets Groups Projects
Commit c4752ac8 authored by Matt Grau's avatar Matt Grau
Browse files

add parcel bundler

parent fd188083
No related branches found
No related tags found
No related merge requests found
...@@ -2,4 +2,11 @@ ...@@ -2,4 +2,11 @@
*venv *venv
# ignore pycache # ignore pycache
*__pycache__ *__pycache__
\ No newline at end of file
# ignore node modules
*node_modules
# ignore parcel dist and cache
*dist
.cache
\ No newline at end of file
...@@ -37,4 +37,8 @@ pip install flask ...@@ -37,4 +37,8 @@ pip install flask
mkdir frontend mkdir frontend
cd frontend cd frontend
npm init npm init
```
```bash
npm install parcel-bundler
``` ```
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div id="root"></div>
<script src='src/index.js'></script>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
...@@ -4,8 +4,12 @@ ...@@ -4,8 +4,12 @@
"description": "TIQI JS tutorial frontend", "description": "TIQI JS tutorial frontend",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "parcel start index.html",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Matt Grau", "author": "Matt Grau",
"license": "ISC" "license": "ISC",
} "dependencies": {
"parcel-bundler": "^1.12.5"
}
}
\ No newline at end of file
console.log('Hello World!')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment