switching all dependencies from bower to npm

This commit is contained in:
koenemann 2016-09-13 15:28:53 +02:00
parent 89637692df
commit 736be72788
3 changed files with 13 additions and 61 deletions

View File

@ -173,11 +173,11 @@ gulp.task('copy-assets', function() {
////////////////// All Bootstrap 4 Assets ///////////////////////// ////////////////// All Bootstrap 4 Assets /////////////////////////
// Copy all Bootstrap JS files // Copy all Bootstrap JS files
gulp.src(basePaths.bower + 'bootstrap/dist/js/**/*.js') gulp.src(basePaths.node + 'bootstrap/dist/js/**/*.js')
.pipe(gulp.dest(basePaths.dev + '/js/bootstrap4')); .pipe(gulp.dest(basePaths.dev + '/js/bootstrap4'));
// Copy all Bootstrap SCSS files // Copy all Bootstrap SCSS files
gulp.src(basePaths.bower + 'bootstrap/scss/**/*.scss') gulp.src(basePaths.node + 'bootstrap/scss/**/*.scss')
.pipe(gulp.dest(basePaths.dev + '/sass/bootstrap4')); .pipe(gulp.dest(basePaths.dev + '/sass/bootstrap4'));
////////////////// End Bootstrap 4 Assets ///////////////////////// ////////////////// End Bootstrap 4 Assets /////////////////////////
@ -190,31 +190,31 @@ gulp.task('copy-assets', function() {
.pipe(gulp.dest(basePaths.dev + '/sass/fontawesome')); .pipe(gulp.dest(basePaths.dev + '/sass/fontawesome'));
// owl JS files // owl JS files
gulp.src(basePaths.bower + 'OwlCarousel2/dist/*.js') gulp.src(basePaths.node + 'owl.carousel/dist/*.js')
.pipe(gulp.dest(basePaths.dev + '/js')); .pipe(gulp.dest(basePaths.dev + '/js'));
// Copy all Owl2 SCSS files // Copy all Owl2 SCSS files
gulp.src(basePaths.bower + 'OwlCarousel2/src/scss/*.scss') gulp.src(basePaths.node + 'owl.carousel/src/scss/*.scss')
.pipe(gulp.dest(basePaths.dev + '/sass/owl-carousel2')); .pipe(gulp.dest(basePaths.dev + '/sass/owl-carousel2'));
// Copy all Owl2 CSS files // Copy all Owl2 CSS files
gulp.src(basePaths.bower + 'OwlCarousel2/dist/assets/*.css') gulp.src(basePaths.node + 'owl.carousel/dist/assets/*.css')
.pipe(gulp.dest(basePaths.dev + '/css')); .pipe(gulp.dest(basePaths.dev + '/css'));
// Copy jQuery // Copy jQuery
gulp.src(basePaths.bower + 'jquery/dist/*.js') gulp.src(basePaths.node + 'jquery/dist/*.js')
.pipe(gulp.dest(basePaths.dev + '/js')); .pipe(gulp.dest(basePaths.dev + '/js'));
// _s JS files // _s JS files
gulp.src(basePaths.bower + '_s/js/*.js') gulp.src(basePaths.node + 'underscores-for-npm/js/*.js')
.pipe(gulp.dest(basePaths.dev + '/js')); .pipe(gulp.dest(basePaths.dev + '/js'));
// Copy Tether JS files // Copy Tether JS files
gulp.src(basePaths.bower + 'tether/dist/js/*.js') gulp.src(basePaths.node + 'tether/dist/js/*.js')
.pipe(gulp.dest(basePaths.dev + '/js')); .pipe(gulp.dest(basePaths.dev + '/js'));
// Copy Tether CSS files // Copy Tether CSS files
gulp.src(basePaths.bower + 'tether/dist/css/*.css') gulp.src(basePaths.node + 'tether/dist/css/*.css')
.pipe(gulp.dest(basePaths.dev + '/css')); .pipe(gulp.dest(basePaths.dev + '/css'));
}); });

View File

@ -1,51 +0,0 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '--save',
1 verbose cli '_s' ]
2 info using npm@3.5.2
3 info using node@v4.2.3
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData _s
8 silly fetchOtherPackageData _s
9 silly cache add args [ '_s', null ]
10 verbose cache add spec _s
11 silly cache add parsed spec Result {
11 silly cache add raw: '_s',
11 silly cache add scope: null,
11 silly cache add name: null,
11 silly cache add rawSpec: '_s',
11 silly cache add spec: '/Users/koenemann/Documents/git/understrap/_s',
11 silly cache add type: 'local' }
12 error addLocal Could not install /Users/koenemann/Documents/git/understrap/_s
13 silly fetchPackageMetaData Error: ENOENT: no such file or directory, open '/Users/koenemann/Documents/git/understrap/_s'
13 silly fetchPackageMetaData at Error (native)
13 silly fetchPackageMetaData error for _s { [Error: ENOENT: no such file or directory, open '/Users/koenemann/Documents/git/understrap/_s']
13 silly fetchPackageMetaData errno: -2,
13 silly fetchPackageMetaData code: 'ENOENT',
13 silly fetchPackageMetaData syscall: 'open',
13 silly fetchPackageMetaData path: '/Users/koenemann/Documents/git/understrap/_s' }
14 silly rollbackFailedOptional Starting
15 silly rollbackFailedOptional Finishing
16 silly runTopLevelLifecycles Starting
17 silly runTopLevelLifecycles Finishing
18 silly install printInstalled
19 verbose stack Error: ENOENT: no such file or directory, open '/Users/koenemann/Documents/git/understrap/_s'
19 verbose stack at Error (native)
20 verbose cwd /Users/koenemann/Documents/git/understrap
21 error Darwin 14.5.0
22 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "_s"
23 error node v4.2.3
24 error npm v3.5.2
25 error path /Users/koenemann/Documents/git/understrap/_s
26 error code ENOENT
27 error errno -2
28 error syscall open
29 error enoent ENOENT: no such file or directory, open '/Users/koenemann/Documents/git/understrap/_s'
30 error enoent ENOENT: no such file or directory, open '/Users/koenemann/Documents/git/understrap/_s'
30 error enoent This is most likely not a problem with npm itself
30 error enoent and is related to npm not being able to find a file.
31 verbose exit [ -2, true ]

View File

@ -24,6 +24,7 @@
}, },
"homepage": "https://github.com/holger1411/understrap", "homepage": "https://github.com/holger1411/understrap",
"dependencies": { "dependencies": {
"bootstrap": "^4.0.0-alpha.4",
"bower": "^1.7.9", "bower": "^1.7.9",
"browser-sync": "^2.13.0", "browser-sync": "^2.13.0",
"font-awesome": "^4.6.3", "font-awesome": "^4.6.3",
@ -40,6 +41,8 @@
"gulp-sourcemaps": "^1.6.0", "gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.3", "gulp-uglify": "^1.5.3",
"gulp-watch": "^4.3.6", "gulp-watch": "^4.3.6",
"merge2": "^1.0.2" "merge2": "^1.0.2",
"owl.carousel": "^2.1.4",
"undescores-for-npm": "^1.0.0"
} }
} }