UNPKG

alixir

Version:

Alixir is npm package built on top of laravel-elixir and gulp, its an easy cleaning solution to CSS / JS mess. Giving you a nice clean structure for organizing all your sites assets whether it is images, javascript files, or stylesheets and keeps the powe

41 lines (34 loc) 2.01 kB
# scripts.json **Note** with `type` you can use all mix calls script, coffee, browserify ...... etc ``` /** * Documentation * [ // here is array of template object * { * "template": "app", // template name use to filter gulp when you run gulp --template app * "required": true, // add this if you want all files under this name to be compiled every time * "files": [ { * "type": "scripts", // type will apply mix function call e.g: mix.scripts(....); * "filesIn": [ "js/file1.js", "%<<<bower%/package-name/js/file2.js") , bowerPath ("js/file3.js") ], // filesIn will be the first args for mix function (string/array of strings) e.g: mix.scripts(filesIn, ...); * * // "js/file1.js" it means resources/assets/js/file1.js (resources/assets/ elixir default folder) * // "%<<<bower%/package-name/js/file2.js" it means ../../../vendor/bower_dl/package-name/js/file1.js * // by overriding config you can define multiple filters: {"%<<<bower%": "../../../vendor/bower_dl", ........ etc } * * "fileOut": "public/js/app.js", // the output file of binding the 3 files above * "version": "js/app.js" // version will be the version file when mix.version([.....]) called * }] * }, * { // another template * "template": "something", // template name use to filter gulp when you run gulp --template something * "required": true, // add this if you want all files under this name to be compiled every time * "files": [ { * "type": "scripts", // type will apply mix function call e.g: mix.scripts(....); * "filesIn": "js/app-something.js", // filesIn will be the first args for mix function (string/array of strings) e.g: mix.scripts(filesIn, ...); * "version": "js/app.js" // version will be the version file when mix.version([.....]) called * }] * }, * ] */ ``` [Go Back](README.md)