Skip to content

Suggestion: add grunt setup to the table  #24

Description

@VirtueMe

On windows (powershell) the suggested command npm install && bower install --save doesn't work.

This looks to me as something we have to do every time we generate a new app. So maybe we should have a task for it. Typing this task in a platform depend matter is not something we want to do manually as it's treated differently on the various platforms. It also adds complexity to the documentation. We can let grunt-shell abstract away the platform for us. Maybe this is something we could instruct yo to add to the grunt-file for us.

I suggest that the generator adds the following parts to the Gruntfile.js and adds the grunt-shell requirement to the package.json file.

// loadNpmTasks section
grunt.loadNpmTasks('grunt-shell');

// config/task section (initConfig)
shell: {
  setup: {
    command: ['npm install', 'bower install --save'].join('&&'),
    options: {
      stdout: true,
    }
  }
},

// registerTask section
grunt.registerTask('setup', ['shell:setup']);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions