jgallen23 / grunt-bootstrap

Grunt plugin for generating custom builds of bootstrap
MIT License
16 stars 3 forks source link

custom dest: options for bootstrap between js and css to alternate locations possible? #3

Open brian-lamb-software-engineer opened 10 years ago

brian-lamb-software-engineer commented 10 years ago

I would like to know a way to specify where to output each js and css separately, currently they want to output into a css folder, and a js folder, both inside any dest: specified. However, i want them to land into css/vendor/.. and js/vendor/.. but not matter what configs i have tried i couldnt make that work and was forced to make the dest: dir a tmp dir liek this

bootstrap: {
            dest: 'tmp/bootstrap',
            js: [
                'bootstrap-modal.js',
                'bootstrap-dropdown.js',
                'bootstrap-button.js',
            ],
            css: [
                'responsive-767px-max.less',
                'responsive-768px-979px.less',
                'responsive-1200px-min.less',
                'responsive-navbar.less'
            ]
        },
then make some extra copy commands to copy them into the proper places like this
copy: {
            bootstrapcopyjs: {
                    expand: true,
                    cwd: '<%= build_dir %>/tmp/bootstrap/js/',
                    src: '*',
                    dest: '<%= build_dir %>/js/vendor/'
            },
            bootstrapcopycss: {
                expand: true,
                cwd: '<%= build_dir %>/tmp/bootstrap/css/',
                src: '*',
                dest: '<%= build_dir %>/css/vendor/'
            }
        }
Sure wish i didnt have to do it that way. If anybody knows of a way i can alter the output dest: directory for both bootstraps js and bootstraps css files it would sure be appreciated.