Sunday, 16 April 2017

Copy file but don't include folder to destination directory for babel -d

This script copies app.js and api.js to dist but I don't want an src folder to be created under dist, I just wanna put those two files in the root of the dist folder:

"copy:service": "babel src/app.js -d ./dist && babel src/api.js -d ./dist"

right now this creates dist/src/app.js and dist/src/api.js

not sure how to tweak this to get it how I want.



via PositiveGuy

No comments:

Post a Comment