-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making websites with October CMS - Part 04 - Setting Up Laravel Elixir
- Loading branch information
Ivan Doric
committed
Aug 2, 2016
0 parents
commit 2a51981
Showing
2,020 changed files
with
388,296 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,12 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 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 @@ | ||
* text=auto |
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 @@ | ||
/bootstrap/compiled.php | ||
/vendor | ||
composer.phar | ||
.DS_Store | ||
.idea | ||
.env | ||
.env.*.php | ||
.env.php | ||
php_errors.log | ||
nginx-error.log | ||
nginx-access.log | ||
nginx-ssl.access.log | ||
nginx-ssl.error.log | ||
php-errors.log | ||
sftp-config.json | ||
selenium.php | ||
composer.lock | ||
|
||
# for netbeans | ||
nbproject | ||
|
||
/node_modules |
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,52 @@ | ||
<IfModule mod_rewrite.c> | ||
|
||
<IfModule mod_negotiation.c> | ||
Options -MultiViews | ||
</IfModule> | ||
|
||
RewriteEngine On | ||
|
||
## | ||
## You may need to uncomment the following line for some hosting environments, | ||
## if you have installed to a subdirectory, enter the name here also. | ||
## | ||
# RewriteBase / | ||
|
||
## | ||
## Black listed folders | ||
## | ||
RewriteRule ^bootstrap/.* index.php [L,NC] | ||
RewriteRule ^config/.* index.php [L,NC] | ||
RewriteRule ^vendor/.* index.php [L,NC] | ||
RewriteRule ^storage/cms/.* index.php [L,NC] | ||
RewriteRule ^storage/logs/.* index.php [L,NC] | ||
RewriteRule ^storage/framework/.* index.php [L,NC] | ||
RewriteRule ^storage/temp/protected/.* index.php [L,NC] | ||
RewriteRule ^storage/app/uploads/protected/.* index.php [L,NC] | ||
|
||
## | ||
## White listed folders | ||
## | ||
RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteCond %{REQUEST_FILENAME} !/storage/app/uploads/.* | ||
RewriteCond %{REQUEST_FILENAME} !/storage/app/media/.* | ||
RewriteCond %{REQUEST_FILENAME} !/storage/temp/public/.* | ||
RewriteCond %{REQUEST_FILENAME} !/themes/.*/(assets|resources)/.* | ||
RewriteCond %{REQUEST_FILENAME} !/plugins/.*/(assets|resources)/.* | ||
RewriteCond %{REQUEST_FILENAME} !/modules/.*/(assets|resources)/.* | ||
RewriteRule !^index.php index.php [L,NC] | ||
|
||
## | ||
## Block all PHP files, except index | ||
## | ||
RewriteCond %{REQUEST_FILENAME} -f | ||
RewriteCond %{REQUEST_FILENAME} \.php$ | ||
RewriteRule !^index.php index.php [L,NC] | ||
|
||
## | ||
## Standard routes | ||
## | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^ index.php [L] | ||
|
||
</IfModule> |
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,21 @@ | ||
language: php | ||
|
||
php: | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
- php: 7.0 | ||
|
||
sudo: false | ||
|
||
install: | ||
- composer self-update | ||
- travis_retry composer install --no-interaction --prefer-source | ||
|
||
before_script: git reset --hard HEAD | ||
|
||
script: vendor/bin/phpunit |
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 @@ | ||
Changelog can be found here: http://octobercms.com/changelog |
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,84 @@ | ||
# Contributing to OctoberCMS | ||
|
||
Thank you for your contributions! | ||
|
||
## Reporting a bug with OctoberCMS | ||
|
||
**Please don't use the main GitHub for reporting bugs with plugins.** If you have found a bug in a plugin, the best place to report it is with the [plugin author](http://octobercms.com/plugins). | ||
|
||
We work hard to process bugs that are reported, to assist with this please ensure the following details are always included: | ||
|
||
- **Bug summary**: Make sure your summary reflects what the problem is and where it is. | ||
|
||
- **Request location**: Enter the URL where this bug occurs, if applicable. | ||
|
||
- **Reproduce steps**: Clearly mention the steps to reproduce the bug. | ||
|
||
- **Expected behavior**: How OctoberCMS should behave on above mentioned steps. | ||
|
||
- **Actual behavior**: What is the actual result on running above steps i.e. the bug behavior - **include any error messages**. | ||
|
||
#### Here's how to report a bug on GitHub | ||
|
||
1. **Register for an account on [GitHub](https://github.com),** if you don't already have one. | ||
|
||
2. **Search for similar bugs.** Perhaps someone has already reported your issue! If so, please add clarification and/or more information to the **existing** bug. | ||
|
||
3. **Create a new bug.** If you don't find any similar issues, you can report your bug via the "new issue" tab once you've logged in. | ||
|
||
4. **Monitor your issue and respond to questions.** It may be necessary to provide additional information upon request or you might be asked if the bug still occurs after an update. | ||
|
||
5. **Close your bug.** In case you notice that the bug doesn't occur anymore, you can close the issue yourself (don't forget to add a note saying the issue is resolved). | ||
|
||
If you find out your bug is actually a duplicate of another bug and only notice that after you created it, please also close your bug with a short reference to the other issue that was there before. | ||
|
||
#### Reporting security issues | ||
|
||
If you wish to contact us privately about any security exploits in OctoberCMS you may find, you can find our email on the [OctoberCMS website](http://octobercms.com). | ||
|
||
## Feature requests | ||
|
||
**Please don't use GitHub issues for suggesting a new feature.** If you have a feature idea, the best place to suggest it is the [OctoberCMS website forum](http://octobercms.com/forum/chan/feature-requests). | ||
|
||
Only use GitHub if you are planning on contributing a new feature and developing it. If you want to discuss your idea first, before "officially" posting it anywhere, you can always join us on [IRC](http://octobercms.com/chat). | ||
|
||
#### GitHub feature requests | ||
|
||
Feature Requests submitted as GitHub Issues specifically mean *"I'd like to see this feature, I'm going to be working on some code to implement it."* It is more like a Pre-Pull Request, in which a developer signifies that he or she wants to see a feature implemented that they think would be really great, and they're committed to coding it. | ||
|
||
It's a great way to launch discussions on the developer side of things because both the core team and the community developer get a chance to talk about the technical side of the feature implementation. It's a great way to exchange ideas about how the logic could work in code. | ||
|
||
## Pull Requests | ||
|
||
Your contributions to the project are very welcome. If you would like to fix a bug or propose a new feature, you can submit a Pull Request. | ||
|
||
To help us merge your Pull Request, please make sure you follow these points: | ||
|
||
1. Describe the problem clearly in the Pull Request description | ||
1. Please make your fix on the `develop` branch. This makes merging much easier. | ||
1. Do not edit compiled asset files such as `october.css` Instead, try to edit the LESS files inside the `less/` directory and then use a compiler. | ||
1. For any change that you make, **please try to also add a test case(s)** in the `tests/unit` directory. This helps us understand the issue and make sure that it will stay fixed forever. | ||
|
||
Thank you for your contributions! | ||
|
||
#### PSR Coding standards | ||
|
||
Also ensure that your Pull Request satisfies the following coding standards: | ||
|
||
- [PSR 2 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) | ||
- [PSR 1 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md) | ||
- [PSR 0 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) | ||
|
||
#### Team rules | ||
|
||
The October team follows the [developer guidelines](http://octobercms.com/docs/help/developer-guide) as much as possible. | ||
|
||
#### Code of conduct | ||
|
||
We promise to extend courtesy and respect to everyone opening an issue. We expect anyone using the bug trackers to do the same. | ||
|
||
All reported issues to this project are valuable. Please act with respect and avoid demeaning, condescending, racist, sexist and other inappropriate language and conduct. Please ensure comments stay professional and constructive. | ||
|
||
#### Escalation process | ||
|
||
We do our best to attend to all reported issues. If you have an important issue that requires attention, consider submitting a bounty using the [OctoberCMS Bounty Program](https://www.bountysource.com/teams/october). |
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,11 @@ | ||
##### Expected behavior | ||
(Describe expected behavior here) | ||
|
||
##### Actual behavior | ||
(Describe actual behavior here) | ||
|
||
##### Reproduce steps | ||
(Describe the steps to reproduce the problem here) | ||
|
||
##### October build | ||
(October build number) |
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,66 @@ | ||
<p align="center"> | ||
<img src="https://github.com/octobercms/october/blob/master/themes/demo/assets/images/october.png?raw=true" alt="October" width="25%" height="25%" /> | ||
</p> | ||
|
||
[October](http://octobercms.com) is a Content Management System (CMS) and web platform whose sole purpose is to make your development workflow simple again. It was born out of frustration with existing systems. We feel building websites has become a convoluted and confusing process that leaves developers unsatisfied. We want to turn you around to the simpler side and get back to basics. | ||
|
||
October's mission is to show the world that web development is not rocket science. | ||
|
||
[![Build Status](https://travis-ci.org/octobercms/october.svg?branch=develop)](https://travis-ci.org/octobercms/october) | ||
[![License](https://poser.pugx.org/october/october/license.svg)](https://packagist.org/packages/october/october) | ||
|
||
### Learning October | ||
|
||
The best place to learn October is by [reading the documentation](http://octobercms.com/docs) or [following some tutorials](http://octobercms.com/support/articles/tutorials). | ||
|
||
You may also watch these introductory videos for [beginners](https://vimeo.com/79963873) and [advanced users](https://vimeo.com/172202661). | ||
|
||
### Installing October | ||
|
||
Instructions on how to install October can be found at the [installation guide](http://octobercms.com/docs/setup/installation). | ||
|
||
### Quick start installation | ||
|
||
For advanced users, run this in your terminal to install October from command line: | ||
|
||
``` | ||
php -r "eval('?>'.file_get_contents('https://octobercms.com/api/installer'));" | ||
``` | ||
|
||
If you plan on using a database, run this command: | ||
|
||
``` | ||
php artisan october:install | ||
``` | ||
|
||
### Development Team | ||
|
||
October was created by [Alexey Bobkov](http://ca.linkedin.com/pub/aleksey-bobkov/2b/ba0/232) and [Samuel Georges](http://au.linkedin.com/pub/sam-georges/31/641/a9), who both continue to develop the platform. | ||
|
||
### Foundation library | ||
|
||
The CMS uses [Laravel](http://laravel.com) as a foundation PHP framework. | ||
|
||
### Contact | ||
|
||
You can communicate with us using the following mediums: | ||
|
||
* [Follow us on Twitter](http://twitter.com/octobercms) for announcements and updates. | ||
* [Follow us on Facebook](http://facebook.com/octobercms) for announcements and updates. | ||
* [Join us on IRC](http://octobercms.com/chat) to chat with us. | ||
|
||
### License | ||
|
||
The OctoberCMS platform is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT). | ||
|
||
### Contributing | ||
|
||
Before sending a Pull Request, be sure to review the [Contributing Guidelines](CONTRIBUTING.md) first. | ||
|
||
### Coding standards | ||
|
||
Please follow the following guides and code standards: | ||
|
||
* [PSR 4 Coding Standards](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) | ||
* [PSR 2 Coding Style Guide](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) | ||
* [PSR 1 Coding Standards](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md) |
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,51 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Register The 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__.'/bootstrap/autoload.php'; | ||
|
||
$app = require_once __DIR__.'/bootstrap/app.php'; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Run The Artisan Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| When we run the console application, the current CLI command will be | ||
| executed in this console and the response sent back to a terminal | ||
| or another output device for the developers. Here goes nothing! | ||
| | ||
*/ | ||
|
||
$kernel = $app->make('Illuminate\Contracts\Console\Kernel'); | ||
|
||
$status = $kernel->handle( | ||
$input = new Symfony\Component\Console\Input\ArgvInput, | ||
new Symfony\Component\Console\Output\ConsoleOutput | ||
); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Shutdown The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Once Artisan has finished running. We will fire off the shutdown events | ||
| so that any final work may be done by the application before we shut | ||
| down the process. This is the last thing to happen to the request. | ||
| | ||
*/ | ||
|
||
$kernel->terminate($input, $status); | ||
|
||
exit($status); |
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,55 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Create The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The first thing we will do is create a new Laravel application instance | ||
| which serves as the "glue" for all the components of Laravel, and is | ||
| the IoC container for the system binding all of the various parts. | ||
| | ||
*/ | ||
|
||
$app = new October\Rain\Foundation\Application( | ||
realpath(__DIR__.'/../') | ||
); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Bind Important Interfaces | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Next, we need to bind some important interfaces into the container so | ||
| we will be able to resolve them when needed. The kernels serve the | ||
| incoming requests to this application from both the web and CLI. | ||
| | ||
*/ | ||
|
||
$app->singleton( | ||
Illuminate\Contracts\Http\Kernel::class, | ||
October\Rain\Foundation\Http\Kernel::class | ||
); | ||
|
||
$app->singleton( | ||
Illuminate\Contracts\Console\Kernel::class, | ||
October\Rain\Foundation\Console\Kernel::class | ||
); | ||
|
||
$app->singleton( | ||
Illuminate\Contracts\Debug\ExceptionHandler::class, | ||
October\Rain\Foundation\Exception\Handler::class | ||
); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Return The Application | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This script returns the application instance. The instance is given to | ||
| the calling script so we can separate the building of the instances | ||
| from the actual running of the application and sending responses. | ||
| | ||
*/ | ||
|
||
return $app; |
Oops, something went wrong.