Download the PHP package pantheon-se/node-composer without Composer
On this page you can find all versions of the php package pantheon-se/node-composer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pantheon-se/node-composer
More information about pantheon-se/node-composer
Files in pantheon-se/node-composer
Package node-composer
Short Description Installs Node.js, NPM, and Yarn into vendor/bin
License MIT
Homepage https://github.com/pantheon-se/node-composer
Informations about the package node-composer
Node Composer
Composer Plugin to implement asset compilation via Composer with Node.js.
Based on node-composer by mariusbuescher, this Composer plugin will install Node.js, NPM, and/or Yarn into your vendor/bin directory so that they are available to use during your Composer builds. This plugin helps automate the download of the binaries which are linked to the bin-directory specified in your composer.json.
Once installed, you can then use Node, NPM, and Yarn commands in your composer-scripts.
Setup
Simply install the plugin, and the latest Node.js LTS with NPM will be installed - no other configurations are necessary. Optionally, you can specify the node-version
in your composer.json extra configs to declare a specific version of Node.js. For Yarn, yarn-version
can either be set to true
to install the latest, or can be set to a specific version.
Example composer.json with Yarn
Configuration
There are three parameters you can configure:
- Node version (
node-version
) - Yarn version (
yarn-version
) - The download url template for the Node.js binary archives (
node-download-url
).
In the Node download url, replace the following placeholders with your specific needs:
- version:
${version}
- type of your os:
${osType}
- system architecture:
${architecture}
- file format
${format}
Example composer.json with specific versions of Node and Yarn
All versions of node-composer with dependencies
composer/composer Version >=2.0
composer-plugin-api Version >=2.0
symfony/process Version >=3.3
ext-zip Version *
ext-json Version *