Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

jaypea/composer-webasset-installer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

What is the Webasset Installer?

The WebAsset Installer is a custom installer for Composer: http://getcomposer.org/doc/articles/custom-installers.md

Wrap-up: The WebAsset installer will install Composer packages with the type of "webasset" in an configurable folder instead of the vendor directory.

How to use it?

The composer.json inside your webassets package should have type and require setup like this:

{
	"name": "vendor/MyWebPackage",
	"type": "webasset",
	"require": {
		"jaypea/web-asset-installer": "*"
	},
    "extra": {
        "target-dir": "htdocs/"
    }
}

The composer.json in your main project might look like this:

{
	"name": "main/project",
	"require": {
		"vendor/MyWebPackage": "*"
	}
}

About

Composer Webasset Installer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%