You have heard of all the fancy new frontend-tools and want to use them, but don't have the time or nerve to set everything up? That's what this is for: everything you need to get started with 'modern' frontend development with ES2015, rollup, sass and linters to keep your code sane and consistent. This is a highly opinionated, but easily extensible collection of tools for a nice workflow to create modern websites.
Make sure that you have a current version of node and npm installed on your system. Node is required for the whole build process and gulp.
curl -L https://npmjs.org/install.sh | shin your terminal or have a look here
After having installed node and npm, open a fresh terminal and check if everything is installed correctly by typing:
node -v && npm -v, this should result in sth. like:
This package is tested with current node LTS (4.x) and the latest stable (6.x) and should work without any issues.
Clone this repository (or download the .zip-File and extract everything), open up a terminal and type:
This will take a while, npm will install gulp (our build system of choice) globally and all dependencies for this starter kit. If something fails, try removing the node_modules-folder and run
npm install again. On some systems you have to this with sudo, so try
sudo npm install if it still fails.
For the lazy people:
git clone ./myprojectcd myprojectnpm i
Create a new virtual host pointing to the public-folder of this project, and start up your LAMP or nginx-Stack. I often use this starter kit with CMSs or PHP-Frameworks of various kinds, so creating a virtual host is the correct way to use this starter-package.
This project is intended to be used for new websites/projects. I do not recommend updating old frckl-base instances to a current version.
After installing frckl-base, you should edit the file config.js and configure it to your liking, normally you just have to change two to three options:
There are a lot of other options in config.js, just have look at them and read the comments and change everything to your liking. You can change all paths, browser-support for autoprefixer, deactivate linters etc. pp.
You now should be all set up, to use this thing, just type
npm run in your terminal and start coding. The default task starts the watch-task on all your files and you can code away. It also initalizes the Browsersync proxy for fast and easy live-previews and remote debugging.
Your websites root-folder is the folder ./public/ — throw in any CMS, PHP or plain HTML here. There are some presets in there, feel free to delete them or use them as a starting point, especially have a look at ./public/index.php for how to use and include all generated CSS and JS files in your page and some SVG-usage examples.
All done? If you want to build a minified and production-ready version of your project, type
gulp build or
npm run build. This task checks for errors and creates minified versions of your CSS and JS, copies images etc.
For more documentation on tasks, conventions, building and other issues, please refer to the separate documention in the doc-folder, you will find a lot of information for the different aspects of this project:
npm cache clean && npm installand try again...
sudo npm install -g gulp
This is not thoroughly tested on Windows and any linuxes except for ubuntu/debian.
Ctrl+C ↑ ↲ in the terminal running gulp), so that the watcher recognizes the new files. This will hopefully be fixed with gulp4.
Feel free to open issues and send me pull requests.
Steffen Rademacker @webgefrickel
There are way to many people, that influenced me and everything in this repository. If you have the feeling that I should mention you - say so. I took heavy inspiration from those projects and the people behing it:
frckl-base is published under the MIT License