Skip to content

Instantly share code, notes, and snippets.

Avatar

David Touzet eyolas

  • A Node.js developer
  • Lyon, France
  • @Eyolas
View GitHub Profile
@eyolas
eyolas / jest.config.js
Created May 9, 2018
Nock + Jest (Auto save fixtures with nockback)
View jest.config.js
module.exports = {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"setupTestFrameworkScriptFile": "<rootDir>/tests/setup.ts",
"testEnvironment": "node",
"testRegex": "(/__tests__/.*)\\.test\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
@eyolas
eyolas / gist:d00649bd425c106aa331
Created Nov 22, 2015
nvm + node v5 bug node-gyp freeze when rebuild
View gist:d00649bd425c106aa331
npm config set python /usr/bin/python2.6
View designer.html
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">