Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function (grunt) {
- // Project configuration.
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- typescript: {
- main: {
- src: ['src/ts/**/*.ts'],
- dest: 'app/js/main.js',
- options: {
- module: 'amd',
- target: 'es5',
- sourceMap: true
- }
- }
- },
- copy: {
- main: {
- files: [
- {
- expand: true,
- src: ["index.html"],
- cwd: 'src/',
- dest: "app/",
- filter: 'isFile'
- }
- ]
- }
- }
- });
- grunt.loadNpmTasks('grunt-contrib-copy');
- grunt.loadNpmTasks('grunt-typescript');
- // Default task(s).
- grunt.registerTask('compile', ['typescript']);
- grunt.registerTask('deploy', ['compile', 'copy']);
- grunt.registerTask('default', ['deploy']);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement