Skip to content

Commit

Permalink
Merge branch 'release/1.0.0-source'
Browse files Browse the repository at this point in the history
Conflicts:
	bower.json
  • Loading branch information
john-pennington committed Aug 12, 2015
2 parents 4028bb4 + 73c6413 commit 9f5e41c
Show file tree
Hide file tree
Showing 33 changed files with 298 additions and 141 deletions.
7 changes: 7 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
languages:
JavaScript: true

exclude_paths:
- "build/*"
- "test/*"
- "gulpfile.js"
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Package/Dependencies
lib/
bower_components/
node_modules/

# Build Output
dist/
coverage/
reports/

# Transient Build Output
Expand All @@ -14,4 +12,6 @@ reports/

# Others
.DS_Store
.idea
.idea
.vs/
.settings/
44 changes: 18 additions & 26 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
{
"esnext": true,
"browser": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"latedef": false,
"unused": true,
"undef": false,
"white": true,
"proto": true,
"newcap": true,
"maxdepth": 5,
"laxbreak": true,
"indent": 4,
"esnext": true,
"freeze": true,
"camelcase": true,
"browser": true,
"globals": {
"angular": false,
"define": false,
"require": false,
"angular": false,
"window": false,
"localStorage": false,
"FormData": false,
"inject": false,
"module": false,
"document": false,
"$": false,
"moment": false
}
"immed": true,
"indent": 4,
"latedef": "nofunc",
"laxbreak": true,
"maxdepth": 4,
"maxparams": 5,
"newcap": true,
"noarg": true,
"nonbsp": true,
"nonew": true,
"proto": true,
"quotmark": "single",
"undef": false,
"unused": "strict",
"white": true
}
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: node_js

notifications:
slack:
rooms:
- secure: "DdtU4qimOtkilUhk3JbKgqmceemoeZ6NgBOK408wi/UP+YNKc1g/zbh0cRF8xoMxUTKOnV1xn7p5MbXRkLbG0jbLiSSdZNkte83GKI+rHmHq5IF+wAcXrwLO+oSFaUDdkQREqMwgPoiQw1OhrMROWj2IW0ynbv08Lr9TfN+jlK4Oj4JEIOb2xNSHgqJexBWKR+qg3JPdSL2kbY6J1PZZ6gqvopQUYOO0toziyUiqdcVpzPBxn6fufL9URybOJdLJI9qnosBNCzzhe8NWoqxNwCLCnF4Pu01249edmtViFFO+ayipfcF+qwiPAcWXgXYl1raRA6h59WDN+Qv/XjHZDXZTJccSXi7tX1J+OelF2S3Tz4HgAKpn+cbmm6VwtrNdsRxHIxuRCaAPBp/SciuLoF0NtwGtXpes1T2cFku1lPDV3/j6FVeMJUHCYF7birjRroY1jveURJxRaKDclmO5UgxYMx2uiO9vltNRgsaKtBtFvkA5oBHxwm6guCRlDI8Vz6VbgvRfA9JC4Cbnoeokmrrea+gcXS35Lh+FdjEPtpSbzeajHwZRxEOmSjwTF/TDH6RItB41jv5YNuTMt+E8uW3585NVcgILQMNFThP5WadwZVRuzVt/3/Zpdx9n/uGqubBgV6UMT+mhuHmyV6NlyO71s4aAMv/XW0zVz6hvggc="

branches:
only:
- development

before_script:
- npm install gulp -g
- npm install bower -g

script:
- bower install
- gulp travis:build

after_success:
- npm install codeclimate-test-reporter -g
- CODECLIMATE_REPO_TOKEN=process.env.CODECLIMATE_REPO_TOKEN codeclimate-test-reporter < reports/lcov/lcov.info
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contributing
Coming soon...

## (Internal) Before Committing
* Make sure to write karma/protractor tests for any new code
* Run `gulp test` - fix any errors
* Run `gulp protractor` - fix any errors
* Push!
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Bullhorn

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
110 changes: 74 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,74 @@
# Bullhorn - Career Portal

## Prerequisites
You will need the following things properly installed on your computer.

