Created
April 17, 2014 05:04
-
-
Save shubik/10954124 to your computer and use it in GitHub Desktop.
JSX Grunt task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.initConfig({ | |
srcPath: 'src', | |
buildPath: 'public', | |
shell: { | |
'build-jsx': { | |
command: [ | |
'jsx -x jsx <%= srcPath %>/jsx/ <%= srcPath %>/js/app/views/', | |
'rm -rf <%= src_path %>/js/app/views/.module-cache/' | |
].join(' && '), | |
stdout: true, | |
failOnError: true | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-shell'); | |
grunt.registerTask('jsx', [ | |
'shell:build-jsx' | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment