-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit : yeoman project creation
- Loading branch information
jboulay
committed
Mar 17, 2016
0 parents
commit 2fc17ab
Showing
281 changed files
with
15,310 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "src/main/webapp/bower_components" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{package,bower}.json] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# All text files should have the "lf" (Unix) line endings | ||
* text eol=lf | ||
|
||
# Explicitly declare text files you want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.java text | ||
*.js text | ||
*.css text | ||
*.html text | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.jar binary | ||
*.pdf binary | ||
*.eot binary | ||
*.ttf binary | ||
*.gzip binary | ||
*.gz binary | ||
*.ai binary | ||
*.eps binary | ||
*.swf binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
###################### | ||
# Project Specific | ||
###################### | ||
/src/main/webapp/assets/styles/main.css | ||
/src/main/webapp/dist | ||
|
||
###################### | ||
# Node | ||
###################### | ||
/node/** | ||
/node_modules/** | ||
|
||
###################### | ||
# SASS | ||
###################### | ||
.sass-cache/** | ||
|
||
###################### | ||
# Eclipse | ||
###################### | ||
*.pydevproject | ||
.project | ||
.metadata | ||
/bin/** | ||
/tmp/** | ||
/tmp/**/* | ||
*.tmp | ||
*.bak | ||
*.swp | ||
*~.nib | ||
local.properties | ||
.classpath | ||
.settings/** | ||
.loadpath | ||
/src/main/resources/rebel.xml | ||
|
||
# External tool builders | ||
.externalToolBuilders/** | ||
|
||
# Locally stored "Eclipse launch configurations" | ||
*.launch | ||
|
||
# CDT-specific | ||
.cproject | ||
|
||
# PDT-specific | ||
.buildpath | ||
|
||
###################### | ||
# Intellij | ||
###################### | ||
.idea/** | ||
*.iml | ||
*.iws | ||
*.ipr | ||
*.ids | ||
*.orig | ||
|
||
###################### | ||
# Maven | ||
###################### | ||
/log/** | ||
/target/** | ||
|
||
###################### | ||
# Gradle | ||
###################### | ||
.gradle/** | ||
|
||
###################### | ||
# Package Files | ||
###################### | ||
*.jar | ||
*.war | ||
*.ear | ||
*.db | ||
|
||
###################### | ||
# Windows | ||
###################### | ||
# Windows image file caches | ||
Thumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
###################### | ||
# Mac OSX | ||
###################### | ||
.DS_Store | ||
.svn | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
###################### | ||
# Directories | ||
###################### | ||
/build/** | ||
/bin/** | ||
/spring_loaded/** | ||
/deploy/** | ||
|
||
###################### | ||
# Logs | ||
###################### | ||
*.log | ||
|
||
###################### | ||
# Others | ||
###################### | ||
*.class | ||
*.*~ | ||
*~ | ||
.merge_file* | ||
|
||
###################### | ||
# Gradle Wrapper | ||
###################### | ||
!gradle/wrapper/gradle-wrapper.jar | ||
|
||
###################### | ||
# Maven Wrapper | ||
###################### | ||
!.mvn/wrapper/maven-wrapper.jar | ||
|
||
###################### | ||
# Bower Components | ||
###################### | ||
src/main/webapp/bower_components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"node": true, | ||
"esnext": true, | ||
"bitwise": true, | ||
"camelcase": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"immed": true, | ||
"indent": 4, | ||
"latedef": true, | ||
"newcap": true, | ||
"noarg": true, | ||
"quotmark": "single", | ||
"regexp": true, | ||
"undef": true, | ||
"unused": true, | ||
"strict": true, | ||
"trailing": true, | ||
"smarttabs": true, | ||
"white": true, | ||
"predef": ["angular"] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
language: node_js | ||
node_js: | ||
- "0.12" | ||
sudo: false | ||
before_install: npm install -g gulp | ||
install: npm install | ||
before_script: gulp build | ||
notifications: | ||
webhooks: | ||
on_success: change # options: [always|never|change] default: always | ||
on_failure: always # options: [always|never|change] default: always | ||
on_start: false # default: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"generator-jhipster": { | ||
"baseName": "ynov", | ||
"packageName": "fr.ekito.ynov", | ||
"packageFolder": "fr/ekito/ynov", | ||
"authenticationType": "xauth", | ||
"hibernateCache": "no", | ||
"clusteredHttpSession": "no", | ||
"websocket": "no", | ||
"databaseType": "mongodb", | ||
"devDatabaseType": "mongodb", | ||
"prodDatabaseType": "mongodb", | ||
"searchEngine": "no", | ||
"useSass": true, | ||
"buildTool": "maven", | ||
"frontendBuilder": "gulp", | ||
"enableTranslation": true, | ||
"enableSocialSignIn": false, | ||
"rememberMeKey": "7d197c2b8b998380b70c8480f4af669f1e297464", | ||
"testFrameworks": [ | ||
"gatling" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# ynov | ||
|
||
This application was generated using JHipster, you can find documentation and help at [https://jhipster.github.io](https://jhipster.github.io). | ||
|
||
Before you can build this project, you must install and configure the following dependencies on your machine: | ||
|
||
1. [Node.js][]: We use Node to run a development web server and build the project. | ||
Depending on your system, you can install Node either from source or as a pre-packaged bundle. | ||
|
||
After installing Node, you should be able to run the following command to install development tools (like | ||
[Bower][] and [BrowserSync][]). You will only need to run this command when dependencies change in package.json. | ||
|
||
npm install | ||
|
||
We use [Gulp][] as our build system. Install the Gulp command-line tool globally with: | ||
|
||
npm install -g gulp | ||
|
||
Run the following commands in two separate terminals to create a blissful development experience where your browser | ||
auto-refreshes when files change on your hard drive. | ||
|
||
mvn | ||
gulp | ||
|
||
Bower is used to manage CSS and JavaScript dependencies used in this application. You can upgrade dependencies by | ||
specifying a newer version in `bower.json`. You can also run `bower update` and `bower install` to manage dependencies. | ||
Add the `-h` flag on any command to see how you can use it. For example, `bower update -h`. | ||
|
||
# Building for production | ||
|
||
To optimize the ynov client for production, run: | ||
|
||
mvn -Pprod clean package | ||
|
||
This will concatenate and minify CSS and JavaScript files. It will also modify `index.html` so it references | ||
these new files. | ||
|
||
To ensure everything worked, run: | ||
|
||
java -jar target/*.war --spring.profiles.active=prod | ||
|
||
Then navigate to [http://localhost:8080](http://localhost:8080) in your browser. | ||
|
||
# Testing | ||
|
||
Unit tests are run by [Karma][] and written with [Jasmine][]. They're located in `src/test/javascript` and can be run with: | ||
|
||
gulp test | ||
|
||
|
||
|
||
# Continuous Integration | ||
|
||
To setup this project in Jenkins, use the following configuration: | ||
|
||
* Project name: `ynov` | ||
* Source Code Management | ||
* Git Repository: `[email protected]:xxxx/ynov.git` | ||
* Branches to build: `*/master` | ||
* Additional Behaviours: `Wipe out repository & force clone` | ||
* Build Triggers | ||
* Poll SCM / Schedule: `H/5 * * * *` | ||
* Build | ||
* Invoke Maven / Tasks: `-Pprod clean package` | ||
* Post-build Actions | ||
* Publish JUnit test result report / Test Report XMLs: `build/test-results/*.xml` | ||
|
||
[JHipster]: https://jhipster.github.io/ | ||
[Node.js]: https://nodejs.org/ | ||
[Bower]: http://bower.io/ | ||
[Gulp]: http://gulpjs.com/ | ||
[BrowserSync]: http://www.browsersync.io/ | ||
[Karma]: http://karma-runner.github.io/ | ||
[Jasmine]: http://jasmine.github.io/2.0/introduction.html | ||
[Protractor]: https://angular.github.io/protractor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "ynov", | ||
"version": "0.0.0", | ||
"appPath": "src/main/webapp", | ||
"testPath": "src/test/javascript/spec", | ||
"dependencies": { | ||
"angular": "1.4.8", | ||
"angular-aria": "1.4.8", | ||
"angular-bootstrap": "0.14.3", | ||
"angular-cache-buster": "0.4.3", | ||
"angular-cookies": "1.4.8", | ||
"angular-dynamic-locale": "0.1.28", | ||
"angular-i18n": "1.4.8", | ||
"angular-local-storage": "0.2.3", | ||
"angular-loading-bar": "0.8.0", | ||
"angular-resource": "1.4.8", | ||
"angular-sanitize": "1.4.8", | ||
"angular-translate": "2.8.1", | ||
"angular-translate-interpolation-messageformat": "2.8.1", | ||
"angular-translate-loader-partial": "2.8.1", | ||
"angular-translate-storage-cookie": "2.8.1", | ||
"angular-ui-router": "0.2.15", | ||
"bootstrap-sass": "3.3.5", | ||
"jquery": "2.1.4", | ||
"json3": "3.3.2", | ||
"modernizr": "3.2.0", | ||
"ng-file-upload": "10.0.2", | ||
"ngInfiniteScroll": "1.2.1", | ||
"swagger-ui": "2.1.3" | ||
}, | ||
"devDependencies": { | ||
"angular-mocks": "1.4.8", | ||
"angular-scenario": "1.4.8" | ||
}, | ||
"resolutions": { | ||
"angular": "1.4.8", | ||
"angular-cookies": "1.4.8", | ||
"jquery": "2.1.4" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var notify = require("gulp-notify"); | ||
var argv = require('yargs').argv; | ||
|
||
module.exports = function() { | ||
|
||
var args = Array.prototype.slice.call(arguments); | ||
var notification = argv.notification === undefined ? true : argv.notification; | ||
// Send error to notification center with gulp-notify | ||
if(notification) { | ||
notify.onError({ | ||
title: "JHipster Gulp Build", | ||
subtitle: "Failure!", | ||
message: "Error: <%= error.message %>", | ||
sound: "Beep" | ||
}).apply(this, args); | ||
} | ||
// Keep gulp from hanging on this task | ||
this.emit('end'); | ||
|
||
}; |
Oops, something went wrong.