Permalink
Browse files

complete rewrite and initial work on alfred workflow

  • Loading branch information...
1 parent 73e7cfa commit 644d9c772724f42e41b818c339a74426f483b4c4 @jgallen23 committed Mar 20, 2013
View
@@ -0,0 +1,51 @@
+module.exports = function(grunt) {
+ grunt.initConfig({
+ dist: 'dist/layouts.applescript',
+ compiledDist: 'dist/layouts.scpt',
+ concat: {
+ app: {
+ src: [
+ 'lib/displays.applescript',
+ 'lib/resize.applescript',
+ 'lib/layouts.applescript'
+ ],
+ dest: '<%= dist %>'
+ }
+ },
+ shell: {
+ compile: {
+ command: 'osacompile -o <%= compiledDist %> <%= dist %>'
+ },
+ test: {
+ command: 'osascript <%= compiledDist %> "test"',
+ options: {
+ stdout: true,
+ stderr: true
+ }
+ },
+ alfred: {
+ command: 'cp -v <%= compiledDist %> alfred-workflow/',
+ options: {
+ stdout: true
+ }
+ }
+ },
+ watch: {
+ app: {
+ files: '<%= concat.app.src %>',
+ tasks: [
+ 'concat:app',
+ 'shell:compile'
+ ]
+ }
+ }
+ });
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-shell');
+
+ grunt.registerTask('default', ['concat', 'shell:compile']);
+ grunt.registerTask('test', ['shell:test']);
+ grunt.registerTask('dev', ['watch:app']);
+ grunt.registerTask('alfred', ['default', 'shell:alfred']);
+}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 644d9c7

Please sign in to comment.