m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.js27
-rw-r--r--.gitignore1
-rw-r--r--README.md1
-rw-r--r--index.js0
-rw-r--r--package.json23
5 files changed, 52 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
new file mode 100644
index 0000000..7e69d44
--- /dev/null
+++ b/.eslintrc.js
@@ -0,0 +1,27 @@
+module.exports = {
+ "env": {
+ "browser": true,
+ "es6": true,
+ "node": true,
+ "jest": true
+ },
+ "extends": "eslint:recommended",
+ "rules": {
+ "indent": [
+ "error",
+ 2
+ ],
+ "linebreak-style": [
+ "error",
+ "unix"
+ ],
+ "quotes": [
+ "error",
+ "single"
+ ],
+ "semi": [
+ "error",
+ "never"
+ ]
+ }
+};
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8d87b1d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+node_modules/*
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d6d96ba
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# dice.js
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/index.js
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..395a181
--- /dev/null
+++ b/package.json
@@ -0,0 +1,23 @@
+{
+ "name": "dice",
+ "version": "0.0.1",
+ "description": "Dice expression parser and evaluator",
+ "main": "index.js",
+ "scripts": {
+ "test": "jest"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/m-chrzan/dice.js.git"
+ },
+ "author": "Marcin Chrzanowski",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/m-chrzan/dice.js/issues"
+ },
+ "homepage": "https://github.com/m-chrzan/dice.js#readme",
+ "devDependencies": {
+ "eslint": "^4.2.0",
+ "jest": "^20.0.4"
+ }
+}