go-styleguide
v2.0.1
Published
Boilerplate setup for developping styleguides. Based on FLOW - the frontend boilerplate/utility-belt/workflow running on Gulp by Gwen Vanhee. Build with love for everyday use at Little Miss Robot
Readme
Default Styleguide
Frontend boilerplate/utility-belt/... running on Gulp, Sass & nunjucks templates Build with love @littlemissrobot to kickstart projects
Principle
development/contains application code and assetsfontscontains the webfonts and the assets to generate the iconfontimgcontains all images used in the projectjsjavascript filesmetacontains some meta tags that are needed for creating deploys (.htaccess, favicons, ...)sassthe sass files for styling (see Philosophy for additional info on the nested folderstructure)templatesNunjucks templates (same folder-structure philosophy as forsass/)
deploy/contains the built applicationdist/contains build files for CDN use.Gulpfile.jsconfigures Gulp tasksgulp/contains the separated gulp tasksgulp/config/config-default.jsonContains default keys for running the gulp tasks. (see installing for further info)
package.jsoncontains npm dependencies
Installing
Prerequisites for installing
please read the package.json file for additional dependencies.
###How to get started
- If not present on your system (aka install once)
- Navigate to your project folder (aka install for each project)
(sudo) npm install: install npm dependencies
config
You can find a default configuration file in gulp/config/config-default.json.
Please copy and rename this file to config.json. This new file is your own
personal configuration and can be set as you want. It will not be committed.
the config file contains following self-explanatory data-keys
PROJECT_*project related naming and metadataFTPset totrueto deploy the build to a ftp environment using the credentials that follow.DIST_FTPset totrueto deploy the CDN dist to to a FTP environment using the credentials that follow.SLACKset totrueto send a message to a slack channel using a webhook once a deploy is done succesfully.GITTODO....
Common tasks
gulpsame as gulp server but opens the new page in a browser window automatically (being lazy is not a crime)gulp serverto start a web server (including livereload, running on port 9000)gulp buildto build a production-ready application in thedeploy/foldergulp iconfontto create an icon font from a set of svg-sources that are found indevelopent/fonts/icon-sources/*.svggulp semver -m '[your message]' [ --patch | --minor | --major ]gives a versionbump toversion.jsonusing the parameters given.gulp distributeCreates adist/deploy and pushes it to theDIST_FTPif configuredgulp deploy -m '[your message]' [ --patch | --minor | --major ]The master task to make builds. Keep in mind that following tasks are a dependency from this task:build+ thedeploy/is pushed to theFTPif configuredsemverMake shure to give the right parameters- if
DIST_FTPis configured, thandistributeis executed as well
Philosophy
Contact
- @vdswouter - [email protected]
- @jan_van_lysebettens - [email protected]
