git clone url/to/project
npm i
npm run serve
git clone https://github.com/name/project
npm i
npm run serve
entry: {
messenger: './messenger',
about: './about',
},
gulp.task('browser-sync', function() {
browserSync({
server: {
baseDir: 'dev/client'
},
notify: false
});
});
gulp.task('watch', ['browser-sync',], function() {
gulp.watch('ваш_путь/**/*.js', browserSync.reload);
});
npm i -D babel-plugin-transform-react-jsx
gulp.task('babel', function() {
return gulp.src('js/source/**/*.js')
.pipe(babel({
plugins: ['transform-react-jsx']
}))
.pipe(gulp.dest('js/build'))
});