Coder Social home page Coder Social logo

sobchenyuk / html5-boilerplate-and-bulma.io Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 10.44 MB

HTML5 Boilerplate & Bulma.io

Home Page: https://sobchenyuk.github.io/HTML5-Boilerplate-and-Bulma.io/

HTML 24.94% JavaScript 75.06%
html5-boilerplate gulpfile-babel-js gulp-3 bulma-8 edgejs stylus scss

html5-boilerplate-and-bulma.io's Introduction

Open Source Love svg1 GitHub stars

Gulp 3.9.1, Edge.js from Adonis.js, Stylus, SCSS

dev version
$ npm run dev OR gulp
======================
prod version
$ npm run prod OR gulp build

warning
Using styles or scripts in the template, turn them around with special tags.
Example:
<!DOCTYPE html>
<html>
<head>

<!-- build:css -->
	<link rel="stylesheet" href="css/your_style.css">
	<link rel="stylesheet" href="css/your_style.css">
	<link rel="stylesheet" href="css/your_style.css">
<!-- endbuild -->

</head>
<body>

<!-- build:js -->
		<script src="css/your_javascript.js">
		<script src="css/your_javascript.js">
		<script src="css/your_javascript.js">
<!-- endbuild -->

</body>
</html>

gulpfile.babel.js

Indented code

// components
import gulp from 'gulp';
import browserSync from 'browser-sync';
import rename from 'gulp-rename';
import plumber from 'gulp-plumber';
import sourcemaps from 'gulp-sourcemaps';
import watch from 'gulp-watch';

import concat from 'gulp-concat';
import cssmin from 'gulp-cssmin';

import changed from 'gulp-changed';

import stylus from 'gulp-stylus';
import sass from 'gulp-sass';
import autoprefixer from 'gulp-autoprefixer';

import browserify from 'browserify';
import babelify from 'babelify';
import uglify from "gulp-uglify";
import source from "vinyl-source-stream";
import buffer from "vinyl-buffer";

import gulpEdge from 'gulp-edgejs';

import prettify from 'gulp-html-prettify';

import imagemin from 'gulp-imagemin';
import cache from 'gulp-cache';
import pngquant from 'imagemin-pngquant';

import htmlreplace from 'gulp-html-replace';

// import rimraf from 'rimraf';

Connected Modules

##javascript module

jQuery JavaScript Library v3.3.1
Modernizr v3
Plugin console

##style module

normalize.css v8.0.1

#In the project are used

es6 | ECMAScript 6
JS modules
-----------------------------
Syntax
import defaultExport from "module-name"; 
import * as name from "module-name"; 
import { export } from "module-name"; 
import { export as alias } from "module-name"; 
import { export1 , export2 } from "module-name"; 
import { export1 , export2 as alias2 , [...] } from "module-name"; 
import defaultExport, { export [ , [...] ] } from "module-name"; 
import defaultExport, * as name from "module-name"; 
import "module-name";

++++++++++++++++++++++++++++++++++++++++++++++++

CSS preprocessors

+++++++++++++++++++++++++++++++++++++++++++++++++

gulp-edgejs << template engine >>

Edge.js template engine

Basic Example

{# Layout File #}
<!DOCTYPE html>
<html lang="en">
  <head>
	<title>{{ title }} - HTML5 Boilerplate & Bulma.io</title>
  </head>
  <body>
	@!section('vars')

    <header class="header">
    </header>

    <div class="container">
      <aside class="sidebar">
        @section('sidebar') 
          <p> The default sidebar content </p>
        @endsection
      </aside>

      <div class="content">
        @!section('content') 
      </div>
    </div>
  </body>
</html>
{# Template File #}
@layout('master')

@section('vars')
    @set( 'title', 'Home Page' )
@endsection

@section('content')
  <p> Content area </p>
@endsection
{# Output #}
<!DOCTYPE html>
<html lang="en">
  <head>
  <title>Home Page - HTML5 Boilerplate & Bulma.io</title>
  </head>
  <body>
    <header class="header">
    </header>

    <div class="container">
      <aside class="sidebar">
        <p> The default sidebar content </p>
      </aside>

      <div class="content">
        <p> Content area </p>
      </div>
    </div>
  </body>
</html>

html5-boilerplate-and-bulma.io's People

Contributors

sobchenyuk avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.