drioemgaoin / GulpMainNpmFiles

MIT License
9 stars 9 forks source link

Simple usage test #1

Open ILyaCyclone opened 7 years ago

ILyaCyclone commented 7 years ago

Hello. I ran a simple test to check how this works.

  1. Installing gulp-main-npm-files and a couple of common client libraries: jquery and bootstrap.
    npm install gulp --save-dev
    npm install gulp-main-npm-files --save-dev
    npm install jquery --save
    npm install bootstrap --save
  2. gulpfile.js
    
    var gulp = require('gulp');
    var mainNpmFiles = require('gulp-main-npm-files');

gulp.task('default', function() { gulp.src(mainNpmFiles(), { base:'./' }) .pipe(gulp.dest('./build')); });



I expect all needed files (js, css, fonts) from my client libraries to be in build folder after I run the task, but what I actually get is just jquery.js and nothing from bootstrap.

Am I getting something wrong about your plugin?
Thanks.
drioemgaoin commented 7 years ago

sorry for my late reply! I eill take a look and come back to you asap!

mtgibbs commented 7 years ago

@ILyaCyclone I had the same issue, but then I realized that I believe this to be his intent. The plugin is called "Get MAIN Npm File", so whatever that dependency's package.json file is declaring as that is what is going to get copied. I do not believe the scope of this plugin is for copying the contents of the package.