Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
zenkers committed Mar 4, 2020
0 parents commit 6e4612e
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
dist
build
.cache
package-lock.json
yarn.lock
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html>
<head>
<link rel="stylesheet" href="/src/scss/global.scss">
</head>
<body>
<div id="app">
<h1 class="h1">This is kinda cool</h1>
<img src="/src/assets/logo.png" alt="Parcel bundling package logo."/>
</div>
<script src="/src/scripts/main.js"></script>
</body>
</html>
20 changes: 20 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "parcel-demo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "parcel index.html",
"build": "parcel build index.html",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^9.7.4",
"cssnano": "^4.1.10",
"postcss-modules": "^1.5.0",
"sass": "^1.26.2"
}
}
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Parcel poc

## Available Scripts

In the project directory, you can run:

### `npm run dev`

Runs the app in the development mode.<br />
Open [http://localhost:1234](http://localhost:1234) to view it in the browser.

### `npm run build`

Builds the app for production to the `dist` folder.<br />
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const log = (msg) => console.log(msg);
log('yeet');
21 changes: 21 additions & 0 deletions src/scss/global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
@import './headings.scss';

#app {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: Arial, Helvetica, sans-serif;
}

html {
/* testing nesting */
body {
background-color: slateblue;

img {
width: 100%;
}
}
}
8 changes: 8 additions & 0 deletions src/scss/headings.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
h1 {
font-size: 2.5rem;
line-height: 3rem;
}

.h1 {
color: lightgrey;
}

0 comments on commit 6e4612e

Please sign in to comment.