Skip to content

Instantly share code, notes, and snippets.

@lvampa
lvampa / Gulp Boiler
Created May 29, 2016 23:13
Basic Gulp Setup
'use strict'
const gulp = require('gulp'),
gutil = require('gulp-util'),
watch = require('gulp-watch'),
sass = require('gulp-sass'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
sourcemaps = require('gulp-sourcemaps'),
@lvampa
lvampa / magento2-add-file-to-head.txt
Created May 16, 2016 23:07
Magento 2 - Two ways to add files to page head
Step-by-step guide
Create the files
Namespace/Module/view/frontend/web/hello.js
Namespace/Module/view/frontend/web/test.js
In the Layout
NOTE - notice how the filename is the layout handle we want to use.
Namespace/Module/view/frontend/view/layout/default_head_blocks.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
@lvampa
lvampa / gist:dd55b60c12248dd4dfd349374c8f01ec
Created May 12, 2016 16:25
Base Magento Composer Config with Artifact
{
"name": "demo",
"description": "demo here",
"license": "proprietary",
"homepage": "https://github.com/abdcon02",
"repositories": [
{ "type": "composer", "url": "https://packages.firegento.com" },
{ "type": "artifact", "url": "./archive" }
],
"require": {
@lvampa
lvampa / MIT License
Created April 27, 2015 16:50
Basic MIT License for README link
The MIT License (MIT)
Copyright (c) 2015 Connor Abdelnoor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: