This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

slowly adding stuff in

  • Loading branch information...
jung35 committed Mar 6, 2015
1 parent 4c18bcb commit 1717b3832b256468d7febb39abbb4df1969ff5a7
Showing with 194 additions and 30 deletions.
  1. +55 −0 .scrutinizer.yml
  2. +21 −0 .travis.yml
  3. +14 −0 app/Http/Controllers/MockUpController.php
  4. +4 −0 app/Http/routes.php
  5. +13 −12 composer.lock
  6. +1 −1 config/app.php
  7. +46 −12 gulpfile.js
  8. +10 −5 package.json
  9. +30 −0 phpunit.php
View
@@ -0,0 +1,55 @@
filter:
excluded_paths: [tests/*]
checks:
php:
code_rating: true
duplication: true
variable_existence: true
useless_calls: true
use_statement_alias_conflict: true
unused_variables: true
unused_properties: true
unused_parameters: true
unused_methods: true
unreachable_code: true
sql_injection_vulnerabilities: true
security_vulnerabilities: true
precedence_mistakes: true
precedence_in_conditions: true
parameter_non_unique: true
no_property_on_interface: true
no_non_implemented_abstract_methods: true
deprecated_code_usage: true
closure_use_not_conflicting: true
closure_use_modifiable: true
avoid_useless_overridden_methods: true
avoid_conflicting_incrementers: true
assignment_of_null_return: true
avoid_usage_of_logical_operators: true
ensure_lower_case_builtin_functions: true
foreach_traversable: true
function_in_camel_caps: true
instanceof_class_exists: true
lowercase_basic_constants: true
lowercase_php_keywords: true
missing_arguments: true
no_commented_out_code: true
no_duplicate_arguments: true
no_else_if_statements: true
no_space_between_concatenation_operator: true
no_space_inside_cast_operator: true
no_trailing_whitespace: true
no_underscore_prefix_in_properties: true
no_unnecessary_if: true
no_unnecessary_function_call_in_for_loop: true
non_commented_empty_catch_block: true
php5_style_constructor: true
parameters_in_camelcaps: true
prefer_while_loop_over_for_loop: true
properties_in_camelcaps: true
require_scope_for_methods: true
require_scope_for_properties: true
spacing_around_conditional_operators: true
spacing_around_non_conditional_operators: true
spacing_of_function_arguments: true
View
@@ -0,0 +1,21 @@
language: php
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
matrix:
allow_failures:
- php: 7.0
sudo: false
notifications:
email: false
install: travis_retry composer install --no-interaction --prefer-source
script: vendor/bin/phpunit
@@ -0,0 +1,14 @@
<?php namespace App\Http\Controllers;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class MockUpController extends Controller {
public function indexPage()
{
return 'hi';
}
}
View
@@ -1 +1,5 @@
<?php
Route::get('/', [
'as' => 'home', 'uses' => 'MockUpController@indexPage'
]);
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -39,7 +39,7 @@
|
*/
'timezone' => 'UTC',
'timezone' => 'America/Los_Angeles', // Valvetime
/*
|--------------------------------------------------------------------------
View
@@ -1,16 +1,50 @@
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Less
| file for our application, as well as publishing vendor resources.
|
*/
var gulp = require('gulp')
, react = require('gulp-react')
, gulpIf = require('gulp-if')
, uglify = require('gulp-uglify')
, _ = require('underscore')
, elixir = require('laravel-elixir')
, utilities = require('laravel-elixir/ingredients/commands/Utilities')
, notification = require('laravel-elixir/ingredients/commands/Notification');
elixir.extend('react', function (src, options) {
var config = this,
defaultOptions = {
debug : ! config.production,
srcDir: config.assetsDir + 'js',
output: config.jsOutput
};
options = _.extend(defaultOptions, options);
src = "./" + utilities.buildGulpSrc(src, options.srcDir, '**/*.jsx');
options = _.extend(defaultOptions, options);
gulp.task('react', function () {
var onError = function(e) {
new notification().error(e, 'React Compilation Failed!');
this.emit('end');
};
return gulp.src(src)
.pipe(react(options)).on('error', onError)
.pipe(gulpIf(! options.debug, uglify()))
.pipe(gulp.dest(options.output))
.pipe(new notification().message('React Compiled!'));
});
this.registerWatcher('react', options.srcDir + '/**/*.jsx');
return this.queueTask('react');
});
elixir(function(mix) {
mix.less('app.less');
});
elixir(function(mix) {
mix.react();
});
View
@@ -1,6 +1,11 @@
{
"devDependencies": {
"gulp": "^3.8.8",
"laravel-elixir": "*"
}
}
"dependencies": {
"gulp": "^3.8.11",
"gulp-notify": "^2.2.0",
"gulp-react": "^2.0.0",
"laravel-elixir": "^0.10.7",
"gulp-if": "^1.2.5",
"gulp-uglify": "^1.0.1",
"underscore": "^1.7.0"
}
}
View
@@ -0,0 +1,30 @@
<?php
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require __DIR__.'/vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Set The Default Timezone
|--------------------------------------------------------------------------
|
| Here we will set the default timezone for PHP. PHP is notoriously mean
| if the timezone is not explicitly set. This will be used by each of
| the PHP date and date-time functions throughout the application.
|
*/
date_default_timezone_set('UTC');
Carbon\Carbon::setTestNow(Carbon\Carbon::now());

0 comments on commit 1717b38

Please sign in to comment.