Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.1 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.1 KB

Frontend kickstarter

Kickstart your frontend by using gulp, sass/scss and webpack

Usage

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/"
    }
  }

Additional settings

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/')
};

Start

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

License

MIT License