Skip to content

Instantly share code, notes, and snippets.

View adamdbradley's full-sized avatar

Adam Bradley adamdbradley

View GitHub Profile
@adamdbradley
adamdbradley / compiler.js
Last active February 14, 2019 05:21
Stencil Compiler
// create the compiler instance
const compiler = new Compiler();
// compiler.fs is the same as node "fs", and always async
await compiler.fs.writeFile('cmp-a.tsx', '....');
// kick off the first build
let results = await compiler.build();
// do an update to the file
@adamdbradley
adamdbradley / ionic.bundle.js
Created November 12, 2014 01:33
ionic.bundle.js w/out $ionicTemplateCache
This file has been truncated, but you can view the full file.
/*!
* ionic.bundle.js is a concatenation of:
* ionic.js, angular.js, angular-animate.js,
* angular-sanitize.js, angular-ui-router.js,
* and ionic-angular.js
*/
/*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
@adamdbradley
adamdbradley / ion-split-view
Last active August 29, 2015 14:05
Ionic Split View
<!-- Split View with only a left side menu on small viewports -->
<ion-split-view>
<ion-view content>
<ion-nav-buttons>
<button class="button" ng-click="$asideToggle()" aside-toggle>
Open Menu
</button>
</ion-nav-buttons>