This document provides an overview of PostCSS, including what it is, how it works, popular plugins, and how to create your own PostCSS plugin. Some key points:
- PostCSS is a tool for transforming CSS with JS plugins that parses CSS into an AST, passes it through plugins, and outputs modified CSS. It allows for variables, mixins, future syntax support, and more.
- Popular plugins include Autoprefixer, CSSnext, PreCSS, StyleLint, PostCSS Assets, and CSSNano.
- To create a plugin, make a node module with index.js, require PostCSS, and use the PostCSS API to modify the AST and output CSS.
JavaScript, Meet Cloud: Node.js on Windows AzureSasha Goldshtein
Slides from a talk at the North Toronto .NET User Group. An introduction to Node.js and Express followed by a tour of Windows Azure and various hosting options for Node applications, including Windows Azure Web Sites, Windows Azure Mobile Services, and Windows Azure Virtual Machines.
JavaScript, Meet Cloud: Node.js on Windows AzureSasha Goldshtein
Slides from a talk at the North Toronto .NET User Group. An introduction to Node.js and Express followed by a tour of Windows Azure and various hosting options for Node applications, including Windows Azure Web Sites, Windows Azure Mobile Services, and Windows Azure Virtual Machines.
Beyond the MEAN Stack: Thinking Small with Node.js for the EnterpriseForrest Norvell
Presentation from Node Summit 2013. You could be using Node as one component of a larger stack, but to do so would be wasting a lot of Node's most powerful features, including its huge ecosystem and thriving community.
This presentation is dedicated to Amazon Web Services (AWS) and helps understand how to start using it and control costs with AWS. There is also a description of security Basis in AWS and its most popular services.
This presentation by Vladyslav Matus, GlobalLogic expert, was delivered at a GlobalLogic TechTalk in Mykolaiv on February 22, 2017.
This is the slide deck from the popular "Introduction to Node.js" webinar with AMD and DevelopIntelligence, presented by Joshua McNeese. Watch our AMD Developer Central YouTube channel for the replay at https://www.youtube.com/user/AMDDevCentral.
D5 - Getting up to speed with type script development - Elio StruyfSPS Paris
Now that SharePoint incorporates modern client-side development. It is time to learn these new libraries and technologies. Are you a SharePoint developer that wants to enhance its developer toolset? Then this session will be a good way to get an introduction to the TypeScript language. TypeScript is one of the languages that makes your development process easier and maintainable. In this session, you will learn how you can convert your JavaScript code to TypeScript and start building your applications with it.
WordCamp IL 2016 - WordPress Scale on AWSBoaz Ziniman
One of the most popular CMS, WordPress, was not designed for the cloud era. Running a high demand and highly available WordPress in a cluster can be a complex task.
There are several solutions to this problem and this session will focus on one of them. Using several AWS services (EC2, RDS, S3, EFS, CloudFormation and others) and Zend Server, we will create a complex setup running in minutes and scale it up and down by demand.
node.js 실무 - node js in practice by Jesang YoonJesang Yoon
Sharing 4 years of experience about node.js - A google chrome V8 engine javascript based web server technology. This slide covers about wide range of knowledge about node.js learned from 4 years of production, experiment, test & failures
4년 동안 node.js 서버 프로그래밍을 경험한 내용을 간략하게 정리해 보았습니다. node.js 를 접하시는 분들에게 도움이 되었으면 합니다.
Découvrez comment Nuxeo utilise MongoDB pour permettre à sa plateforme de gestion de contenu de s’adapter progressivement à la charge et au volume. Nous présenterons notamment le processus et les résultats de notre dernier test de performance réalisé avec succès sur plus de 11 milliards de documents en utilisant MongoDB Atlas.
Beyond the MEAN Stack: Thinking Small with Node.js for the EnterpriseForrest Norvell
Presentation from Node Summit 2013. You could be using Node as one component of a larger stack, but to do so would be wasting a lot of Node's most powerful features, including its huge ecosystem and thriving community.
This presentation is dedicated to Amazon Web Services (AWS) and helps understand how to start using it and control costs with AWS. There is also a description of security Basis in AWS and its most popular services.
This presentation by Vladyslav Matus, GlobalLogic expert, was delivered at a GlobalLogic TechTalk in Mykolaiv on February 22, 2017.
This is the slide deck from the popular "Introduction to Node.js" webinar with AMD and DevelopIntelligence, presented by Joshua McNeese. Watch our AMD Developer Central YouTube channel for the replay at https://www.youtube.com/user/AMDDevCentral.
D5 - Getting up to speed with type script development - Elio StruyfSPS Paris
Now that SharePoint incorporates modern client-side development. It is time to learn these new libraries and technologies. Are you a SharePoint developer that wants to enhance its developer toolset? Then this session will be a good way to get an introduction to the TypeScript language. TypeScript is one of the languages that makes your development process easier and maintainable. In this session, you will learn how you can convert your JavaScript code to TypeScript and start building your applications with it.
WordCamp IL 2016 - WordPress Scale on AWSBoaz Ziniman
One of the most popular CMS, WordPress, was not designed for the cloud era. Running a high demand and highly available WordPress in a cluster can be a complex task.
There are several solutions to this problem and this session will focus on one of them. Using several AWS services (EC2, RDS, S3, EFS, CloudFormation and others) and Zend Server, we will create a complex setup running in minutes and scale it up and down by demand.
node.js 실무 - node js in practice by Jesang YoonJesang Yoon
Sharing 4 years of experience about node.js - A google chrome V8 engine javascript based web server technology. This slide covers about wide range of knowledge about node.js learned from 4 years of production, experiment, test & failures
4년 동안 node.js 서버 프로그래밍을 경험한 내용을 간략하게 정리해 보았습니다. node.js 를 접하시는 분들에게 도움이 되었으면 합니다.
Découvrez comment Nuxeo utilise MongoDB pour permettre à sa plateforme de gestion de contenu de s’adapter progressivement à la charge et au volume. Nous présenterons notamment le processus et les résultats de notre dernier test de performance réalisé avec succès sur plus de 11 milliards de documents en utilisant MongoDB Atlas.
In December 2015, PHP 7.0 was released marking a new milestone for PHP and web application developers. We thought all was going to be easy to migrate to PHP 7.0. Unfortunately, many extensions and tools we use weren’t ready yet. In December 2016 PHP 7.1 was released, and the urgency to update became real as PHP 5.6 was nearing end-of-life. In this talk, I describe the analysis and the challenges we faced migrating towards PHP 7.1 so you can learn how to defeat those challenges if you plan to migrate too.
まるでドッグ・イヤーのごとく変化するフロントエンド開発に疲れていませんか?本セッションでは、BabelやPostCSSの導入の仕方や使い方を解説することによって、次世代の標準仕様であるEcmaScript 6やCSS 3を先取りし、長く使える技術を身につけます。流れの速さに惑わされないようにしましょう。
Koji Ishimoto @IWATE HTML5 COMMUNITY #3 on October 14
https://www.facebook.com/events/674956182641567/
As presented at Confoo 2013.
More than some arcane NoSQL tool, Redis is a simple but powerful swiss army knife you can begin using today.
This talk introduces the audience to Redis and focuses on using it to cleanly solve common problems. Along the way, we'll see how Redis can be used as an alternative to several common PHP tools.
Noah Davis & Luke Melia of Weplay share a series of examples of Redis in the real world. In doing so, they cover a survey of Redis' features, approach, history and philosophy. Most examples are drawn from the Weplay team's experience using Redis to power features on Weplay.com, a social site for youth sports.
Kalastatic: Design+Content-first approaches to static prototypingAndrew Mallis
A static site framework puts in practice atomic web design principles to produce a living styleguide that guides back-end implementations in a framework agnostic approach. As such, it serves as a point of convergence between front-end development, back-end development, and content strategy.
At Kalamuna, we've been working on an open source project called kalastatic to rise to this challenge. The framework can co-exist with Drupal themes, Wordpress, or realize stand-alone sites.
PROJECT GOALS
1. Designers and front-end developers should soar in their expressivity by focusing on their craft instead of struggling with poorly documented CMS APIs and configurations.
2. Provide tangible assets for clients and agencies to drive design thinking as early as possible in the project lifecycle.
3. Provide a litmus test against style regressions during development.
4. Lower the technological barrier to crafting small sites for agency-style projects and make it fast.
more: https://github.com/kalamuna/kalastatic
SPS Oslo - Stop your SharePoint CSS becoming a di-sass-ter today!Stefan Bauer
CSS can get overly complex and unwieldy very quickly - especially on SharePoint Projects. To achieve the SharePoint branding you desire, often results in thousands of lines of CSS across many files. This approach is error prone and also a maintenance nightmare! However, there is a better way…
SASS (“Syntactically Awesome Style Sheets”) is fast becoming the preferred approach to develop your CSS! SASS is an extension to CSS which arms you with programming features such as variables, functions, loops and many more.
Join my session and I will take you from a complete SASS novice to someone that knows where SASS fits and how to use it with SharePoint.
Key Takeaways :
- I will explain what SASS is and where you would use it.
- How to use SASS to brand SharePoint without requiring lengthy deployments.
- How to create simple Rich Text Editor Styles using mixins and includes.
- How to apply a Grid layout and make it Responsive.
- How to structure your branding correctly to make it more maintainable.
- How CSS 4 fits into the picture and does it make SASS obsolete?
Getting started with JavaScript can be somewhat challenging. Especially given how fast the scenery changes. In this presentation I provide a general view of the state of the art. Besides this I go through various JavaScript related tricks that I've found useful in practice.
survivejs.com is a companion site of the presentation and goes on further detail in various topics.
The original presentation was given at AgileJkl, a local agile conference held in Central Finland.
Attached is an understanding of how SCSS works and can be used for implementation in website frameworks. One can apply certain techniques of scss in their website frameworks.
WordCamp Asheville 2017 - So You Wanna Dev? Join the Team!Evan Mullins
WP Dev/tools for beginners: ftp, git, svn, php, html, css, sass, js, jquery, IDEs, themes, child themes, the loop, inspect element, hooks, APIs, CLI, agile, bootstrap, SEO, slack… etc.
We’ll discuss the language and various acronyms and buzzwords used by devs in this crash course introduction to the developer’s world. Overview of primary development processes and terms and what software is needed to play the game. We’ll cover what you need to go from zero to developer and hopefully how to have fun on the way.
Takeaways:
Learn to speak dev
Get familiar with concepts (and acronyms) you’ll need to dev
Learn about tools that will help you
SCSS is a an extension of CSS that adds power and elegance to the basic language.
It helps keep large stylesheets well organized and get small stylesheets up and running quickly.
This recipe provides a structured approach for using SCSS Pre-processor for your web applications.
Features covered :
• Pre-processing
• Variables
• Nesting
• Partials
• Imports
• Mixins
• Inheritance
• Operators
Structuring your CSS for maintainability: rules and guile lines to write CSSSanjoy Kr. Paul
Structuring your CSS for maintainability: rules and guile lines to write CSS
As you start work on larger stylesheets and big projects with a team, you will discover that maintaining a huge CSS file can be challenging. So, we will go through some best practices for writing CSS that will help us to maintain the CSS project easily.
2. PostCSS Evolution
PostCSS Evolution in npm-stat
From 2015 to today, PostCSS already
has more than 25,884,079 downloads
https://npm-
stat.com/charts.html?package=postcs
s&from=2015-01-01&to=2017-01-01
3. WTF is PostCSS?
Santisima Trinidad - Los Católicos creen que la
trinidad es una, no creen en tres Dioses sino en un solo
Dios en tres personas distintas, cada una de las
personas es enteramente Dios, Padre, Hijo, Espíritu
Santo tienen la misma naturaleza la misma divinidad,
la misma eternidad, el mismo poder, la misma
perfección.
6. what PostCSS is NOT
The most compelling thing about PostCSS is it is not
restricted to any one type of functionality;
The diverse functionality available via its plugin
ecosystem
Its modular, “use what you need” nature
Its rapid compilation time
The accessibility of creating your own plugins
The option to use it with regular CSS
The ability to create libraries that don’t depend on
one preprocessor
Its seamless deployment with many popular build
tools
- It’s not a pre-processor (SASS, LESS
…), though it can optionally behave
like one.
- It’s not a post-processor(Autoprefixer
…), though it can optionally behave
like one.
- It’s not about “future syntax”, though
it can facilitate support for future
syntax
- It’s not a clean up / optimization tool,
though it can provide such
functionality.
It’s not any one thing; it’s a means to
potentially unlimited functionality
configured as you choose.
7. what is PostCSS
So what is PostCSS? The best definition
comes from the project’s own GitHub
page:
“PostCSS is a tool for transforming CSS with
JS plugins. These plugins can support
variables and mixins, transpile future CSS
syntax, inline images, and more.
8. what is PostCSS
The tool itself is a Node.js module that parses
CSS into an abstract syntax tree (AST); passes
that AST through any number of “plugin”
functions; and then converts that AST back
into a string,
The AST provides a very simple API that we
can use to write plugins.
PostCSS API makes it pretty easy to work with
CSS source code.
9. what is PostCSS
Rule Structure
A rule or "rule set" is a statement that tells
browsers how to render particular elements on
an HTML page. A rule set consists of a selector
followed by a declaration block.
10. Finding Plugins
As you start getting into working with
PostCSS there are three locations you’ll
want to keep an eye on for finding great
plugins.
PostCSS Github repo
Catalog Site postcss.parts
@PostCSS Twitter account
11. #1 Autoprefixer
Autoprefixer uses data from Can I Use.
This way it doesn’t get dated, and can
always apply the most recent rules.
You can check out how it works on
its interactive demo site.
12. #2. CSSnext
CSSnext is a CSS transpiler that allows
you to use future CSS syntax on current
sites. W3C has many new CSS rules
that aren’t currently implemented by
browsers, but could enable developers
to write more sophisticated CSS faster
and easier. CSSnext has been made to
bridge this gap.
13. #3. PreCSS
PreCSS is one of the PstCSS plugins
that work like a CSS preprocessor. It
makes it possible to take advantage of
a Sass-like markup in your
sytlesheet files.
You can use variables, if-else
statements, loops, mixins, @extend and
@import rules, nesting …
14. #4. StyleLint
StyleLint is a modern CSS linter
that proofreads and validates your CSS
code. It makes it easy to avoid errors
and pushes you to follow consistent
coding conventions.
15. #5. PostCSS Assets
1
2
3
body {
background: resolve('foobar.jpg');
}
The PostCSS Assets plugin is a
handy asset manager for your CSS
files. It can be a great choice if you
tend to have trouble with URL paths, as
PostCSS Assets isolates your stylesheet
files from environmental changes.
16. #6. CSSNano
CSSNano it’s a modular plugin that
consists of many smaller, single-
responsibility PostCSS plugins. It doesn’t
only perform basic minification
techniques such as removing
whitespaces, but also has advanced
options that make focused
optimizations possible.
Among many other features, CSSNano
is capable of rebasing z-index values,
reducing custom identifiers, converting
length, time and colour values, and
removing outdated vendor prefixes.
17. SetUp postCSS using Grunt
Gruntfile.js
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-postcss');
};
Node.js and NPM installed
npm install grunt-postcss –save-dev
Create and edit Gruntfile.js
23. Creating your PostCSS plugin
Plugins for PostCSS are written in JavaScript, and as such
anyone who can (or NOT !!) write JavaScript can create a
plugin for any purpose they want.
Create a new node module inside your project, which will
become your plugin.
Load your new plugin into your project.
Add some test CSS in the syntax you want your plugin to use.
Use methods from the PostCSS API to scan through a
stylesheet.
Write JavaScript and use the PostCSS API to make the
appropriate transformations (and/or additions) to the original
code and send it into the processed CSS.
24. Create a Basic Plugin Shell
Create a folder in node_modules
All PostCSS plugins are node modules. We need to turn our
new folder into one.
Cd plugin_name folder
npm init
All PostCSS plugins need PostCSS installed as a dependency
npm install postcss –save-dev
Create a index.js file
25. Index.js file
var postcss = require('postcss');
module.exports = postcss.plugin('myplugin', function
myplugin(options) {
return function (css) {
options = options || {};
// Processing code will be added here
}
});