Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
chore: add npm scripts (serve, livereload, build) 💫
Browse files Browse the repository at this point in the history
  • Loading branch information
andreruffert committed Sep 3, 2015
1 parent 78804b4 commit 468b6b0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ <h2>Combination with native <code>&lt;details&gt;</code> element</h2>
</details>
</div>

<script src="//localhost:8081"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../dist/rangeslider.js"></script>
<script>
Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,22 @@
"grunt-contrib-jshint": "~0.11.2",
"grunt-contrib-uglify": "~0.9.1",
"grunt-contrib-watch": "~0.6.1",
"http-server": "^0.8.0",
"jshint-stylish": "~2.0.1",
"live-reload": "^1.1.0",
"load-grunt-tasks": "~3.2.0",
"parallelshell": "^2.0.0",
"time-grunt": "~1.2.1"
},
"scripts": {
"test": "grunt jshint"
"test": "grunt jshint",
"static-server": "http-server -p 8080 ./ -s -o",
"livereload": "live-reload --port 8081 dist/",
"serve": "parallelshell 'npm run static-server' 'npm run livereload' 'grunt watch'",
"start": "grunt build && npm run serve -s",
"build": "grunt build"
},
"files": [
"dist"
]
}
}

0 comments on commit 468b6b0

Please sign in to comment.