Skip to content

Commit

Permalink
Added webpack build process
Browse files Browse the repository at this point in the history
  • Loading branch information
anuragl94 committed Mar 10, 2018
1 parent 55229b9 commit db12396
Show file tree
Hide file tree
Showing 9 changed files with 10,045 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"presets": [
["@babel/preset-env"]
]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ typings/
# dotenv environment variables file
.env

# build files
build/*
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
24 changes: 24 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!doctype html>

<html lang="en">

<head>
<meta charset="utf-8">

<title>Architect Test</title>
<meta name="description" content="Architect Test">
<meta name="author" content="Anurag Lingam">

<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->
</head>

<body>
Hi!
<x-button>Ola!</x-button>
<script src="build/bundle.js"></script>
<!-- <script src="index.js"></script> -->
</body>

</html>
11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Arc from './src'

class XButton extends Arc {
render () {
let button = document.createElement('button')
button.innerText = 'Test success'
return button
}
}

customElements.define('x-button', XButton)
Loading

0 comments on commit db12396

Please sign in to comment.