Skip to content

Commit

Permalink
add some useful file and format
Browse files Browse the repository at this point in the history
  • Loading branch information
linkgod committed Jun 30, 2020
1 parent 54e38e6 commit fe8c6b4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 16 deletions.
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# editorconfig.org
# https://github.com/editorconfig/editorconfig/wiki/Projects-Using-EditorConfig

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.cache
.DS_Store
.vscode
node_modules
*/node_modules
build
dist
21 changes: 9 additions & 12 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Parcel Sandbox</title>
<meta charset="UTF-8" />
</head>

<head>
<title>Parcel Sandbox</title>
<meta charset="UTF-8" />
</head>
<body>
<div id="app"></div>

<body>
<div id="app"></div>

<script src="src/index.js">
</script>
</body>

</html>
<script src="src/index.js"></script>
</body>
</html>
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "JavaScript example starter project",
"main": "index.html",
"scripts": {
"start": "parcel index.html --open",
"build": "parcel build index.html"
"start": "parcel index.html --open -d build",
"build": "rm -rf ./build && parcel build index.html -d build"
},
"dependencies": {},
"devDependencies": {
Expand All @@ -16,4 +16,4 @@
"javascript",
"starter"
]
}
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ document.getElementById("app").innerHTML = `
<h1>Hello Vanilla!</h1>
<div>
We use the same configuration as Parcel to bundle this sandbox, you can find more
info about Parcel
info about Parcel
<a href="https://parceljs.org" target="_blank" rel="noopener noreferrer">here</a>.
</div>
`;

0 comments on commit fe8c6b4

Please sign in to comment.