express-mongoose-es6-rest-api
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.
I have created a 'views' folder in server and ran 'yarn start' . But no folder is being created in 'dist'
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' };
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