A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

  1. module.exports = function(grunt) {
  2. // Project configuration.
  3. grunt.initConfig({
  4. pkg: grunt.file.readJSON('package.json'),
  5. // uglify: {
  6. // options: {
  7. // banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
  8. // },
  9. // build: {
  10. // src: 'src/<%= pkg.name %>.js',
  11. // dest: 'build/<%= pkg.name %>.min.js'
  12. // }
  13. // },
  14. browserify: {
  15. main: {
  16. src: 'ts/src/main.ts',
  17. dest: '../resources/static/js/bundle.js'
  18. },
  19. options: {
  20. plugin: [
  21. ['tsify', { target: 'es2017', noImplicitAny: true }], // register plugin by name
  22. ],
  23. browserifyOptions: {
  24. debug: true
  25. },
  26. }
  27. }
  28. });
  29. // Load the plugin that provides the "uglify" task.
  30. // grunt.loadNpmTasks('grunt-contrib-uglify');
  31. // // Default task(s).
  32. // grunt.registerTask('default', ['uglify']);
  33. grunt.loadNpmTasks('grunt-browserify')
  34. grunt.registerTask('default', ['browserify'])
  35. };