1.0.18 • Published 11 months ago

drupal-asset-library-versions v1.0.18

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
11 months ago

Drupal Asset Library Versions

Description

Add and update asset version numbers in your *.libraries.yml file automatically using git status and the file paths from webpack.mix.js.

Usage

  • Configure the dalv command that was added in the scripts section of package.json. Configuration details below.
  • Add the dalv command to the end of the production command in the scripts section of package.json
  • The script will run automatically on npm run production.

Configure

On npm install, following script command will be automatically prepended to the scripts section of package.json.

"dalv": "drupal-asset-library-versions --compiledFiles=main.js,main.css --librariesYmlDir=../"

This command can be used on its own npm run dalv, however, it should to be added to the end of the production command for a more succinct workflow, and also so the script can work with specified compiled files.

E.g.

"production": "npx mix --production && npm run dalv"

The compiledFiles config option is provided to specify compiled files that map to a library in *.libraries.yml. main.js,main.css are the default values. This is a comma separated list.

The librariesYmlDir config option is provided to specify the location of *.libraries.yml relative to the current directory (i.e. where package.json is located). The default value is ../.

1.0.18

11 months ago

1.0.17

12 months ago

1.0.16

12 months ago

1.0.15

12 months ago

1.0.12

12 months ago

1.0.11

12 months ago

1.0.10

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago