Skip to content

Commit ed3b1d9

Browse files
committed
Merge branch 'master' of github.com:jadjoubran/laravel5-angular-material-starter
2 parents 846b231 + cf28bcb commit ed3b1d9

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ before_script:
2222
- export DB_PASSWORD=
2323

2424
install:
25-
- travis_retry composer create-project jadjoubran/laravel5-angular-material-starter=dev-master --no-interaction --prefer-source
25+
- composer install && npm install -g gulp bower && npm install && bower install
2626

27-
script: cd laravel5-angular-material-starter && npm install -g gulp bower && npm install && bower install && php artisan migrate --force && gulp && vendor/bin/phpunit
27+
script:
28+
- php artisan migrate --force && gulp && vendor/bin/phpunit
File renamed without changes.

composer.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,19 @@
3333
]
3434
},
3535
"scripts": {
36-
"post-root-package-install": [
36+
"pre-install-cmd": [
3737
"php -r \"copy('.env.example', '.env');\""
3838
],
39-
"post-create-project-cmd": [
39+
"post-install-cmd": [
4040
"php -r \"unlink('code_of_conduct.md');\"",
4141
"php -r \"unlink('CHANGELOG.md');\"",
4242
"php -r \"unlink('.codeclimate.yml');\"",
4343
"php -r \"unlink('.travis.yml');\"",
44+
"php artisan clear-compiled",
45+
"php artisan optimize",
4446
"php artisan key:generate",
4547
"php artisan jwt:generate"
4648
],
47-
"post-install-cmd": [
48-
"php artisan clear-compiled",
49-
"php artisan optimize"
50-
],
5149
"pre-update-cmd": [
5250
"php artisan clear-compiled"
5351
],

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ elixir(function(mix) {
4444
.angular('./angular/')
4545
.ngHtml2Js('./angular/**/*.html')
4646
.concatScripts(scripts, 'final.js')
47-
.sass('./angular/**/*.scss', 'public/css')
47+
.sass(['./angular/**/*.scss', '!./angular/critical.scss'], 'public/css')
48+
.sass('./angular/critical.scss', 'public/css/critical.css')
4849
.styles(styles, './public/css/final.css')
4950
.version(assets)
5051
.swPrecache();

resources/views/index.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<script type="text/javascript">document.location.href = '/unsupported-browser'</script>
1515
<![endif]-->
1616

17-
<style><?php require("../angular/critical.css") ?></style>
17+
<style><?php require( public_path( "css/critical.css" ) ) ?></style>
18+
1819
</head>
1920
<body>
2021

0 commit comments

Comments
 (0)