2017 © Pedro Peláez
 

project composer

A fully featured skeleton for a composer managed concrete5 site

image

concrete5/composer

A fully featured skeleton for a composer managed concrete5 site

  • Monday, July 9, 2018
  • by KorvinSzanto
  • Repository
  • 12 Watchers
  • 15 Stars
  • 3,321 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 14 Versions
  • 19 % Grown

The README.md

Composer Based Skeleton for Concrete sites

Latest Version on Packagist ![Software License][ico-license] Build Status ![Total Downloads][ico-downloads], (*1)

Creating a new project

First choose a name for your project. In this example, our project is called "the_oregon_trail", (*2)

$ composer create-project -n concretecms/composer the_oregon_trail

Now you have the latest version of Concrete and you're ready to install!, (*3)

Note: This is a skeleton project. So once you create a project, you can install your own VCS and change the README and all that., (*4)

Starting with the Concrete latest develop

First create a new project, (*5)

$ composer create-project -n concretecms/composer the_oregon_trail

Then navigate into that project and require the dev-develop version of concretecms/core, (*6)

$ cd the_oregon_trail
$ composer require concretecms/core:dev-develop

Installing Concrete

Navigate into your new Concrete project, (*7)

$ cd the_oregon_trail

and use the interactive install commmand that comes with Concrete's CLI tool, (*8)

$ ./vendor/bin/concrete c5:install -i

Follow directions and your site will begin installing!, (*9)

Note: You can also run the CLI tool directly with PHP, (*10)

$ ./public/concrete/bin/concrete

Install a Concrete package using composer

Find the package you'd like to install on packagist.org (in this case concretecms/sample_composer_package), (*11)

Note: You can also use composer's repository functionality to manage private packages using composer, (*12)

$ composer require concretecms/sample_composer_package
$ ./vendor/bin/concrete c5:package-install sample_composer_package

Compiling JS / CSS assets

This library uses Laravel Mix. See webpack.mix.js. To build assets:, (*13)

npm install
npm run dev   # Build for development
npm run hot   # Build with hot reloading enabled (See hot reloading section)
npm run watch # Build with a watcher that rebuilds when files change
npm run prod  # Build for production

Hot Module Replacement

Hot module replacement (hot reloading) allows you to write code and instantly see the changes in your browser, without reloading the page. In order to use hot reloading with Concrete, you'll want to use the mix and mixAsset helper functions to wrap your js and css urls. These functions make it so that your assets automatically detect hot reloading mode and output the appropriate urls, they are safe to use in production:, (*14)

In a page theme:, (*15)

requireAsset(mixAsset('/path/to/file.js'));
  }
}
```

```php
requireAsset(mixAsset('/path/to/js/file.js'));
        $this->requireAsset(mixAsset('/path/to/css/file.css'));
    }
}
```
or in a theme template:
```php



<link href='<?= mix('/path/to/your/asset.css') ?>' />

Free marketplace addons

Do you want to install an add-on that is free in the Concrete marketplace, but not on packagist.org? Go to https://composer.concretecms.org/., (*16)

The Versions

09/07 2018

dev-master

9999999-dev

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

29/03 2018

dev-KorvinSzanto-patch-1

dev-KorvinSzanto-patch-1

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

29/12 2017

v1.1.4

1.1.4.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

28/12 2017

v1.1.3

1.1.3.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

28/12 2017

v1.1.2

1.1.2.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

08/12 2017

v1.1.1

1.1.1.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

07/12 2017

8.x-dev

8.9999999.9999999.9999999-dev

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

07/12 2017

v1.1.0

1.1.0.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

29/09 2017

v1.0.0

1.0.0.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

25/07 2017

v8.2.0

8.2.0.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

12/05 2017

v0.9.2

0.9.2.0

A fully featured skeleton for a composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

25/01 2017

dev-plugin-webroot

dev-plugin-webroot

A fully featured skeleton for composer managed concrete5 site

  Sources   Download

MIT

The Requires

 

22/12 2016

v0.9.1

0.9.1.0

concrete5 composer based installation

  Sources   Download

MIT

The Requires

 

22/12 2016

v0.9.0

0.9.0.0

concrete5 composer based installation

  Sources   Download

MIT

The Requires