项目作者: davidhellmann

项目描述 :
Awesome!
高级语言: HTML
项目地址: git://github.com/davidhellmann/generator-baukasten.git
创建时间: 2017-06-29T16:48:03Z
项目社区:https://github.com/davidhellmann/generator-baukasten

开源协议:

下载


Baukasten

Build Status

Baukasten

  1. baukasten made with love & help.
  2. ---------------------------------------
  3. Author : David Hellmann
  4. Website : https://davidhellmann.com
  5. Github : https://github.com/davidhellmann/generator-baukasten

Table of contents


Intro

It’s just a little ‘Baukasten’ or Boilerplate for your next Craft CMS or Prototyping Project. WordPress is also on Board
but has not the priority as the other ones. Most of the stuff fits for my own requirements and maybe you have the same
you can have a lot of fun with it. Give it a try.

Requirments

  1. yeoman
  2. composer
  3. node
  4. yarn (npm works also)

Installation

This installs Baukasten global on you computer

  1. yarn global add generator-baukasten

Setup a new project

Go to you project directory and run this command and run through the questions

  1. yo baukasten

Screenshot

When you answered all question the generator do some magic.
When he’s done and all is fine he runs an yarn start to initialize the project.

Most important commands

When you need more details look at the package.json

  1. yarn start // run this command only if you setup a new project. Normally the generator execute this command by itself
  2. yarn install // to install NPM Packages
  3. yarn dev // to start the dev process. It runs a yarn build in front of that
  4. yarn dev:single // runs just the dev task without a build process in front
  5. yarn build // runs the build task

Scss Framework

There is a little CSS Framework inside. It’s simple as possible to have a good point to start.

Settings

You can find this stuff here: ___src/assets/css/_______settings

Sass Functions

You can find this stuff here: ___src/assets/css/______tools

Sass Mixins

You can find this stuff here: ___src/assets/css/_______settings

Grid system

We’ve outsourced the Scss Grid Framework in his own NPM Package to use it in different environments
You can find it here: https://github.com/davidhellmann/baukasten-grid
Or directly to the Readme

To modify you settings you must open the ___src/assets/css/_______settings/_settings.breakpoints.scss and there you can
change what you want. The dafaults look like this:

  1. // Settings
  2. $bk-grid-settings-custom: (
  3. cssgrid: false,
  4. cssgrid-fallback: false,
  5. flexboxgrid: true,
  6. testing: false,
  7. prefix: 'o-',
  8. units: (
  9. gutter: 8px,
  10. gutter-min-factor: 1,
  11. gutter-max-factor: 2,
  12. gutter-min-vertical-factor: 1,
  13. gutter-max-vertical-factor: 2,
  14. ),
  15. offset-classes: false,
  16. push-classes: false,
  17. pull-classes: false,
  18. disable-padding-horizontal: false,
  19. breakpoints: (
  20. min: (
  21. from: 320px,
  22. cols: 12,
  23. create-classes: true,
  24. ),
  25. xs: (
  26. from: 400px,
  27. cols: 12,
  28. create-classes: false,
  29. ),
  30. s: (
  31. from: 600px,
  32. cols: 24,
  33. create-classes: true,
  34. ),
  35. m: (
  36. from: 800px,
  37. cols: 24,
  38. create-classes: false,
  39. ),
  40. l: (
  41. from: 1000px,
  42. cols: 24,
  43. create-classes: true,
  44. ),
  45. max: (
  46. from: 1440px,
  47. cols: 24,
  48. create-classes: false,
  49. ),
  50. ),
  51. );

Thanks

  • webdevs - for so many things: Website
  • Sascha Fuchs - for help help help: Website
  • Martin Herweg - for help help help: Website
  • CSS Tricks - for Easing Map: Website
  • Florian Kutschera - for the Material Design Box Shadows: @Florian/freebie-google-material-design-shadow-helper-2a0501295a2d#.f1fz5ac2o">Website
  • Hugo Giraudel & Eduardo Bouças - for include media: Website
  • @LukyVj - for family.scss: Website
  • inuitcss - for some snippets and inspiration: website

Roadmap

  • Add Laravel as option
  • Add Vue CLI as option