se basea grunt_inclide_js pero para incluir tanto archivos .js, .css, e inserciones php dentro del código genera una tarea grunt para insertar archivos en contexto de aplicaciones web.
Install with npm
$ npm i include_general --save-dev
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
include_general: {
debug:{
options:{
origen:'src/fuente/index.html',
destino:'src/index.php',
},
incersiones:{
inicio:{
archivos: ['src/fuente/php/asdf.php']
},
encabezado:{
livereload: true,
archivos: ['../pie/css/*.css','src/fuente/css/*']
},
cuerpo:{
archivos: ['src/fuente/js/*.js']
}
},
}
});
grunt.loadNpmTasks('include_general');
grunt.registerTask('default', ['include_general']);
}
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
maximolm
Copyright © 2018 maximolm Licensed under the MIT license.
This file was generated by readme-generator on June 27, 2018.