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

One of my dependency folders is not copied from the bower dir to targetDir #137

Open
plato-cambrian opened this issue Sep 18, 2014 · 0 comments

Comments

@plato-cambrian
Copy link

[email protected] , [email protected]

I am writing a grunt-init script that assembles a scaffold for a material design component. It's a two step process:

First, run the grunt-init script to copy some scaffold content and generate src/bower.json, src/package.json, and src/Gruntfile.js in the current working directory.

Second, run grunt on this newly generated gruntfile. It contains a grunt-bower-task to install the component's bower dependencies into component/bower_components.

The package.json has a 'script':{'postinstall': 'grunt'}.
Thus, I should be able to have all my dependencies sorted after:

$ cd working-directory
$ grunt-init sopro-component
$ cd src; npm install

As you can see from the snippets below, I expect to see my sopro-material folder in component/bower_components after the grunt script runs.

What actually happens is, every other bower dependency is correctly copied there, but the sopro-material folder is not!

The folder DOES appear in the bower directory next to the bower.json file (not the target directory), e.g. src/bower_components/sopro-material

Please let me know if you can reproduce this or identify my problem!

//generated bower.json snippet
"dependencies": {
  "sopro-material": "https://github.com/sopro-components/sopro-material.git#0.1.2",
  "jquery": "2.x",
  "roboto": "https://github.com/sopro-components/roboto.git#0.1.0"
},


//generated Gruntfile.js snippet
bower: {
  install: {
    options:{
      targetDir: '../component/bower_components',
      layout: 'byComponent',
      copy: true,
      cleanTargetDir: true,
      verbose: true,
    }
  },
},
grunt.loadNpmTasks('grunt-bower-task');
grunt.registerTask('default', ['bower:install']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants