Build as a browser extension

This commit is contained in:
Correl Roush 2018-01-26 16:12:07 -05:00
parent 894638a3fa
commit e9a22cb1e8
5 changed files with 26 additions and 1 deletions

View file

@ -1,6 +1,6 @@
.PHONY: all node-deps clean run
TARGET=elm.js
TARGET=extension/elm.js
SOURCE=src/App.elm
ELM_FILES = $(shell find . -type f -name '*.elm')

BIN
extension/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

9
extension/index.html Normal file
View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<body>
<h1>Pass</h1>
<div id="app"></div>
<script type="text/javascript" src="elm.js"></script>
<script type="text/javascript" src="portal.js"></script>
</body>
</html>

14
extension/manifest.json Normal file
View file

@ -0,0 +1,14 @@
{
"manifest_version": 2,
"name": "Elm-Pass",
"description": "Password Management",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "index.html"
},
"permissions": [
"activeTab",
"storage"
]
}

2
extension/portal.js Normal file
View file

@ -0,0 +1,2 @@
const container = document.querySelector('#app');
const app = Elm.App.embed(container);