aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.babelrc24
-rw-r--r--.gitignore2
-rw-r--r--Makefile3
-rw-r--r--favicon.icobin0 -> 9662 bytes
-rw-r--r--package.json44
5 files changed, 72 insertions, 1 deletions
diff --git a/.babelrc b/.babelrc
new file mode 100644
index 0000000..8e43e96
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,24 @@
+{
+ "plugins": [
+ "transform-es5-property-mutators",
+ "transform-es2015-arrow-functions",
+ "transform-es2015-block-scoped-functions",
+ "transform-es2015-block-scoping",
+ "transform-es2015-classes",
+ "transform-es2015-computed-properties",
+ "transform-es2015-constants",
+ "transform-es2015-destructuring",
+ "transform-es2015-for-of",
+ "transform-es2015-function-name",
+ "transform-es2015-literals",
+ "transform-es2015-object-super",
+ "transform-es2015-parameters",
+ "transform-es2015-shorthand-properties",
+ "transform-es2015-spread",
+ "transform-es2015-sticky-regex",
+ "transform-es2015-template-literals",
+ "transform-es2015-typeof-symbol",
+ "transform-es2015-unicode-regex",
+ "transform-es2015-modules-amd"
+ ]
+}
diff --git a/.gitignore b/.gitignore
index 096aa33..8b9b864 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ index*.html
*.js
*.js.map
!require.js
+!sworker.js
+node_modules/
diff --git a/Makefile b/Makefile
index d4bc26a..1415140 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
++BABEL=node node_modules/babel-cli/bin/babel.js
FILES=hesla.js hesla.js.map require.js config.js config.js.map \
activePage.js activePage.js.map icon-*.png \
index_de.html index.html screen.css hesla.appcache hesla.webapp \
google9815148f4ac1407f.html config.es hesla.es activePage.es
%.js: %.es
- babel --source-maps true -t ES5 -m amdStrict -o $@ $<
+ $(BABEL) --source-maps true -t ES5 -m amdStrict -o $@ $<
all: index.html index_de.html config.js activePage.js hesla.js
diff --git a/favicon.ico b/favicon.ico
new file mode 100644
index 0000000..0f20c3c
--- /dev/null
+++ b/favicon.ico
Binary files differ
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..fefe8da
--- /dev/null
+++ b/package.json
@@ -0,0 +1,44 @@
+{
+ "name": "hesla",
+ "version": "0.2.0",
+ "description": "Losungen reader",
+ "repository": {
+ "type": "git",
+ "url": "https://gitlab.com/mcepl/hesla.git"
+ },
+ "keywords": [
+ "hesla",
+ "reader",
+ "mobile"
+ ],
+ "author": "Matěj Cepl <mcepl@cepl.eu>",
+ "license": "MIT",
+ "devDependencies": {
+ "babel-core": "~6.1.21",
+ "babel-cli": "~6.1.18",
+ "babel-preset-es2015": "~6.1.18",
+ "babel-plugin-transform-es2015-literals": "~6.1.18",
+ "babel-plugin-transform-es2015-arrow-functions": "~6.1.18",
+ "babel-plugin-transform-es2015-modules-amd": "~6.1.18",
+ "babel-plugin-transform-es2015-destructuring": "~6.1.18",
+ "babel-plugin-transform-es2015-modules-commonjs": "~6.1.20",
+ "babel-plugin-transform-es2015-modules-umd": "~6.1.18",
+ "babel-plugin-transform-es2015-for-of": "~6.1.18",
+ "babel-plugin-transform-es2015-parameters": "~6.1.18",
+ "babel-plugin-transform-es2015-computed-properties": "~6.1.18",
+ "babel-plugin-transform-es2015-unicode-regex": "~6.1.18",
+ "babel-plugin-transform-es2015-modules-systemjs": "~6.1.18",
+ "babel-plugin-transform-es2015-object-super": "~6.1.18",
+ "babel-plugin-transform-es2015-function-name": "~6.1.18",
+ "babel-plugin-transform-es2015-classes": "~6.1.21",
+ "babel-plugin-transform-es2015-block-scoped-functions": "~6.1.18",
+ "babel-plugin-transform-es2015-template-literals": "~6.1.18",
+ "babel-plugin-transform-es2015-sticky-regex": "~6.1.18",
+ "babel-plugin-transform-es5-property-mutators": "~6.1.18",
+ "babel-plugin-transform-es2015-shorthand-properties": "~6.1.18",
+ "babel-plugin-transform-es2015-typeof-symbol": "~6.1.18",
+ "babel-plugin-transform-es2015-block-scoping": "~6.1.18",
+ "babel-plugin-transform-es2015-spread": "~6.1.18",
+ "babel-plugin-transform-es2015-constants": "~6.1.4"
+ }
+}