Closed cbleek closed 6 years ago
This should be fixed now, please try.
I am still try to figure out how to load grunt task automatically in public/modules/*/Gruntfile.js
,
so we need to add this line manually in Gruntfile.js
:
grunt.loadTasks('./public/modules/YawikDemoSkin');
After that you need to run grunt to generate minified assets for YawikDemoSkin:
$ grunt
I am still try to figure out how to load grunt task automatically in public/modules/*/Gruntfile.js,
Maybe this grunt plugin will be helpful: https://www.npmjs.com/package/grunt-recurse
Alternatively we could use our newly created composer-plugin to inject the tasks in the main Gruntfile.js (using composer.json config from the module - similar to the assets installation)
I don't know much about grunt yet, but after reading in the documentation a bit, I guess we could create a custom task, that runs the tasks from the modules...
@TiSiE I am not very familiar with grunt too. Maybe we can use a gulp which I think looks like better then grunt.
After doing some research looks like our solution is very simple:
https://github.com/yawik/standard/blob/6880c18b6f0a12eab72abf514aa2bed9ed23dc41/Gruntfile.js#L8-L14
It's working now, but all Gruntfiles.js in modules should use grunt.merge.config
so it can be executed in grunt:
this works now. Thank you
I've installed yawik via:
yawik@php7:~$ composer -sdev create-project yawik/standard YawikDemoPhp7
inatslling yawik/demo-skin fails with
Module (YawikDemoSkin) could not be initialized
.@kilip can you take a look?