From e91e50b4dcb8cbf4b85f1bf706b595231e303f5b Mon Sep 17 00:00:00 2001 From: Jonathan Ginn Date: Wed, 25 Jan 2017 10:16:42 +0000 Subject: [PATCH] Remove "type" from composer.json (#4) * Remove "type" from composer.json * Update README.md * Update composer.json --- README.md | 13 ++----------- composer.json | 1 - 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index f3278cc..60d5a0d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -# Important note for Craft CMS users -Because Composer doesn't let you install to a folder of your choice, at the current time we are hijacking the [composer/installers](https://github.com/composer/installers) package for 'Craft Plugins'. This means you must add an item to your composer.json to place it in a folder of your choice. This will only affect users who use Craft CMS. - # Info This project is a collection of useful utilities, applicable to any web project. This includes Sass mixins. @@ -15,23 +12,17 @@ Then include it in your composer: And specify a version or minimum version. -As this repo is private on BitBucket, your development machine *and* your servers will need authorised keys on bitbucket to pull this repo. - # Configure where you want the package to go -In your `composer.json`, add the following: +If you want to install somewhere other than `vendor`, in your `composer.json` add the following: ``` "extra": { "installer-paths": { - "wp-content/themes/timber/packages/{$name}": ["type:craft-plugin"] + "wp-content/themes/timber/packages/{$name}": ["wearebase/web-front-end-utilities"] } } ``` -This plugin identifies itself as a `craft-plugin`. The addition above will send all `craft-plugin` to a directory you specify. I recommend to send it to your src directory in a third-party folder you can easily access with Sass, Twig, etc. If using Wordpress, send it to a theme/third-party directory and gitignore that folder. - -If you do not specify this item in `composer.json` this utility will install to `craft/plugins/{$name}` as that is the default from `composer/installer` package. - # Enabling ## Sass diff --git a/composer.json b/composer.json index ed16c3f..938c31f 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,6 @@ { "name": "wearebase/web-front-end-utilities", "description": "Useful Front End Utilities", - "type": "craft-plugin", "license": "MIT", "require": { "composer/installers": "^1.0"