Rohan Sircar
4 years ago
7 changed files with 1226 additions and 189 deletions
-
1chatto/.gitignore
-
62chatto/pom.xml
-
45chatto/src/main/javascript/Gruntfile.js
-
17chatto/src/main/javascript/dist/bundle.js
-
9chatto/src/main/javascript/dist/index.html
-
13chatto/src/main/javascript/package.json
-
1008chatto/src/main/javascript/yarn.lock
@ -0,0 +1,45 @@ |
|||
module.exports = function(grunt) { |
|||
|
|||
// Project configuration.
|
|||
grunt.initConfig({ |
|||
pkg: grunt.file.readJSON('package.json'), |
|||
// uglify: {
|
|||
// options: {
|
|||
// banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
|
|||
// },
|
|||
// build: {
|
|||
// src: 'src/<%= pkg.name %>.js',
|
|||
// dest: 'build/<%= pkg.name %>.min.js'
|
|||
// }
|
|||
// },
|
|||
browserify: { |
|||
main: { |
|||
src: 'ts/src/main.ts', |
|||
dest: '../resources/static/js/bundle.js' |
|||
}, |
|||
options: { |
|||
plugin: [ |
|||
['tsify', { target: 'es2017', noImplicitAny: true }], // register plugin by name
|
|||
], |
|||
|
|||
|
|||
browserifyOptions: { |
|||
debug: true |
|||
}, |
|||
} |
|||
} |
|||
}); |
|||
|
|||
// Load the plugin that provides the "uglify" task.
|
|||
// grunt.loadNpmTasks('grunt-contrib-uglify');
|
|||
|
|||
// // Default task(s).
|
|||
// grunt.registerTask('default', ['uglify']);
|
|||
|
|||
grunt.loadNpmTasks('grunt-browserify') |
|||
|
|||
|
|||
|
|||
grunt.registerTask('default', ['browserify']) |
|||
|
|||
}; |
17
chatto/src/main/javascript/dist/bundle.js
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,9 +0,0 @@ |
|||
<!DOCTYPE html> |
|||
<html> |
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<title>Webpack App</title> |
|||
</head> |
|||
<body> |
|||
<script type="text/javascript" src="bundle.js"></script></body> |
|||
</html> |
1008
chatto/src/main/javascript/yarn.lock
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save
Reference in new issue