1.2.7 • Published 8 years ago

smokegen-gulp v1.2.7

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

smokegen-gulp

This project supports the yeoman smokegen generator with a base gulpfile which can be extended.

The project relies on an external configuration file

To also provide support for ionic style projects (based on their sample tabs project), the tasks are externally configured as a node module.

This gives the ability to specify the web root ('app' for yeoman, 'www' for ionic), as well as other runtime configuration.

All of the tasks should work for Yeoman, and probably ionic too, but this has been tested less.

The config file should be named 'smokegen.js' and be placed in the project root.

Yeoman config:

{
  webRoot: "app",
  tasks: {
    wiredepSrc: {
      ignorePath: "../bower_components/",
      exclude: [
        "bower_components/components-font-awesome/css/font-awesome.css",
        "mocks.js"
      ]
    }
  }
}

Ionic config:

module.exports = {
  webRoot: "www",
  tasks: {
    wiredepSrc: {
      ignorePath: "lib/",
      exclude: [
        "angular/angular.js"
      ],
      fileTypes: {
        html: {
          block: /(([ \t]*)<!--\s*bower:*(\S*)\s*-->)(\n|\r|.)*?(<!--\s*endbower\s*-->)/gi,
          detect: {
            js: /<script.*src=['"]([^'"]+)/gi,
            css: /<link.*href=['"]([^'"]+)/gi
          },
          replace: {
            js: '<script src="lib/{{filePath}}"></script>',
            css: '<link rel="stylesheet" href="{{filePath}}" />'
          }
        }
      }
    }
  }
};
1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.4.1

8 years ago

0.4.0

8 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

9 years ago

0.1.12

9 years ago

0.1.11

9 years ago

0.1.10

9 years ago

0.1.9

9 years ago

0.1.8

9 years ago

0.1.7

9 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago