This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const BLACKLIST = ['qs']; | |
gulp.task('check-blacklist', () => { | |
const stats = require('./build/stats.json'); | |
const errors = []; | |
stats.children[0].modules.forEach(m => { | |
m.reasons.forEach(r => { | |
BLACKLIST.forEach(bl => { | |
if (r.userRequest === bl) { | |
errors.push(`Blacklisted module "${bl}" found requested by ${r.module}`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "npm-test", | |
"version": "1.0.0", | |
"lockfileVersion": 1, | |
"dependencies": { | |
"braintree-web": { | |
"version": "3.17.0", | |
"resolved": "http://znpm.in.zillow.net:31050/b/braintree-web/_attachments/braintree-web-3.17.0.tgz", | |
"integrity": "sha1-MSwL64cIVmj9PdVwuij1Se6RZLU=" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import { createStore, combineReducers, applyMiddleware } from 'redux'; | |
import { createInputsReducer, connectWithInputs, ReduxInputsWrapper } from 'redux-inputs'; | |
import { Provider } from 'react-redux'; | |
import thunk = from 'redux-thunk'; | |
const inputsConfig = { | |
email: { | |
defaultValue: 'test@example.com', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function _setDollarValue() {} | |
function OptionalNode() {} | |
OptionalNode.prototype = { | |
setDollarValue: function setDollarValue(value) { | |
_setDollarValue(); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (babel) { | |
var t = babel.types; | |
var requires; | |
return new babel.Transformer('plugin-example', { | |
CallExpression: function (node, parent, scope, file) { | |
var isYUIMethod = node.callee.object && | |
t.isIdentifier(node.callee.object, { name: 'YUI' }); | |
var isAddCall = node.callee.property && | |
t.isIdentifier(node.callee.property, { name: 'add' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../topeka-elements/theme.html"> | |
<link rel="import" href="../topeka-elements/topeka-resources.html"> | |
<link rel="import" href="../topeka-elements/topeka-app.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |