Kickstart your frontend by using gulp, sass/scss and webpack
First, clone this repository
git clone https://github.com/beardcoder/frontend-kickstart.git
Then, adjust the config for your projekt in the package.json:
{
"config": {
"asset-dir": "./assets/",
"web-dir": "./web/"
}
}
If you have a special project structure like TYPO3 adjust the path's in the gulpfile.js
var path = {
css_source: fs.resolve(__dirname, config["asset-dir"] + '/scss/**/*.scss'),
css_dest: fs.resolve(__dirname, config["web-dir"] + '/Resources/Public/Css/'),
js_source: fs.resolve(__dirname, config["asset-dir"] + '/javascript/basic.js'),
js_dest: fs.resolve(__dirname, config["web-dir"] + '/Resources/Public/JavaScript/')
};
At first install all dependencies
npm i
Then you can build sources with
npm run build
You can run the build with a watch task for easy work
npm run work