Given the following source tree:
dev
丨- psd
丨- psd.psd
丨- png.png
丨- css
丨- css.css
丨- image
丨- 1.jpg
丨- 2.png
丨html.html
How do I copy to the pub directory ignoring the psd folder as seen below?
pub
丨- css
丨-…
I want to copy the content of /pckg to /dist with grunt.js.
Here is the structure:
|-- folder1
| |
| |-- folder2
| |
| |-- pckg
| |
| |--myfolder
| | |
…
First time using this task and what I'm trying to achieve is the following:
copy all directories/files from src/js/bower_components/* to build/assets/js/vendor/
I've tried using cwd property but it doesn't work at all when I use it.. I've set it…
I have a directory structure as follows:
source/
libraries/
d3.js
lodash.js
//etc
I have grunt-copy setup as follows:
copy: {
main: {
files: [
{
src: ["source/libraries/*.js"],
dest:…
I have been trying to install Grunt. When I run grunt I receive the following list of messages and warnings:
Local Npm module "grunt-contrib-copy" not found. Is it installed?
Local Npm module "grunt-contrib-uglify" not found. Is it…
Was just wondering if it's possible to set the 'copy' task to do selective copies? Say, if one task wanted to target some files for copying, while another task may want to target others.
I see the 'main' is used in all the examples, but I can't…
I have this grunt-copy setup:
copy: {
images: {
cwd: 'src/multiselect/lib/',
src: 'chosen.css',
dest: './built/css/',
flatten: true,
filter: 'isFile'
}
},
And when I…
Okay I've been stuck on this for 2 weeks, so hopefully someone else here has run across this problem. I'm trying to use Grunt to copy only files that have changed. I've seen numerous examples of how to do this with JSLINT and UGLIFY but no…
I'm trying to replace some placeholders in different files as I copy. My gruntfile works fine, but adding in the process option to do the replacements, it's just not working. Below is the relevant section of my gruntfile:
grunt.initConfig({
…
I know I can setup a task in grunt.config that will grunt-contrib-copy files from src to dest, and looking through Grunt docs I know I can copy single files using grunt.file.copy.
But, is it possible to create grunt-contrib-copy tasks on the fly in…
I have a folder structure that looks like this
I want to copy the folder img/ from src/ to the dist/ folder.
I use the following grunt command, using grunt-contrib-copy:
copy:{
main : {
files : [
{
…
I have an issue when copy a lot of files (images, pdf, etc) from one directory to another one. In a destination folder all these files is corrupted.
I tried to use both noProcess and processContentExclude options but it brought no results.
My copy…
New to gruntjs and currently using it for moving some npm distributions to a public/js folder.
Here is the code:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
…
I was under the impression that in grunt.registerTask(taskName, taskList) the taskList would run sequentially (i.e. one completes before moving onto the next). I guess that is not the case?
Given this task:
grunt.registerTask('local-debug', [
…