-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#468) use npm packages to replace bower dependencies
- Loading branch information
1 parent
bf84949
commit 6f64f58
Showing
9 changed files
with
71 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
node_modules/ | ||
source/_bower_components/ | ||
source/assets/ | ||
source/_js/smartresize.js | ||
source/_js/smartresize.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.sass-cache | ||
assets | ||
node_modules | ||
_bower_components |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
var jsDestFolder = './source/assets/js/'; | ||
var cssDestFolder = './source/assets/css/'; | ||
var fontsDestFolder = './source/assets/fonts/'; | ||
|
||
var fancyboxPath = './node_modules/@fancyapps/fancybox'; | ||
var fontAwesomePath = './node_modules/font-awesome'; | ||
var jqueryPath = './node_modules/jquery'; | ||
|
||
module.exports = function(grunt) { | ||
grunt.config.set('copy', { | ||
// Copy all needed files by types | ||
dev: { | ||
files: [ | ||
// fancybox | ||
{ | ||
src: fancyboxPath + '/dist/jquery.fancybox.css', | ||
dest: cssDestFolder, | ||
flatten: true, | ||
expand: true | ||
}, | ||
{ | ||
src: fancyboxPath + '/dist/jquery.fancybox.js', | ||
dest: jsDestFolder, | ||
flatten: true, | ||
expand: true | ||
}, | ||
{ | ||
src: fancyboxPath + '/src/js/thumbs.js', | ||
dest: jsDestFolder, | ||
flatten: true, | ||
expand: true | ||
}, | ||
{ | ||
src: fancyboxPath + '/src/css/thumbs.css', | ||
dest: cssDestFolder, | ||
flatten: true, | ||
expand: true | ||
}, | ||
// font-awesome | ||
{ | ||
src: fontAwesomePath + '/css/font-awesome.css', | ||
dest: cssDestFolder, | ||
flatten: true, | ||
expand: true | ||
}, | ||
{ | ||
src: fontAwesomePath + '/fonts/*', | ||
dest: fontsDestFolder, | ||
flatten: true, | ||
expand: true | ||
}, | ||
// jquery | ||
{ | ||
src: jqueryPath + '/dist/jquery.js', | ||
dest: jsDestFolder, | ||
flatten: true, | ||
expand: true | ||
} | ||
] | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters