express-mongoose-es6-rest-api icon indicating copy to clipboard operation
express-mongoose-es6-rest-api copied to clipboard

if we create a new folder in es6 code, it is not being created in the 'dist' folder.

Open leninlawrence00 opened this issue 8 years ago • 2 comments

I have created a 'views' folder in server and ran 'yarn start' . But no folder is being created in 'dist'

leninlawrence00 avatar Oct 25 '17 06:10 leninlawrence00

I have changed the gulpfile.babel.js file like below and it resolved the issue

const paths = { js: ['.//*.js', '!dist/', '!node_modules/', '!coverage/'], nonJs: ['./package.json', './.gitignore', './.env','./**/.ejs'], tests: './server/tests/.js' };

leninlawrence00 avatar Oct 25 '17 08:10 leninlawrence00

added one more task in gulp to process ejs files

gulp.task('ejs',()=> gulp.src('./views/*.ejs') .pipe(gulp.dest('./dist'))

);

I seek better solution for this

leninlawrence00 avatar Oct 25 '17 08:10 leninlawrence00