Skip to content

Commit

Permalink
fuck COVID-19
Browse files Browse the repository at this point in the history
  • Loading branch information
hasegetc committed Mar 28, 2020
0 parents commit 0fdb6f2
Show file tree
Hide file tree
Showing 161 changed files with 25,801 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.iml
.gradle
.idea
build
**/node_modules/
**/.DS_Store
19 changes: 19 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: groovy
sudo: false
jdk:
- openjdk8
cache:
directories:
- "$HOME/.gradle"
before_script:
- rm -rf target
script: "./travis-build.sh"
env:
global:
- GIT_NAME="James Kleeh"
- GIT_EMAIL="[email protected]"
- secure: dbcjEC7CFlHZ1O/Zqfjliv1uM8EOAucKMNAfv+jqe+0N/xK6zVpG205kvhRymz1TRXoAXtyRWLE4rBfak81PnG78M2jvyFjk3e+zIHsGjbz3LxLjgaoYJmqkJdMwckJWY9zN/s7pao8cMZkCY5lG8KH2fWUJq/hwfkWcSlPm8OUl0YPPhgace5qPuxb5lCjvszn8srW9jrnV/GiR4ekq8i4HZF92z7M5o/LDLbk0BT5zlfGcMWFlpYpTfgO8yRGYjGwdcZSm5vCHawGLZXNxHRpiN8vtb3i8hgDEFERwO4feORLBo8ajPlNZ2frEeK9Wg4xUQjZSb3Nbqm9ZtAPF9pCxquoFc3tmFmkeHSCrHKpr9hm0dEWpZ9EAyZSavbImwQkwk+6SjZLs6fjcWgiy/yu+3x1S9IjvvVJriSTinr7N8Dleu3z+IWwjWoj8pWh24i3E3NtQezQvctoSu3+wrBhFW+HhhpFsOsXe4BhekJp4Uw5YAYD9ekL48HR+957Iz1Lgc2qfFEYTn5nZpDMfLD7eYXLRxKS9+oBVeTMgwAAzhAt7urIOtmacS1r6AeSpmoBsVMO8nKTQUNsr2yLze+mUjM9muJA8dqy33PflBmDDNY1R6cecnEkiW4toB8GAUx1csXXThJj2tdtsUs6WTmGERj116tR2tZTOJY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iQyyWzx/6zPkarxHcFbOuxm+HH8V01JiLLqDugMLfWcIWIrbFJ6ohcug7VrnGh9R8GqjOIfdQh4KHX23Fx1bFG/ahhPza/na/lfYnETZQ8S4q4W7U2ol7mtqsOco8Pbd3LkbsH03xxRC790yU9Js3IwxBr8jV85niSk/zVImay70nMspFXazqkxpxdl2JLy8qU6mQ5U/0SDM4A1Q2D2w9NPu3/6fzo2UthhQngMx5YO7zkQbfF/LWzh2NZjrQRkOMhtPIYc07skHlKqq0rItCEww+0MLPfjuYIi+3yHst/X9sq9j/wGH1nB0Tnl0tsviXG0ltQhNhEgI1spdrhEqtl9+qSKExip22ydFQ0XNpFFhHZ0p2R/8j7X7fy6p17h4jflGW+hHJqkng1nz7ErvVh2fa1NUz1Ke0gjfjkO5zItKGkCvT5Exf7yO1MNlvV7cFWqkC/s1BFb54jufU1hwxRWvp9ZmieIqMJ4QZxRQuE5sxbtH4lE+reVnV7fC5rbyGp7g0U8U6azZ5HTMExrhw7VuUDbjh8yyLPeHjnBF7LBPfULnYZSGQH+9IJtNwR8iDzy2L4XcS3s0Anan7foUN+Qa8EhvE/qlD9urlBb6ASUwRpxPKHQU0=
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Grails Angular Profile

[![Build Status](https://travis-ci.org/grails-profiles/angular.svg?branch=master)](https://travis-ci.org/grails-profiles/angular)


[Documentation](https://grails-profiles.github.io/angular/latest/guide/index.html)
34 changes: 34 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
buildscript {
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:${project.grailsVersion}"
}
}

apply plugin: "org.grails.grails-profile"
apply plugin: "org.grails.grails-profile-publish"

group 'org.grails.profiles'
version '8.0.2.BUILD-SNAPSHOT'
// version '8.0.2'

grailsPublish {
userOrg = 'grails'
githubSlug = 'grails-profiles/angular'
license = 'Apache-2.0'
title = "Angular Profile"
desc = "A profile for creating applications with Angular"
developers = [jameskleeh:"James Kleeh",willbuck:"Will Buck"]
}

repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}

dependencies {
runtime "org.grails.profiles:rest-api:4.0.0.RC1"
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
grailsVersion=4.0.1
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
172 changes: 172 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
#!/usr/bin/env sh

##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

warn () {
echo "$*"
}

die () {
echo
echo "$*"
echo
exit 1
}

# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi

# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option

if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi

# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=$(save "$@")

# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
cd "$(dirname "$0")"
fi

exec "$JAVACMD" "$@"
84 changes: 84 additions & 0 deletions gradlew.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################

@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

:mainEnd
if "%OS%"=="Windows_NT" endlocal

:omega
27 changes: 27 additions & 0 deletions profile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
description: A profile for creating Grails applications with Angular 5+
instructions: |
This profile has created a multi-project build where the "server" module contains the Grails application and the "client" module contains the Angular 6 application.
To start the Grails application: `./gradlew server:bootRun`
To start the client application: `./gradlew client:bootRun`
To start both client and Grails applications: `./gradlew bootRun --parallel`
Run the frontend unit tests and Grails unit tests: `./gradlew test`
Run the frontend e2e and grails integration tests: `./gradlew integrationTest`
Node.js/npm is not required when using the Gradle tasks above, but is supported if installed.
E.g., from the `client` directory, start the client application: `npm start`
skeleton:
excludes:
- gradlew
- gradlew.bat
- gradle/
- gradle.properties
- settings.gradle
parent:
target: server
features:
defaults:
- hibernate5
required:
- json-views
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "angular"
13 changes: 13 additions & 0 deletions skeleton/client/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
Loading

0 comments on commit 0fdb6f2

Please sign in to comment.