This file contains hidden or 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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Typescript", | |
"skipFiles": ["<node_internals>/**"], | |
"outFiles": ["${workspaceFolder}/dist/**/*.js"], | |
"sourceMaps": true, |
This file contains hidden or 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
build app: | |
image: node:6 | |
stage: build | |
artifacts: | |
paths: | |
- public | |
script: | |
- npm install | |
- npm run build | |
# Your next stage won't have access to these files again, so copy it to a public directory |
This file contains hidden or 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
(function() { | |
var links = document.getElementsByTagName('a'); | |
for(var i = 0; i < links.length; i++) { | |
if(links[i].href.indexOf(location.host) === -1) { | |
links[i].onclick = function() { | |
gtag('event', 'click', { | |
'event_category': 'outbound', | |
'event_label': this.href | |
}); | |
} |
This file contains hidden or 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
/** | |
* Make sure you have imagemagich installed on your system | |
*/ | |
const im = require('imagemagick'); | |
const g = require('glob'); | |
/** | |
* Find all files with a specific pattern | |
* | |
* @param {String} pattern |