include_general

1.0.19 • Public • Published

include_general

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

Install with npm

$ npm i include_general --save-dev

Usage

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']);
}

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

maximolm

License

Copyright © 2018 maximolm Licensed under the MIT license.


This file was generated by readme-generator on June 27, 2018.

Readme

Keywords

Package Sidebar

Install

npm i include_general

Weekly Downloads

17

Version

1.0.19

License

none

Unpacked Size

6.34 kB

Total Files

3

Last publish

Collaborators

  • maximolm