Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/pkg/di/Gruntfile.coffee

Issue 107003007: Adding Angular's DI package & Dart unittests which test it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/di/.gitignore ('k') | third_party/pkg/di/LICENSE » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/di/Gruntfile.coffee
diff --git a/third_party/pkg/di/Gruntfile.coffee b/third_party/pkg/di/Gruntfile.coffee
new file mode 100644
index 0000000000000000000000000000000000000000..430713051174635e9ee7a9bb30fbb65cd7d32172
--- /dev/null
+++ b/third_party/pkg/di/Gruntfile.coffee
@@ -0,0 +1,18 @@
+spawn = require('child_process').spawn
+
+DART_VM = process.env.DART_VM or '../dart-sdk/bin/dart'
+
+module.exports = (grunt) ->
+ grunt.initConfig
+ watch:
+ tests:
+ files: ['test/**/*.dart', 'lib/**/*.dart']
+ tasks: ['dart']
+ dart:
+ tests:
+ entry: 'test/main.dart'
+
+ grunt.registerMultiTask 'dart', 'run dart program', ->
+ spawn(DART_VM, [@data.entry], {stdio: 'inherit'}).on 'close', @async()
+
+ grunt.loadNpmTasks 'grunt-contrib-watch'
« no previous file with comments | « third_party/pkg/di/.gitignore ('k') | third_party/pkg/di/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698