Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: add grunt setup to the table #24

Open
VirtueMe opened this issue Nov 14, 2013 · 0 comments
Open

Suggestion: add grunt setup to the table #24

VirtueMe opened this issue Nov 14, 2013 · 0 comments

Comments

@VirtueMe
Copy link

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']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant