summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@codeispoetry.ru>2017-03-10 10:10:46 +0000
committerAndrej Mihajlov <and@codeispoetry.ru>2017-03-10 10:10:46 +0000
commitfcb95d50305c99368e2a19627ca1306a93888912 (patch)
tree21714a1ea4d94ad4a32a851b7c768a0df7c8f6c1
parentb904f7e9b7c72c8b5b49d0ada673eb3a7f123377 (diff)
downloadmullvadvpn-fcb95d50305c99368e2a19627ca1306a93888912.tar.xz
mullvadvpn-fcb95d50305c99368e2a19627ca1306a93888912.zip
Add esdoc
-rw-r--r--.esdoc.json15
-rw-r--r--.gitignore1
-rw-r--r--package.json2
3 files changed, 18 insertions, 0 deletions
diff --git a/.esdoc.json b/.esdoc.json
new file mode 100644
index 0000000000..921a7884dd
--- /dev/null
+++ b/.esdoc.json
@@ -0,0 +1,15 @@
+{
+ "source": "./app",
+ "destination": "./docs",
+ "experimentalProposal": {
+ "classProperties": true,
+ "objectRestSpread": true,
+ "doExpressions": true,
+ "functionBind": true,
+ "functionSent": true,
+ "asyncGenerators": true,
+ "decorators": true,
+ "exportExtensions": true,
+ "dynamicImport": true
+ }
+}
diff --git a/.gitignore b/.gitignore
index 5da2ccb7c4..f2337056f4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
node_modules
dist
+docs
build
.DS_Store
*.log
diff --git a/package.json b/package.json
index b379cc2e97..42101df84b 100644
--- a/package.json
+++ b/package.json
@@ -44,6 +44,7 @@
"electron": "^1.6.1",
"electron-builder": "^14.1.1",
"electron-devtools-installer": "^2.1.0",
+ "esdoc": "^0.5.2",
"eslint": "^3.14.1",
"eslint-plugin-react": "^6.9.0",
"isomorphic-fetch": "^2.2.1",
@@ -59,6 +60,7 @@
"develop": "npm run private:compile -- --source-maps true && npm run private:service-worker && run-p -r private:watch private:serve",
"test": "mocha -R spec --compilers js:babel-core/register test/*.spec.js test/**/*.spec.js",
"lint": "eslint --no-ignore scripts app test *.js",
+ "docs": "esdoc",
"pack": "run-s private:clean private:compile private:service-worker private:build:all",
"pack:mac": "run-s private:clean private:compile private:service-worker private:build:mac",
"pack:win": "run-s private:clean private:compile private:service-worker private:build:win",