-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy parcel example from vercel/vercel (#1023)
- Loading branch information
1 parent
232821b
commit 6dc2482
Showing
7 changed files
with
1,546 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
.parcel-cache | ||
dist | ||
/.pnp | ||
.pnp.js | ||
.DS_Store | ||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
This is a vanilla web app built with [Parcel](https://parceljs.org). | ||
|
||
## Getting Started | ||
|
||
Run the dev server: | ||
|
||
```bash | ||
yarn start | ||
# or | ||
npm start | ||
``` | ||
|
||
And open [localhost:1234](http://localhost:1234) in your browser! | ||
|
||
As you make changes, you should see your app automatically update in the browser without even refreshing the page! | ||
|
||
## Learn More | ||
|
||
- [Getting started guide](https://parceljs.org/getting-started/webapp/) | ||
- [Documentation](https://parceljs.org/docs/) | ||
|
||
## Deploy Your Own | ||
|
||
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/framework-boilerplates/parcel&template=parcel) | ||
|
||
_Live Example: https://parcel-template.vercel.app_ | ||
|
||
### Deploying From Your Terminal | ||
|
||
You can deploy your new Parcel project with a single command from your terminal using [Vercel CLI](https://vercel.com/download): | ||
|
||
```shell | ||
$ vercel | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "parcel-app", | ||
"private": true, | ||
"source": "src/index.html", | ||
"scripts": { | ||
"start": "parcel", | ||
"build": "parcel build" | ||
}, | ||
"devDependencies": { | ||
"parcel": "^2.8.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>My First Parcel App</title> | ||
<link rel="stylesheet" href="styles.css" /> | ||
<script type="module" src="app.js"></script> | ||
</head> | ||
<body> | ||
<h1>Hello, Parcel!</h1> | ||
<p>This is a vanilla web app built with Parcel 2!<br>Check out the <a href="https://parceljs.org/getting-started/webapp/" target="_blank">getting started guide</a> and the <a href="https://parceljs.org/docs/" target="_blank">documentation</a> to learn more!</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
body { | ||
text-align: center; | ||
} | ||
|
||
h1 { | ||
color: hotpink; | ||
font-family: cursive; | ||
font-size: 55px; | ||
} | ||
|
||
p { | ||
font-family: Helvetica, Arial, sans-serif; | ||
line-height: 1.5em; | ||
} | ||
|
||
a { | ||
color: dodgerblue; | ||
} |
Oops, something went wrong.