Skip to content

Instantly share code, notes, and snippets.

View dannyh79's full-sized avatar

Cheng-Hsuan "Danny" Han dannyh79

View GitHub Profile
@Cogitri
Cogitri / .configalacrittyalacritty.yml
Created January 20, 2019 11:40
.config/alacritty/alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@taiansu
taiansu / autoscript.sh
Last active April 24, 2020 07:54
webpack+babel configs for React
#!/usr/bin/env bash
# remove this file whenever you don't need it. you need json package to execute the last part.
echo 'installing npm dependencies...'
npm i -s react react-dom prop-types react-hot-loader
echo 'installing npm devDependencies...'
npm i -D @babel/cli @babel/core @babel/plugin-syntax-dynamic-import @babel/preset-env @babel/preset-react babel-loader clean-webpack-plugin html-webpack-plugin webpack webpack-cli webpack-dev-server
echo 'add scripts to package.json...'
json -f package.json -I -e "this.scripts.start=\"webpack-dev-server --mode development --open\""
json -f package.json -I -e "this.scripts.build=\"webpack --mode production\""