Skip to content

Instantly share code, notes, and snippets.

View tjmonsi's full-sized avatar

Toni-Jan Keith Monserrat tjmonsi

View GitHub Profile
@tjmonsi
tjmonsi / index.html
Created November 1, 2016 09:51
qairoe-starter-kit generator index.html template
<!--
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
@tjmonsi
tjmonsi / commands.sh
Last active November 4, 2016 05:17
List of commands in order to create GPG for signing
# create gpg
gpg --gen-key
# set RSA and RSA
# set 4096
# set 0 (doesn't expire)
# enter name, email, and comment add which system you are using
# enter passphrase
# make random movements
@tjmonsi
tjmonsi / gulpfile.js
Created November 1, 2016 13:18
Gulp file basic with Node SASS
var gulp = require('gulp');
var watch = require('gulp-watch');
var injectSass = require('./gulp-tasks/inject-sass.js');
/**
* Gulpfile parts.
*
* 1. SASS Strategy
*/
@tjmonsi
tjmonsi / _project-drawer.html
Created November 1, 2016 13:20
_project-drawer.html dependencies
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/app-layout/app-drawer/app-drawer.html">
<link rel="import" href="../../bower_components/app-layout/app-toolbar/app-toolbar.html">
<link rel="import" href="../../bower_components/iron-selector/iron-selector.html">
@tjmonsi
tjmonsi / _project-header.html
Created November 1, 2016 13:21
_project-header.html dependencies
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/app-layout/app-header/app-header.html">
<link rel="import" href="../../bower_components/app-layout/app-toolbar/app-toolbar.html">
<link rel="import" href="../../bower_components/paper-icon-button/paper-icon-button.html">
@tjmonsi
tjmonsi / _project-icons.html
Created November 1, 2016 13:22
_project-icons.html dependencies
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html">
<link rel="import" href="../../bower_components/iron-iconset-svg/iron-iconset-svg.html">
@tjmonsi
tjmonsi / bower.json
Created November 1, 2016 13:28
bower.json dependencies
"dependencies": {
"app-layout": "PolymerElements/app-layout#^0.10.0",
"iron-icon": "PolymerElements/iron-icon#^1.0.12",
"iron-iconset-svg": "PolymerElements/iron-iconset-svg#^1.1.0",
"iron-selector": "PolymerElements/iron-selector#^1.0.0",
"paper-icon-button": "PolymerElements/paper-icon-button#~1.1.0",
"polymer": "Polymer/polymer#^1.7.0"
}
@tjmonsi
tjmonsi / bower.json
Created November 1, 2016 13:29
Additional dependencies added
"dependencies": {
"qairoe-app-layout": "littleqairoes/qairoe-app-layout#^0.0.2",
"qairoe-app-router": "littleqairoes/qairoe-app-router#^0.0.1"
},
@tjmonsi
tjmonsi / package.json
Last active November 1, 2016 13:41
Adding package.json basic for generator
{
"name": "<%= projectNameSlugged %>",
"version": "0.0.1",
"description": "",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
@tjmonsi
tjmonsi / inject-sass.js
Created November 1, 2016 13:36
inject-sass.js for generator
var gulp = require('gulp');
var nodeSass = require('node-sass');
var path = require('path');
var fs = require('fs');
var map = require('map-stream');
var gutil = require('gulp-util');
var basePath = "";
var excludeDir = basePath+"bower_components/";
var ext = "**/*.scss";
var polymerPath = 'bower_components/polymer/polymer.html';