Static file server with livereload, preprocessors, synchronised testing over multiple browser instances and batteries included. This setup uses Harp and Browsersync, hence the name.
You will need node, install it if you haven't already.
| $(window).bind("orientationchange", -> | |
| $scope.orientation = window.orientation | |
| $(document.body).css({ | |
| width: $(window).width() | |
| height: $(window).height() | |
| }) | |
| if window.orientation % 180 is 0 | |
| rotation = "rotate(-90deg)" | |
| if window.orientation > 0 |
Static file server with livereload, preprocessors, synchronised testing over multiple browser instances and batteries included. This setup uses Harp and Browsersync, hence the name.
You will need node, install it if you haven't already.
| find . -type f -name "*.sass" -exec bash -c 'sass-convert ${0} -i --to scss; git mv ${0} ${0%.sass}.scss' {} \; |
| { | |
| "box-model" : true, | |
| "display-property-grouping" : true, | |
| "duplicate-properties" : true, | |
| "empty-rules" : true, | |
| "known-properties" : true, | |
| "non-link-hover" : false, | |
| "adjoining-classes" : false, | |
| "box-sizing" : false, | |
| "compatible-vendor-prefixes" : true, |
| git tag -a v1.0.0 -m 'tagging v1.0.0' | |
| git push --tags |
# NO sudo
npm i -g svgo
# Go to a directory with svg's (also searches subdirectories)
find . -name '*.svg' -exec svgo -i {} \| [ | |
| { | |
| "imageUrl": "http://placekitten.com/2000/200", | |
| "title": "Article 2", | |
| "date": "20/02/2018", | |
| "body": "Bacon ipsum dolor amet shankle drumstick tenderloin, leberkas tri-tip corned beef jowl. Short ribs cupim biltong, kielbasa filet mignon brisket sirloin prosciutto pork belly shank pig." | |
| }, | |
| { | |
| "title": "Article 1", | |
| "date": "19/02/2018", |
| #!/bin/bash | |
| for f in *.sass; do sass-convert $f ${f%sass}scss ; done | |
| rm *.scss |
With these instructions, you can test a fully local and private ÐApp. Obviously it's not distributed into the cloud here, so it's more like a .. PApp? But we do simulate the full stack locally, so you can push changes to your hearts content!
brew install node)brew install ipfs)npm i -g embark)npm i -g ethereumjs-testrpc)