kopia lustrzana https://github.com/robhawkes/vizicities
commit
58aa72bfba
12
Gruntfile.js
12
Gruntfile.js
|
|
@ -88,12 +88,14 @@ module.exports = function(grunt) {
|
||||||
server: {
|
server: {
|
||||||
options: {
|
options: {
|
||||||
port: port,
|
port: port,
|
||||||
base: '.'
|
base: '.',
|
||||||
|
keepalive: true,
|
||||||
|
debug: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
notify: {
|
notify: {
|
||||||
connect: {
|
watch: {
|
||||||
options: {
|
options: {
|
||||||
// title: 'Watching files', // optional
|
// title: 'Watching files', // optional
|
||||||
message: 'Watching for changes' //required
|
message: 'Watching for changes' //required
|
||||||
|
|
@ -128,8 +130,10 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('default', ['jshint', 'concat', 'notify:finish']);
|
grunt.registerTask('default', ['jshint', 'concat', 'notify:finish']);
|
||||||
|
|
||||||
// Serve examples locally
|
// Serve examples locally
|
||||||
grunt.registerTask('serve', ['connect', 'notify:connect', 'watch']);
|
grunt.registerTask('serve', ['connect']);
|
||||||
|
|
||||||
|
// Build files and refresh content on file changes
|
||||||
|
grunt.registerTask('dev', ['default', 'notify:watch', 'watch']);
|
||||||
|
|
||||||
grunt.task.run('notify_hooks');
|
grunt.task.run('notify_hooks');
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
@ -83,6 +83,12 @@ grunt serve
|
||||||
|
|
||||||
Then open [http://127.0.0.1:8000/examples](http://127.0.0.1:8000/examples)
|
Then open [http://127.0.0.1:8000/examples](http://127.0.0.1:8000/examples)
|
||||||
|
|
||||||
|
#### Build ViziCities and watch for file changes using Grunt
|
||||||
|
```
|
||||||
|
cd /path/to/vizicities
|
||||||
|
grunt dev
|
||||||
|
```
|
||||||
|
|
||||||
### Data formats
|
### Data formats
|
||||||
|
|
||||||
Visualising geographic features lies at the core of ViziCities. To make sure features render correctly you'll need to [use the correct data formats](https://github.com/robhawkes/vizicities/blob/master/DATA-FORMATTING.md).
|
Visualising geographic features lies at the core of ViziCities. To make sure features render correctly you'll need to [use the correct data formats](https://github.com/robhawkes/vizicities/blob/master/DATA-FORMATTING.md).
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue