Rohan Sircar
4 years ago
7 changed files with 1226 additions and 189 deletions
-
1chatto/.gitignore
-
322chatto/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
@ -1,140 +1,196 @@ |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
<parent> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-parent</artifactId> |
|||
<version>2.1.8.RELEASE</version> |
|||
<relativePath /> <!-- lookup parent from repository --> |
|||
</parent> |
|||
<groupId>org.ros</groupId> |
|||
<artifactId>Chatto</artifactId> |
|||
<version>0.0.1-SNAPSHOT</version> |
|||
<packaging>jar</packaging> |
|||
<name>chatto</name> |
|||
<description>Demo project for Spring Boot</description> |
|||
|
|||
<properties> |
|||
<java.version>11</java.version> |
|||
</properties> |
|||
|
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-data-jpa</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-web</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-devtools</artifactId> |
|||
<scope>runtime</scope> |
|||
<optional>true</optional> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>mysql</groupId> |
|||
<artifactId>mysql-connector-java</artifactId> |
|||
<scope>runtime</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-tomcat</artifactId> |
|||
<scope>provided</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-test</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-thymeleaf</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-security</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.security</groupId> |
|||
<artifactId>spring-security-test</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.github.ulisesbocchio</groupId> |
|||
<artifactId>jasypt-spring-boot-starter</artifactId> |
|||
<version>2.1.2</version> |
|||
</dependency> |
|||
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> |
|||
|
|||
|
|||
<dependency> |
|||
<groupId>org.projectlombok</groupId> |
|||
<artifactId>lombok</artifactId> |
|||
</dependency> |
|||
<!-- https://mvnrepository.com/artifact/org.modelmapper/modelmapper --> |
|||
<dependency> |
|||
<groupId>org.modelmapper</groupId> |
|||
<artifactId>modelmapper</artifactId> |
|||
<version>2.3.5</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-cache</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- https://mvnrepository.com/artifact/org.ehcache/ehcache --> |
|||
<dependency> |
|||
<groupId>org.ehcache</groupId> |
|||
<artifactId>ehcache</artifactId> |
|||
</dependency> |
|||
<!-- https://mvnrepository.com/artifact/javax.cache/cache-api --> |
|||
<dependency> |
|||
<groupId>javax.cache</groupId> |
|||
<artifactId>cache-api</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
<parent> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-parent</artifactId> |
|||
<version>2.1.8.RELEASE</version> |
|||
<relativePath /> <!-- lookup parent from repository --> |
|||
</parent> |
|||
<groupId>org.ros</groupId> |
|||
<artifactId>Chatto</artifactId> |
|||
<version>0.0.1-SNAPSHOT</version> |
|||
<packaging>jar</packaging> |
|||
<name>chatto</name> |
|||
<description>Demo project for Spring Boot</description> |
|||
|
|||
<properties> |
|||
<java.version>11</java.version> |
|||
</properties> |
|||
|
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-data-jpa</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-web</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-devtools</artifactId> |
|||
<scope>runtime</scope> |
|||
<optional>true</optional> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>mysql</groupId> |
|||
<artifactId>mysql-connector-java</artifactId> |
|||
<scope>runtime</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-tomcat</artifactId> |
|||
<scope>provided</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-test</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-thymeleaf</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-security</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework.security</groupId> |
|||
<artifactId>spring-security-test</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.github.ulisesbocchio</groupId> |
|||
<artifactId>jasypt-spring-boot-starter</artifactId> |
|||
<version>2.1.2</version> |
|||
</dependency> |
|||
<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> |
|||
|
|||
|
|||
<dependency> |
|||
<groupId>org.projectlombok</groupId> |
|||
<artifactId>lombok</artifactId> |
|||
</dependency> |
|||
<!-- https://mvnrepository.com/artifact/org.modelmapper/modelmapper --> |
|||
<dependency> |
|||
<groupId>org.modelmapper</groupId> |
|||
<artifactId>modelmapper</artifactId> |
|||
<version>2.3.5</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-cache</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- https://mvnrepository.com/artifact/org.ehcache/ehcache --> |
|||
<dependency> |
|||
<groupId>org.ehcache</groupId> |
|||
<artifactId>ehcache</artifactId> |
|||
</dependency> |
|||
<!-- https://mvnrepository.com/artifact/javax.cache/cache-api --> |
|||
<dependency> |
|||
<groupId>javax.cache</groupId> |
|||
<artifactId>cache-api</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> |
|||
<version>2.2.11</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> |
|||
<artifactId>jaxb-core</artifactId> <version>2.2.11</version> </dependency> --> |
|||
<!-- https://mvnrepository.com/artifact/org.thymeleaf.extras/thymeleaf-extras-springsecurity5 --> |
|||
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api --> |
|||
<dependency> |
|||
<groupId>javax.xml.bind</groupId> |
|||
<artifactId>jaxb-api</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.glassfish.jaxb</groupId> |
|||
<artifactId>jaxb-runtime</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.thymeleaf.extras</groupId> |
|||
<artifactId>thymeleaf-extras-springsecurity5</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- https://mvnrepository.com/artifact/net.sf.ehcache/ehcache --> |
|||
<!-- <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> |
|||
<!-- https://mvnrepository.com/artifact/org.thymeleaf.extras/thymeleaf-extras-springsecurity5 --> |
|||
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api --> |
|||
<dependency> |
|||
<groupId>javax.xml.bind</groupId> |
|||
<artifactId>jaxb-api</artifactId> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.glassfish.jaxb</groupId> |
|||
<artifactId>jaxb-runtime</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.thymeleaf.extras</groupId> |
|||
<artifactId>thymeleaf-extras-springsecurity5</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- https://mvnrepository.com/artifact/net.sf.ehcache/ehcache --> |
|||
<!-- <dependency> <groupId>net.sf.ehcache</groupId> <artifactId>ehcache</artifactId> |
|||
</dependency> --> |
|||
|
|||
<!-- <dependency> <groupId>javax.cache</groupId> <artifactId>cache-api</artifactId> |
|||
<!-- <dependency> <groupId>javax.cache</groupId> <artifactId>cache-api</artifactId> |
|||
<version>1.1.0</version> </dependency> --> |
|||
|
|||
|
|||
</dependencies> |
|||
|
|||
<build> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
</plugin> |
|||
</plugins> |
|||
</build> |
|||
|
|||
</project> |
|||
</dependencies> |
|||
|
|||
<build> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>com.github.eirslett</groupId> |
|||
<artifactId>frontend-maven-plugin</artifactId> |
|||
<!-- Use the latest released version: |
|||
https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ --> |
|||
<version>1.9.1</version> |
|||
|
|||
<configuration> |
|||
<workingDirectory>src/main/javascript/</workingDirectory> |
|||
</configuration> |
|||
<executions> |
|||
<execution> |
|||
<id>install node and yarn</id> |
|||
<goals> |
|||
<goal>install-node-and-yarn</goal> |
|||
</goals> |
|||
<configuration> |
|||
<!-- See https://nodejs.org/en/download/ for latest node and npm (lts) versions --> |
|||
<nodeVersion>v12.10.0</nodeVersion> |
|||
<yarnVersion>v1.21.1</yarnVersion> |
|||
</configuration> |
|||
</execution> |
|||
|
|||
<execution> |
|||
<id>yarn install</id> |
|||
<goals> |
|||
<goal>yarn</goal> |
|||
</goals> |
|||
</execution> |
|||
|
|||
<execution> |
|||
<id>watch</id> |
|||
<goals> |
|||
<goal>yarn</goal> |
|||
</goals> |
|||
<phase>none</phase> |
|||
<configuration> |
|||
<arguments>run watch</arguments> |
|||
</configuration> |
|||
</execution> |
|||
|
|||
<execution> |
|||
<id>grunt browserify</id> |
|||
<goals> |
|||
<goal>grunt</goal> |
|||
</goals> |
|||
|
|||
<!-- optional: the default phase is "generate-resources" --> |
|||
<phase>generate-resources</phase> |
|||
|
|||
<configuration> |
|||
<!-- optional: if not specified, it will run Grunt's default |
|||
task (and you can remove this whole <configuration> section.) --> |
|||
<arguments>browserify</arguments> |
|||
</configuration> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
</plugins> |
|||
</build> |
|||
|
|||
</project> |
@ -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