1.0.13 • Published 7 years ago

composer-autoload-generator v1.0.13

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

ComposerAutoloadGenerator

Usage

Example

In a file called utils/generate-composer-autoload.js in the Composer project root:

import path from 'path';
import ComposerAutoloadGenerator from 'composer-autoload-generator';

const composerAutoloadGenerator = new ComposerAutoloadGenerator({
  pathToFiles: path.normalize(`${__dirname}/../lib`),
  composerRoot: path.normalize(`${__dirname}/../`)
});

On the command line (this example requires the babel-cli package with the babel-preset-node6 preset):

./node_modules/babel-cli/bin/babel-node.js --presets node6 utils/generate-composer-autoload

Settings

KeyTypeDescription
pathToFilesstringThe path to the directory containing files to autoload (recursive). The directory should be in the same location as the composer.json file.
composerRootstringThe path to the directory containing the project's composer.json file.
1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago