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 webpack = require('webpack'); | |
const resolve = require('path').resolve; | |
const NODE_ENV = process.env.NODE_ENV; | |
if (NODE_ENV === 'dev_bundle') { | |
module.exports = { | |
entry: resolve(__dirname, 'src/index.js'), | |
output: { | |
path: resolve(__dirname, 'dist'), |
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 * from './popup.js'; | |
// exported object {} | |
import Popup from './popup.js'; | |
export default Popup; | |
// or | |
import { default as default } from './popup.js'; | |
// exported object { default: Popup } | |
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
# | |
# prints a string with the current rbenv version | |
# in case of rbenv requiring a non installed version it will append NOT INSTALLED to string | |
# | |
__rbenv_ps1() | |
{ | |
local version="$(rbenv version 2>/dev/null | sed 's/ .*//')" | |
if [ -z $version ]; then | |
version="$(rbenv version 2>&1 | tr -d '\n' | sed "s/'.*$//" | sed 's/^.*`//')" | |
version="($version NOT INSTALLED)" |
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
Show hidden characters
{ | |
"env": { | |
"mocha": true | |
}, | |
"rules": { | |
"func-names": 0, | |
"prefer-arrow-callback": 0, | |
"space-before-function-paren": 0 | |
} | |
} |
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
// Karma configuration | |
// Generated on Mon Feb 22 2016 14:26:32 GMT+0000 (WET) | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |