Skip to content

Output a list of all javascript files included within a javascript twig tag.

License

Notifications You must be signed in to change notification settings

basekit/twig-list-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twig-list-js

Output an array of all javascript files included within javascript twig tag in a twig template. We use it to avoid manually maintaining a list of js files to be included in the test run. Depending on some command line switches, the runner decides which twig templates to use in the tests and get the list of js files to include from it.

Quick guide

To install: npm install twig-list-js. You probably want to use --save-dev flag for usage only in your test suite.

Usage:

const twigParser = require('twig-list-js');

const myArray = twigParser(template);

You can specify a path to a template instead of passing the content of the file.

About

Output a list of all javascript files included within a javascript twig tag.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published