* [Git](http://git-scm.com/)
* [Node.js](http://nodejs.org/)
* Bower `npm install -g bower`
* Gulp `npm install -g gulp`

## Installation
* `git clone REPO`
* `cd career-portal`
* `npm install && bower install`

## Running / Development
* `gulp serve` - runs the client with live-reload

## Before Committing
* Make sure to write karma/protractor tests for any new code
* Run `gulp test` - fix any errors
* Run `gulp protractor` - fix any errors
* Push!

### All GULP Tasks Available
* `gulp` or `gulp build` to build an optimized version of your application in `/dist`
* `gulp serve` to launch a browser sync server on your source files (will also build the extension on changes too)
* `gulp serve:dist` to launch a server on your optimized application
* `gulp test` to launch your unit tests with Karma
* `gulp test:auto` to launch your unit tests with Karma in watch mode
* `gulp protractor` to launch your e2e tests with Protractor
* `gulp protractor:dist` to launch your e2e tests with Protractor on the dist files

### "Nice-To-Have" Utilities
* [NPM-Check-Updates](https://github.com/tjunnone/npm-check-updates) - Checks for updates of node modules with CLI
* [Bower-Check-Updates](https://github.com/se-panfilov/bower-check-updates) - Checks for updates of bower dependencies with CLI
# Bullhorn Career Portal
A Bullhorn Platform SDK sample. Allow candidates to search for and apply to jobs.

[![Build Status](https://travis-ci.org/bullhorn/career-portal.svg?branch=development)](https://travis-ci.org/bullhorn/career-portal)
[![Dependency Status](https://gemnasium.com/bullhorn/career-portal.svg)](https://gemnasium.com/bullhorn/career-portal)
[![Code Climate](https://codeclimate.com/github/bullhorn/career-portal/badges/gpa.svg)](https://codeclimate.com/github/bullhorn/career-portal)
[![Test Coverage](https://codeclimate.com/github/bullhorn/career-portal/badges/coverage.svg)](https://codeclimate.com/github/bullhorn/career-portal/coverage)

[Bullhorn Career Portal](http://www.bullhornt.com/) is the next-generation way to share jobs and source candidates from your Bullhorn ATS/CRM instance. Download, configure and host your own career portal, or fork the source code and make it your own.

## Releases

[Latest Stable Version](https://github.com/bullhorn/career-portal/releases/tag/v0.9.1)

Prior Versions
* [v0.9.0](https://github.com/bullhorn/career-portal/releases/tag/v0.9.0)
* [v0.0.0](https://github.com/bullhorn/career-portal/releases/tag/v0.0.0)

## Contribute

There are many ways to [contribute](https://github.com/bullhorn/career-portal/blob/master/CONTRIBUTING.md) to Bullhorn Career Portal.
* [Submit bugs](https://github.com/bullhorn/career-portal/issues) and help us verify fixes as they are checked in.
* Review the [source code changes](https://github.com/bullhorn/career-portal/pulls).
* [Contribute bug fixes](https://github.com/bullhorn/career-portal/blob/master/CONTRIBUTING.md).

## Documentation

* [Hosting](http://www.bullhorn.com)
* [Bullhorn REST API Reference](http://developer.bullhorn.com/articles/getting_started)
* [Bullhorn Platform](http://bullhorn.github.io/platform/)
* [Homepage](http://www.bullhorn.com/)

## Building

In order to build the Bullhorn Career Portal, ensure that you have [Git](http://git-scm.com/downloads) and [Node.js](http://nodejs.org/) installed.

Clone a copy of the repo:

```
git clone https://github.com/bullhorn/career-portal.git
```

Change to the Career Portal directory:

```
cd career-portal
```

Install build tools and dev dependencies:

```
npm install -g bower
npm install -g gulp
npm install
bower install
```

Use one of the following to build and test:

```
gulp # Build an optimized version of Career Portal in `/dist`
gulp build # Build an optimized version of Career Portal in `/dist`
gulp serve # Launch a BrowserSync server on source files, building extensions on changes
gulp serve:dist # Launch a server on optimized version of Career Portal
gulp test # Execute unit tests with Karma
gulp test:auto # Execute unit tests with Karma in watch mode
gulp protractor # Execute e2e tests with Protractor
gulp protractor:dist # Execute e2e tests with Protractor on build output
```

### Additional Utilities
* [NPM-Check-Updates](https://github.com/tjunnone/npm-check-updates) # Checks for updates of node modules with CLI
* [Bower-Check-Updates](https://github.com/se-panfilov/bower-check-updates) # Checks for updates of bower dependencies with CLI
22 changes: 12 additions & 10 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{
"name": "CareerPortal",
"version": "0.9.1",
"version": "1.0.0",
"dependencies": {
"angular": "~1.4.0",
"angular-animate": "~1.4.0",
"angular": "~1.4.3",
"angular-animate": "~1.4.3",
"angular-deferred-bootstrap": "~0.1.7",
"angular-localization": "~1.2.1",
"angular-sanitize": "~1.4.0",
"angular-sanitize": "~1.4.3",
"angular-tooltips": "~0.1.18",
"angular-touch": "~1.4.0",
"angular-touch": "~1.4.3",
"angular-ui-router": "~0.2.15",
"bullhorn-icons": "[email protected]:bullhorn/bullhorn-icons.git#development",
"moment": "~2.10.5",
"bullhorn-icons": "~1.0.1",
"moment": "~2.10.6",
"ng-fastclick": "~1.0.1",
"ng-file-upload": "~6.0.2",
"ng-file-upload": "~6.0.4",
"normalize.css": "~3.0.3",
"roboto-fontface": "~0.4.3",
"angular-deferred-bootstrap": "~0.1.7"
"ng-device-detector": "~1.1.8"
},
"devDependencies": {
"angular-mocks": "~1.4.0"
"angular-mocks": "~1.4.3"
},
"resolutions": {
"angular": "~1.4.0"
"angular": "~1.4.3"
}
}
14 changes: 7 additions & 7 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ gulp.task('html', ['inject', 'partials'], function () {
addRootSlash: false
};

var htmlFilter = $.filter('*.html');
var jsFilter = $.filter('**/*.js');
var cssFilter = $.filter('**/*.css');
var htmlFilter = $.filter('*.html', {restore: true});
var jsFilter = $.filter('**/*.js', {restore: true});
var cssFilter = $.filter('**/*.css', {restore: true});
var assets;

return gulp.src(path.join(conf.paths.tmp, '/serve/*.html'))
Expand All @@ -44,11 +44,11 @@ gulp.task('html', ['inject', 'partials'], function () {
.pipe($.rev())
.pipe(jsFilter)
.pipe($.ngAnnotate())
//.pipe($.uglify({ preserveComments: $.uglifySaveLicense })).on('error', conf.errorHandler('Uglify'))
.pipe(jsFilter.restore())
.pipe($.uglify({ preserveComments: $.uglifySaveLicense })).on('error', conf.errorHandler('Uglify'))
.pipe(jsFilter.restore)
.pipe(cssFilter)
.pipe($.csso())
.pipe(cssFilter.restore())
.pipe(cssFilter.restore)
.pipe(assets.restore())
.pipe($.useref())
.pipe($.revReplace())
Expand All @@ -59,7 +59,7 @@ gulp.task('html', ['inject', 'partials'], function () {
quotes: true,
conditionals: true
}))
.pipe(htmlFilter.restore())
.pipe(htmlFilter.restore)
.pipe(gulp.dest(path.join(conf.paths.dist, '/')))
.pipe($.size({title: path.join(conf.paths.dist, '/'), showFiles: true}));
});
Expand Down
4 changes: 4 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ gulp.task('jenkins:build', function (done) {
runSequence('clean', 'build', 'version', 'test:jenkins', 'report:plato', done);
});

gulp.task('travis:build', function (done) {
runSequence('clean', 'build', 'test:jenkins', done);
});

gulp.task('version', function () {
var pkg = JSON.parse(fs.readFileSync('./package.json'));
var data = '';
Expand Down
5 changes: 5 additions & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"target": "ES6"
}
}
Loading

0 comments on commit 9f5e41c

Please sign in to comment.