Skip to content

Commit

Permalink
Updated example code
Browse files Browse the repository at this point in the history
- have it's own package.json that describes the dependencies of a
  consumer of the hapi-sass package
  • Loading branch information
mdarnall committed Mar 13, 2016
1 parent 3124e86 commit cb8f3a0
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 5 deletions.
24 changes: 24 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "hapi-sass-example",
"version": "0.1.0",
"description": "A Hapi.js plugin for compiling and serving Sass stylesheets",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"author": {
"name": "Matt Darnall",
"email": "[email protected]",
"url": "http://mdarnall.com"
},
"engines": {
"node": ">=4.0.0"
},
"license": "MIT",
"peerDependencies": {
},
"dependencies": {
"hapi": "10.0.0",
"inert": "3.2.0"
}
}
6 changes: 3 additions & 3 deletions example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ var server = new Hapi.Server();
server.connection({ port: 1337 });

var options = {
src: './example/sass',
dest: './example/css',
src: './sass',
dest: './css',
force: true,
debug: true,
routePath: '/css/{file}.css',
includePaths: ['./example/vendor/sass'],
includePaths: ['./vendor/sass'],
outputStyle: 'nested',
sourceComments: true,
srcExtension: 'scss'
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"description": "A Hapi.js plugin for compiling and serving Sass stylesheets",
"main": "index.js",
"scripts": {
"test": "mocha --ui bdd",
"start": "node example/server.js"
"test": "mocha --ui bdd"
},
"author": {
"name": "Matt Darnall",
Expand Down

0 comments on commit cb8f3a0

Please sign in to comment.