grunt-fenbi-tasks

Grunt tasks used by fenbi.com.

grunt-fenbi-tasks

Grunt tasks used by fenbi.com. To generate jsctags, hash file, etc.

Getting Started

This is an internal task set used by fenbi.com, read each source before use it.

Install the module with: npm install grunt-fenbi-tasks

grunt.initConfig({
    hash: {
        release: {
            src: TEMP_BUILD,
            dest: TARGET_RELEASE,
            urlPrefix: '/s/',
            files: '**/*.*',
            staticMap: TARGET + 'WEB-INF/view/global/StaticMap.vm'
        },

        cdn: {
            src: TEMP_BUILD,
            dest: TARGET + 's/',
            urlPrefix: '//cdn.yuanti.ku/s/',
            files: '**/*.*',
            staticMap: TARGET + 'WEB-INF/view/global/StaticMap.vm'
        }
    },

    jsctags: {
        development: {
            root: SOURCE,
            files: [
                'bootstrap/**/*.js',
                'collection/**/*.js',
                'component/**/*.js',
                'global/**/*.js',
                'model/**/*.js',
                'page/**/*.js',
                'router/**/*.js',
                'task/**/*.js',
                'util/**/*.js'
            ]
        }
    }
});

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

0.1.82013-04-16 Fix data uri in hash task. 0.1.72013-01-05 Support grunt 0.4.0. 0.1.62013-01-05 Add minimizetask with source map support, and add source map support to hashtask. 0.1.52012-12-18 Move handlebarsto grunt-handlebars-seajstask. 0.1.32012-12-07 Rename task cdnto hash. 0.1.22012-12-07 Fix combo bug, modify README.md. 0.1.02012-12-06 First release.

License

Copyright (c) 2012 PerfectWorks
Licensed under the MIT license.

HomePage

https://github.com/perfectworks/grunt-fenbi-tasks

Repository

https://github.com/perfectworks/grunt-fenbi-tasks


上一篇:grunt-frontend
下一篇:grunt-dpm

相关推荐

官方社区

扫码加入 JavaScript 社区