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
Post a Comment