Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sutter/sutterlity
Portfolio
https://github.com/sutter/sutterlity
Last synced: 10 days ago
JSON representation
Portfolio
- Host: GitHub
- URL: https://github.com/sutter/sutterlity
- Owner: sutter
- Created: 2016-04-19T04:34:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T00:01:39.000Z (over 1 year ago)
- Last Synced: 2024-10-28T16:42:34.441Z (about 2 months ago)
- Language: CSS
- Homepage: http://sutterlity.fr/
- Size: 38.8 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello Front
[![Maintainability](https://api.codeclimate.com/v1/badges/5f42eea3983e36565d92/maintainability)](https://codeclimate.com/github/sutter/helloFront/maintainability)
Boilerplate SCSS / PUG / ES6 for clean and fast Front-end project.
Work on **src/** folder and gulp build in **dist/**.
## Installation
### Node version manager
Install [NVM](https://github.com/creationix/nvm)
Use the version v8.9.4 of NodeJS.
```bash
nvm use
```### Install Sass
Go to [sass-lang.com/install](http://sass-lang.com/install) for installation in
command line.### Install Yarn
Go to
[https://yarnpkg.com/docs/install](https://yarnpkg.com/docs/install/#mac-tab)### Install Gulp
Go to [https://gulpjs.com/](https://gulpjs.com/)
### Download the dependencies NPM
```bash
yarn install
```### Install Tooling
Use [Prettier](https://github.com/prettier/prettier) for clean your **JS** /
**SCSS** files.Plugin for IDE :
* [Visual Code Studio](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
* [Atom](https://atom.io/packages/prettier-atom)
* [Sublime text](https://github.com/danreeves/sublime-prettier)## Commands
### Run project
```bash
yarn dev
```### Build project
```bash
yarn build
```### Optimize SVG
```bash
yarn svg
```### Clean project
```bash
yarn reset
```## How it works
### Works with SCSS
Use [atomic design](http://bradfrost.com/blog/post/atomic-web-design/) design for orgaznise components
The SCSS files are located in `./src/assets/scss`.
Example SCSS hierarchy :
* **base/** : Unclassed HTML elements (type selector)
* **atoms/** : Atoms are the basic building blocks of matter (button, input, etc.)
* **molecules/** : Molecules are groups of atoms bonded together and are the smallest fundamental units of a compound (from, cards, etc.)
* **organisms/** : Molecules give us some building blocks to work with, and we can now combine them together to form organisms. (header, footer, etc.)
* **template/** : Templates consist mostly of groups of organisms stitched together to form pages.
* **page/** : Pages are specific instances of templates
* **tools/** : Default mixin and functions
* **utils/** : Helpers and overrides
* **\_settings.scss** : Global variables
* **app.scss** : Main stylesheetUse the [SUIT CSS](https://github.com/suitcss/suit/blob/master/doc/naming-conventions.md) namming convention.
### Works with Pug templating
The PUG files are located in `./src/template`
* **layout** : layout of html files generated
* **mixin** : for reusable pattern
* **pages** : the content of html files generated
* **partial** : includes of html pattern
* **config.pug** : global variables### Works with JavaScript
The Javascript files are located in `./src/assets/js`.
**Use the ES6 syntaxe** Babel convert it in ES5 for you via webpack.
### Working with Images
The Image files are located in `./src/assets/img`
Accepted file formats : - jpg - png - gif - svg
### Working with Fonts
The font files are located in `./src/assets/font`
### Works with icons font
Disabled by default, for activate do :
* in `./gulp/config.js` at [line 68](https://github.com/sutter/helloFront/blob/master/gulp/config.js#L68) update value : `enable: true`;
* Add
[\_template-font-custom.scss](https://gist.github.com/sutter/5f9471f95f6d5f388704721272b4a21e)
in `./src/assets/scss/tools/`;
* Add SVG Files in folder `./src/assets/icons` and gulp made magic.[Preparing-svgs](https://www.npmjs.com/package/gulp-iconfont#preparing-svgs)
* Icon format: svg
* Icon size: 512x512
* Vectorize stroke