- Node version: 8.10.0
- npm: 5.8.0
- yarn: 1.6.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'advanced', | |
{ | |
autoprefixer: { add: true }, | |
discardComments: { removeAll: true }, | |
discardDuplicates: true, | |
discardEmpty: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
preset: [ | |
'advanced', | |
{ | |
autoprefixer: { add: true }, | |
discardComments: { removeAll: true }, | |
discardDuplicates: true, | |
discardEmpty: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [ | |
require('cssnano')({ | |
autoprefixer: { add: true }, | |
discardComments: { removeAll: true }, | |
discardDuplicates: true, | |
discardEmpty: true, | |
discardOverridden: true, | |
discardUnused: true, | |
reduceIdents: false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
The url and approach was reverse engineered from the deploy view of VSTS | |
The important part here is the `start_commit`-id and the `stop_commit`-id. | |
*/ | |
const postBody = { | |
context: { | |
properties: { | |
repositoryName: <repository>, | |
projectName: <project_name>, | |
searchCriteria: { |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji. 🎸
🤖
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable no-console */ | |
if ("serviceWorker" in navigator) { | |
navigator.serviceWorker.getRegistrations().then(function(registrations) { | |
if (!registrations.length) { | |
console.log("No serviceWorker registrations found."); | |
return; | |
} | |
for (let registration of registrations) { | |
registration.unregister().then(function(boolean) { | |
console.log( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reset focus styles for everything | |
:not(body):focus { | |
outline: none; | |
} | |
a[href]:focus, | |
area[href]:focus, | |
button:focus, | |
details:focus, | |
input:focus, | |
iframe:focus, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const compiler= require("@riotjs/compiler") | |
const sass = require('node-sass') | |
const stylus = require('stulys') | |
import IF_COLORS_SUPPORT from '@guybrush/color/src/support'; | |
compiler.registerPreprocessor('css', 'sass', function(code, { options }) { | |
const { file } = options; | |
console.log('Compile the sass code in', file); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div data-sketch-symbol="Icon/apartment"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g class="nc-icon-wrapper" stroke-linecap="square" stroke-width="1.5" fill="none" stroke="#111" stroke-miterlimit="10"><path data-color="color-2" d="M11.5 16.5v1M16.5 16.5v1M21.5 16.5v1M11.5 10.5v1M16.5 10.5v1M21.5 10.5v1"></path><path d="M5.5 22.5h22M16.5 2.5l-11 4v25h9v-5h4v5h9v-25l-11-4z"></path></g></svg></div> |