* All files are watched for changes and compiled automatically
* A local webserver is started to serve the files likt in production
});
+ grunt.registerTask('http-server', function() {
+
+ grunt.util.spawn({
+ cmd: 'node_modules/http-server/bin/http-server',
+ args: [ 'dist' ],
+ opts: { stdio: 'inherit' }
+ });
+
+ });
+
grunt.registerTask('default', [ 'copy', 'less', 'svgstore' ]);
+ grunt.registerTask('run-server', [ 'default', 'http-server', 'watch' ]);
+
};
{
"name": "frontend",
- "version": "1.0.3",
+ "version": "1.0.4",
"description": "Simple Example-Project for Template-Development",
"devDependencies": {
+ "http-server": "~0.8.0",
"grunt": "~0.4.5",
"grunt-contrib-copy": "~0.8.1",
"grunt-contrib-less": "~1.0.1",