aboutsummaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorKarissa McKelvey <karissa@users.noreply.github.com>2016-08-12 15:55:50 +0200
committerJoe Hand <joe@joeahand.com>2016-08-12 09:55:50 -0400
commit253db19f5e2ee8c87c74d992c69d4f936eaa7db9 (patch)
tree366b6601c8829dbbe3bfb5b40780ffac29a55905 /package.json
parent416108575f8207d687c52ca079117bcc5cfdb515 (diff)
downloaddat-docs-253db19f5e2ee8c87c74d992c69d4f936eaa7db9.tar.gz
dat-docs-253db19f5e2ee8c87c74d992c69d4f936eaa7db9.zip
add dat-design and sass capability (#16)
* add dat-design and sass capability * add watch:css rule * add nodemon * fix typo * update watch css command (it watched and built the css before, but styles still didn't update in the browser. there's probably a more performant way to do this.) * override minidocs default styles with custom dat styles * clean up scss
Diffstat (limited to 'package.json')
-rw-r--r--package.json11
1 files changed, 8 insertions, 3 deletions
diff --git a/package.json b/package.json
index d889e21..d8e1b01 100644
--- a/package.json
+++ b/package.json
@@ -7,9 +7,11 @@
"update": "npm run update:list && npm run update:docs",
"update:list": "curl -Ssl https://raw.githubusercontent.com/clkao/awesome-dat/master/readme.md | grep '📔' | egrep -o 'github.com/[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+' | cut -f 2- -d / | uniq > repos.txt",
"update:build": "cat repos.txt | ecosystem-docs sync && cat repos.txt | ecosystem-docs read | node build.js",
- "build:local": "minidocs docs -c docs/contents.json -i welcome -o dist -l ./node_modules/dat-design/downloads/dat-data-logo.png -t 'Dat Data' -s assets/styles.css --pushstate",
- "build:deploy": "minidocs docs -c docs/contents.json -i welcome -o dist -l ./node_modules/dat-design/downloads/dat-data-logo.png -t 'Dat Data' -s assets/styles.css --full-html",
+ "build:local": "npm run build:css && minidocs docs -c docs/contents.json -i welcome -o dist -l ./node_modules/dat-design/downloads/dat-data-logo.png -t 'Dat Data' -s assets/styles.css --pushstate",
+ "build:deploy": "npm run build:css && minidocs docs -c docs/contents.json -i welcome -o dist -l ./node_modules/dat-design/downloads/dat-data-logo.png -t 'Dat Data' -s assets/styles.css --full-html",
+ "build:css": "node-sass --importer node_modules/node-sass-magic-importer assets/styles.scss assets/styles.css",
"deploy": "npm run build:deploy && echo docs.dat-data.com > dist/CNAME && gh-pages -d dist",
+ "watch:css": "nodemon -e scss -x \"npm run build:local\"",
"start": "budo --dir dist --pushstate",
"paper": "pandoc --variable author=\"Maxwell Ogden, Karissa McKelvey, Mathias Buus\" --variable title=\"Dat - Distributed Dataset Synchronization And Versioning\" --variable date=\"Version 1.0.0, May 2016\" --variable classoption=twocolumn --variable papersize=a4paper -s dat-paper.md -o dat-paper.pdf"
},
@@ -32,6 +34,9 @@
"devDependencies": {
"budo": "^8.3.0",
"ecosystem-docs": "^1.1.1",
- "ndjson": "^1.4.3"
+ "ndjson": "^1.4.3",
+ "node-sass": "^3.8.0",
+ "node-sass-magic-importer": "^0.1.4",
+ "nodemon": "^1.10.0"
}
}