Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 spawn = require('child_process').spawn | |
| 2 | |
| 3 DART_VM = process.env.DART_VM or '../dart-sdk/bin/dart' | |
| 4 | |
| 5 module.exports = (grunt) -> | |
| 6 grunt.initConfig | |
| 7 watch: | |
| 8 tests: | |
| 9 files: ['test/**/*.dart', 'lib/**/*.dart'] | |
| 10 tasks: ['dart'] | |
| 11 dart: | |
| 12 tests: | |
| 13 entry: 'test/main.dart' | |
| 14 | |
| 15 grunt.registerMultiTask 'dart', 'run dart program', -> | |
| 16 spawn(DART_VM, [@data.entry], {stdio: 'inherit'}).on 'close', @async() | |
| 17 | |
| 18 grunt.loadNpmTasks 'grunt-contrib-watch' | |
| OLD | NEW |