Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !11812

Build process: use module "load-grunt-tasks" to load grunt tasks

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/tlindig/load_grunt_tasks into master 11 years ago
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 2

Created by: tlindig

This module loads the needed grunt tasks packages depending on the declaration in the package.json.

So we do not need to write it twice (in Gruntfile.js and package.json).

Here is a direct link to the used module: https://github.com/sindresorhus/load-grunt-tasks

Compare
  • master (base)

and
  • latest version
    3583aa27
    2 commits, 2 years ago

2 files
+ 2
- 17

    Preferences

    File browser
    Compare changes
Gruntf‎ile.js‎ +1 -17
packag‎e.json‎ +1 -0
Gruntfile.js
+ 1
- 17
  • View file @ 3583aa27

  • Edit in single-file editor

  • Open in Web IDE


@@ -325,23 +325,7 @@ module.exports = function (grunt) {
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-banner');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-csslint');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-csscomb');
grunt.loadNpmTasks('grunt-html-validation');
grunt.loadNpmTasks('grunt-jekyll');
grunt.loadNpmTasks('grunt-jscs-checker');
grunt.loadNpmTasks('grunt-saucelabs');
grunt.loadNpmTasks('grunt-sed');
require('load-grunt-tasks')(grunt, {scope: 'devDependencies'});
// Docs HTML validation task
grunt.registerTask('validate-html', ['jekyll', 'validation']);
package.json
+ 1
- 0
  • View file @ 3583aa27

  • Edit in single-file editor

  • Open in Web IDE


@@ -40,6 +40,7 @@
, "grunt-saucelabs": "~4.1.2"
, "grunt-sed": "~0.1.1"
, "regexp-quote": "~0.0.0"
, "load-grunt-tasks": "~0.2.0"
}
, "jspm": {
"main": "js/bootstrap"
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
3
build js meta
3
build js meta
    Assign labels
  • Manage project labels

Milestone
v3.1.0
v3.1.0
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Administrator
Reference: twbs/bootstrap!11812
Source branch: github/fork/tlindig/load_grunt_tasks

Menu

Explore Projects Groups Snippets