- DNS prefetching
- Assets prefetching
- Page prefetching
- SCSS Structure use Atomic Design
- Write Document for SCSS using SASSDOC
- Font awesome 5.0.10
- Material Design Icon
- in scss/styles.scss file
- change
$pesticide-debug-outline
and$pesticide-debug-depth
totrue
- Install gulp:
yarn global add gulp
- git clone git@github.com:kelsS/fronty-starter.git
- cd fronty-starter
- run
yarn install
- run
yarn dev
or - run 'gulp'
- Edit in file scss/styles
- Find block :
$Icon packages
- fontawesome:
<span class="fa fa-play"></span>
, replaceplay
by icon name. - materialdesignicon:
<span class="mdi mdi-play-circle"></span>
, replaceplay-circle
by icon name.
- Let use
min
files.
A starter toolkit based on Scalable and Modular Architecture for CSS (SMACSS) and Atomic Design for Sass (SCSS) projects. Do what you'd like with it :)
Styles are broken down into the following groups: Base, Layout, Atoms, Molecules, Organisms, States, Themes, Utilities and Overrides
- If needed, install
node
andnpm
(Node Package Manager).
- If needed, install
gulp
withyarn global add gulp
. - Clone this repo with
git clone https://github.com/kelsS/fronty-starter
or download the zip. - In terminal,
cd
to the folder containing your project. Alternatively, you can typecd
and drag the location of the folder into your terminal and hit enter (on Macs). - In terminal, type
yarn install
. If (and only if)yarn install
isn't working, trysudo yarn install
. This should install all dependencies. - In terminal, enter
gulp
. - Your browser should open at
http://localhost:3000
. You can access this same page on any device on the same wifi network and they'll see whats on your screen. It'll even sync scrolls and clicks! - Edit your code inside of the
src
folder. - Your complied and minified css, html, and javascript files will be created and updated in
dist/
. Never edit files within thedist/
folder, as it gets deleted frequently. - Keep
gulp
running while you're making changes. When you want to stop the gulp task, hitctrl + C
.
For theming: add separate file (theme.scss) insrc/scss/themes/
, override the default $theme
variable, and run gulp themes
.
- Yarn
- Node/NPM
- LibSass
- Gulp
- Live reloading with BrowserSync
- Image Minification
- Github Pages deployment
- Sass linting (based on default config)
- Autoprefixer configuration
- SMACSS and Atomic Design-based folder structure
px
toem
,px
torem
and other useful functions.- Mixins for inlining media queries.
- Useful CSS helper classes.
- Default print styles, performance optimized.
- "Delete-key friendly." Easy to strip out parts you don't need.
- Includes:
Normalize.css
for CSS normalizations and common bug fixesCSS Pesticide
for easy CSS debuggingjQuery
via CDN, with a local fallbackModernizr
, via CDN, for feature detectionApache Server Configs
that, among other, improve the web site's performance and security
"autoprefixer": "^8.6.0",
"babel-core": "6",
"babel-preset-env": "^1.7.0",
"bootstrap": "^4.1.1",
"browser-sync": "^2.23.7",
"colors": "^1.2.1",
"del": "^3.0.0",
"gulp": "^3.9.1",
"gulp-babel": "^7.0.1",
"gulp-clean-css": "^3.9.3",
"gulp-concat": "^2.4.3",
"gulp-gh-pages": "^0.5.4",
"gulp-htmlmin": "^4.0.0",
"gulp-imagemin": "^4.1.0",
"gulp-jshint": "^2.1.0",
"gulp-notify": "^3.2.0",
"gulp-nunjucks": "^4.0.0",
"gulp-nunjucks-render": "^2.2.2",
"gulp-plumber": "^1.2.0",
"gulp-postcss": "^7.0.1",
"gulp-rename": "^1.2.0",
"gulp-sass": "^4.0.1",
"gulp-sass-lint": "1.3.4",
"gulp-size": "^3.0.0",
"gulp-sourcemaps": "^2.6.4",
"gulp-strip-comments": "^2.5.2",
"gulp-uglify": "^3.0.0",
"imagemin-pngquant": "^5.1.0",
"jshint": "^2.9.5",
"minimatch": "^3.0.4",
"nunjucks": "^3.1.3",
"popper.js": "^1.14.3",
"run-sequence": "^2.2.1",
"sassdoc": "^2.5.0",
"vinyl-paths": "^2.0.0"
- clean:dist
- styles
- bootstrap
- browser-sync
- deploy
- js-global
- js-inner
- js-home
- js-libs
- sass-lint
- minify-html
- watch
- imagemin
- stats
- sassdoc
- themes
- default
- clean:dist
- js-global
- js-inner
- js-home
- js-libs
- imgmin
- minify-html
- styles
- browser-sync
- watch
- build
- clean:dist
- js-global
- js-inner
- js-home
- js-libs
- imgmin
- minify-html
- bootstrap
- styles
- copy
- audit
- sass-lint
- stats
┌── .gitignore
├── .htaccess
├── .sass-lint.yml
├── .travis.yml
├── .babelrc
├── .browserslistrc
├── src
│ ├── browserconfig.xml
│ ├── crossdomain.xml
│ ├── humans.txt
│ ├── icons
│ │ ├── apple-touch-icon.png
│ │ ├── favicon.ico
│ │ └── favicon.png
│ ├── img
│ │ ├── 7.jpg
│ │ └── home
│ │ └── 7.jpg
│ ├── index.html
│ ├── js
│ ├── robots.txt
│ └── scss
│ ├── 00_base
│ │ ├── _base.scss
│ │ └── _index.scss
│ ├── 01_atoms
│ │ └── _index.scss
│ ├── 02_molecules
│ │ └── _index.scss
│ ├── 03_organisms
│ │ └── _index.scss
│ ├── icons
│ │ └── fontawesome
│ │ └── materialdesignicons
│ │ └── _index.scss
│ ├── layout
│ │ └── _index.scss
│ ├── libs
│ │ ├── bootstrap4
│ │ ├── _index.scss
│ │ ├── _normalize.scss
│ │ └── _pesticide.scss
│ ├── overrides
│ │ └── _index.scss
│ ├── states
│ │ ├── _index.scss
│ │ └── _print.scss
│ ├── themes
│ │ └── themes.scss
│ ├── utilities
│ │ ├── _colors.scss
│ │ ├── _config.scss
│ │ ├── _fonts.scss
│ │ ├── _functions.scss
│ │ ├── _index.scss
│ │ ├── _mixins.scss
│ │ └── _typography.scss
│ ├── styles.scss
│ └── _shame.scss
├── gulpfile.js
└── package.json
This toolkit is based on the work of the following fine people & projects.
- Initially Developed by [@MinaMarkham]
- HTML5 Boilerplate
- Scalable and Modular Architecture for CSS (SMACSS)
- Atomic Design
- Updated package.json to lastest (2018-04-24)
- Moved CDN provider from googleapis to CDNJS
- Don't support old browser (You can use index-support-ie.html if want.)
- remove doc url comment in html file. Moved to README file.
- Added bootstrap, jshint.
- Added bootstrap 4 pricing template.
- Disbled minify html as default. You can setting in gulpfile
- Added function to generate minify file for js-app
- Watching support js files now.
- Fixed bug
Don't run success for first time.
- Added icon pack fontawesome 5.0.10 free version.
- Added icon pack materialdesignicons 2.3.54 free version.
Change by kelsS
- Updated project to use Yarn
- Changed from gulp-autoprefixer to autoprefixer
- Add use of gulp-postcss
- Add Nunjucks HTML Templating
- Updated npm packages as of (2018-06-15)
- Copy Bootstrap 4 SCSS from node_modules to src folder
- Remove bootstrap 4 pricing template
- Change to use Boostrap 4 reboot by default
- Change to use Bootstrap 4 print styles by default
- Add gulp-babel compiling
- Add 00-03 naming convention to Base, Atoms, Molecules, and Organisms so that they are easier to find in folder structure
- Split bootstrap.css and styles.css into two separate files in dist