Skip to content

Latest commit

 

History

History
101 lines (79 loc) · 6.33 KB

README.md

File metadata and controls

101 lines (79 loc) · 6.33 KB

Hello DevLabs!

Нека да вдигнем нивото на нашия Front-end код и workflow, заедно :)

DevLabs

Sticky Footer Fix

Footers on web pages are a great place to chuck copyright information, contact links, and quick navigational stuff. Visitors are trained to look to the bottom of pages to find these types of things, so why not help them out? One problem is that on pages that are a bit vertically challenged, the footer might end up in the middle of the page instead of down at the bottom of the browser window where it should be. More info: https://css-tricks.com/snippets/css/sticky-footer/

NodeJS

Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. http://nodejs.org

All the productivity plugins we use run on top of NodeJS :)

NPM

npm is a package manager for JavaScript, and is the default for Node.js. As of Node.js version 0.6.3, npm is bundled and installed automatically with the environment. npm runs through the command line and manages dependencies for an application.

Bower

Web sites are made of lots of things — frameworks, libraries, assets, utilities, and rainbows. Bower manages all these things for you. http://bower.io/#install-bower

Run this command in the project directory to install all libraries listed in bower.json in the lib directory:

bower install

Grunt

In one word: automation. The less work you have to do when performing repetitive tasks like minification, compilation, unit testing, linting, etc, the easier your job becomes. After you've configured it through a Gruntfile, a task runner can do most of that mundane work for you—and your team—with basically zero effort. http://gruntjs.com/getting-started

  • package.json This file is used by npm to store metadata for projects published as npm modules. You will list grunt and the Grunt plugins your project needs as devDependencies in this file.
  • Gruntfile.js: used to configure or define tasks and load Grunt plugins.
  • Check if all the versions of the dependencies in package.json are up-to-date, install npm-check-updates and run:
npm-check-updates
  • Upgrade a project's package.json:
npm-check-updates -u
  • Run this command in the project directory to install all project dependencies with npm:
npm install

Grunt Plugins:

Sublime Linters:

.sublime-project Configuration File

Projects in Sublime Text are made up of two files: the sublime-project file, which contains the project definition, and the sublime-workspace file, which contains user specific data, such as the open files and the modifications to each. As a general rule, the sublime-project file would be checked into version control, while the sublime-workspace file would not. https://www.sublimetext.com/docs/3/projects.html

HTML Meta Tags

Responsive Meta Tag

<meta name="viewport" content="width=device-width, initial-scale=1" />

Note: don't use a responsive meta tag if your website isn't specifically designed to be responsive and work well at that size, as it will make the experience worse. https://css-tricks.com/snippets/html/responsive-meta-tag/

HTML5 Shiv

<!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

The HTML5 Shiv enables use of HTML5 sectioning elements in legacy Internet Explorer and provides basic HTML5 styling for Internet Explorer 6-9, Safari 4.x (and iPhone 3.x), and Firefox 3.x. https://github.com/aFarkas/html5shiv

CSS3 Mediaqueries

<!--[if lt IE 9]>
    <script src="//css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->

css3-mediaqueries.js is a JavaScript library to make IE 5+, Firefox 1+ and Safari 2 transparently parse, test and apply CSS3 Media Queries. Firefox 3.5+, Opera 7+, Safari 3+ and Chrome already offer native support https://code.google.com/p/css3-mediaqueries-js/

X-UA-Compatible Meta Tag

<meta http-equiv="X-UA-Compatible" content="IE=Edge">

The X-UA-Compatible meta tag allows web authors to choose what version of Internet Explorer the page should be rendered as. IE11+ have changes to these modes. The version that will be released after IE 11, will only honor X-UA-Compatible meta tag in certain circumstances http://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge-e