A simple Bootstrap Sass framework using Gulp 4, JavaScript, task automation and linting. Developed for use with CodeFirst: Girls. With thanks to Ben Spencer.
-
On a Windows computer, visit the Node JS website and download the "Windows Installer".
-
Run the installer, accepting the licence agreement, keeping all the default options.
-
Restart your Computer.
-
Click the Start Button, type "cmd" to search your applications and open "Command Prompt".
-
Proceed to Step Two.
-
Issues? Visit this website
-
On a Mac, open your app launcher and type "Terminal" to search your applications and open "Terminal".
-
Install the Xcode Command Line Tools by entering the following code into the terminal and press enter:
$ xcode-select --install
-
If you've recently installed Xcode you might need to launch it and accept the terms and conditions.
-
Install Node.js by running the Node Version Manager (NVM) install script (ff you're using Z shell, replace
bash
withzsh
in the above install script):
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
-
Restart your Mac.
-
Proceed to Step Two.
- Using the Terminal/Command Prompt type the following code and press enter to check what version of Node.js is installed:
$ nvm list
- Check what the latest stable version of Node.js available for download:
$ nvm ls-remote --lts | grep Latest
- If the versions differ, type the following code to install to the latest version:
$ nvm install --lts
- Now that you've installed the latest version, check that the latest version is being used:
$ node -v
- Now update the Node.js Package Manager, NPM:
$ npm install -g npm
- Install the Gulp command line utility:
$ npm install --g gulp-cli
- Install all of BootSass's required packages:
$ npm install
- Run 'gulp' to start in development mode and watch for Sass and JavaScript changes.
$ gulp
- Run 'gulp prod' to minify CSS and JavaScript ready for production.
$ gulp prod
- Plinth - A solid and simple base for front-end web projects using Sass, JavaScript, task automation and linting
- Sass Boilerplate - A boilerplate for Sass projects
- include-media - Simple, elegant and maintainable media queries in Sass
- Gulp - Automate and enhance your workflow
- Stylelint - A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
- JSHint - Community-driven tool that detects errors and potential problems in JavaScript code