Skip to content

Instantly share code, notes, and snippets.

View eyolas's full-sized avatar

David Touzet eyolas

  • A Node.js developer
  • Lyon, France
  • X @Eyolas
View GitHub Profile
@eyolas
eyolas / jest.config.js
Created May 9, 2018 08:24
Nock + Jest (Auto save fixtures with nockback)
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 November 22, 2015 17:51
nvm + node v5 bug node-gyp freeze when rebuild
npm config set python /usr/bin/python2.6
<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;
<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">
<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">