UNPKG

npmd-bootstrap

Version:

Install Bootstrap from bower into a node app via npm. Bootstrap: Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development. Deploys assets into node_assets

76 lines (71 loc) 1.86 kB
/* * bower_bootstrap * http://github.amexpub.com/modules/bower_bootstrap * * Copyright (c) 2013 Amex Pub. All rights reserved. */ 'use strict'; module.exports = function(grunt) { grunt.initConfig({ jsbeautifier: { files: ["<%= jshint.all %>"], options: { "indent_size": 2, "indent_char": " ", "indent_level": 0, "indent_with_tabs": false, "preserve_newlines": true, "max_preserve_newlines": 10, "brace_style": "collapse", "keep_array_indentation": false, "keep_function_indentation": false, "space_before_conditional": true, "eval_code": false, "indent_case": false, "unescape_strings": false, "space_after_anon_function": true } }, simplemocha: { options: { globals: ['should'], timeout: 3000, ignoreLeaks: false, ui: 'bdd', reporter: 'tap' }, all: { src: 'test/**/*.js' } }, jshint: { options: { jshintrc: '.jshintrc' }, all: [ 'Gruntfile.js', 'config/**/*.js', 'index.js', 'lib/**/*.js', 'routes/**/*.js', 'test/**/*.js' ] }, copy: { main: { files: [ {expand: true,cwd: 'bower_components/bootstrap/dist', src: ['**'], dest: '../../public/node_assets/bootstrap/'}, ] } }, clean: ['../../public/node_assets/bootstrap/'] }); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-simple-mocha'); grunt.loadNpmTasks('grunt-jsbeautifier'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.registerTask('default', ['jshint', 'simplemocha']); grunt.registerTask('lint', 'jshint'); grunt.registerTask('test', 'simplemocha'); };