grunt-fenbi-tasks

2019-10-13 admin

grunt-fenbi-tasks是什么

什么是grunt-fenbi-tasks,Grunt tasks used by fenbi.com.

grunt-fenbi-tasks使用教程帮助文档

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.8 2013-04-16 Fix data uri in hash task. 0.1.7 2013-01-05 Support grunt 0.4.0. 0.1.6 2013-01-05 Add minimize task with source map support, and add source map support to hash task. 0.1.5 2012-12-18 Move handlebars to grunt-handlebars-seajs task. 0.1.3 2012-12-07 Rename task cdn to hash. 0.1.2 2012-12-07 Fix combo bug, modify README.md. 0.1.0 2012-12-06 First release.

License

Copyright © 2012 PerfectWorks Licensed under the MIT license.

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-77254.html

文章标题:grunt-fenbi-tasks

回到顶部