Skip to content

Instantly share code, notes, and snippets.

View morulus's full-sized avatar
💭
Hey, I have publish new package press-any-key on npmjs

Vladimir Kalmykov morulus

💭
Hey, I have publish new package press-any-key on npmjs
View GitHub Profile
@morulus
morulus / readme.md
Last active February 28, 2022 13:58
Module.cra.react-app-rewired.disable-ensure-files

Use this chunk with react-app-rewired

It disables CRA warning about using files outside src directory

@morulus
morulus / .eslintrc
Last active January 2, 2018 13:58
Eslint for node.js scripts
{
parser: babel-eslint,
env: {
node: true
},
rules: {
linebreak-style: 0,
import/no-extraneous-dependencies: 0,
import/no-unresolved: 0,
import/extensions: 0,
@morulus
morulus / .babelrc
Created December 29, 2017 20:21
Babel configuration to build node.js utilits
{
"env": {
"production": {
"presets": [
["env", {
"targets": {
"node": ["6.10"]
},
"modules": "commonjs"
}]
@morulus
morulus / allregex.md
Last active January 25, 2018 12:48
Collection of RegEx
@morulus
morulus / budnleAnalyzer.js
Last active September 20, 2018 21:13
Module.webpack.react-app-rewired.bundle-analyzer
const { BundleAnalyzerPlugin } = require(`webpack-bundle-analyzer`)
module.exports = config => {
config.plugins.push(new BundleAnalyzerPlugin())
return config
}
@morulus
morulus / .eslintrc
Created November 28, 2017 15:38
Nice .eslintrc
{
parser: babel-eslint,
env: {
browser: true,
jest : true,
node : true,
es6: true
},
parserOptions: {
ecmaFeatures: {
@morulus
morulus / log.js
Created November 11, 2017 02:42
Node.js log
const chalk = require('chalk');
const marked = require('marked');
const TerminalRenderer = require('marked-terminal');
marked.setOptions({
renderer: new TerminalRenderer({
showSectionPrefix: false,
reflowText: true,
// Colors
code: chalk.yellow,
@morulus
morulus / package.json
Last active October 30, 2017 14:51
Test sh
{
"name": "some",
"version": "1.0.0",
"bin": "./start.sh"
}
import { echo } from 'erector';
export default function* () {
yield echo('OK');
}
@morulus
morulus / common.js
Last active October 30, 2017 00:24
lobe: webpack-config
const path = require('path');
const recreator = require('recreator');
const webpack = require('webpack');
const StyleLintPlugin = require('stylelint-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const autoprefixer = require('autoprefixer');