gruntjs - yeoman/grunt task : copy a folder to dist -


i new yeoman , grunt, , don't how copy folder created in app directory dist directory.

the folder /data/locales/lng/_ns_.json , there several lng folders , multiple ns files.

i copy whole structure dist directory.

i tried copy task , added :

{     cwd: '<%= yeoman.app %>',     dest: '<%= yeoman.dist %>',     src: [         'data/**/*.{json}'     ] } 

but doesn't work...

"i copy whole structure dist directory."

this should it:

{     cwd: 'data',     dest: 'path/to/dest',     src: ['**'] } 

this copy files , directories within 'data' directory destination directory.

more examples here: https://github.com/gruntjs/grunt-contrib-copy#usage-examples


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -