$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
ignored_files = [ | |
"lib/tetris/shape.ex" | |
] | |
[ | |
inputs: | |
Enum.flat_map( | |
["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], | |
&Path.wildcard(&1, match_dot: true) | |
) -- ignored_files |
# which goes into dev null | |
# $? is the magic that tells us if it worked 0 = exists | |
if [[ `which nvm &>/dev/null && $?` != 0 ]]; then | |
source ~/.nvm/nvm.sh | |
fi |
#!/usr/bin/env bash | |
# To fix the " gpg: WARNING: unsafe permissions on homedir '/home/path/to/user/.gnupg' " error | |
# Make sure that the .gnupg directory and its contents is accessibile by your user. | |
chown -R $(whoami) ~/.gnupg/ | |
# Also correct the permissions and access rights on the directory | |
chmod 600 ~/.gnupg/* | |
chmod 700 ~/.gnupg |
# <type>: <subject> (Max 50 char, Why is this change necessary?) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Explain how the commit addresses the issue | |
# IMPORTANT!! Describe any side effects of the change. | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Examples: "Jira issue [ABC-123]" or "Closes Github issue #123" |
"use strict"; | |
// Load plugins | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const cp = require("child_process"); | |
const cssnano = require("cssnano"); | |
const del = require("del"); | |
const eslint = require("gulp-eslint"); | |
const gulp = require("gulp"); |
defmodule MyAppWeb.InputHelper do | |
use Phoenix.HTML | |
def input(form, field, opts \\ []) do | |
type = Phoenix.HTML.Form.input_type(form, field) | |
wrapper_classes = Keyword.get_values(opts, :wrapper_class) ++ ["row", "form-group"] | |
inputs_classes = Keyword.get_values(opts, :input_class) ++ ["form-control"] | |
if form.errors[field], do: inputs_classes = inputs_classes ++ ["form-control-danger"] |
$ echo 'gem "webpacker"' >> Gemfile
$ bundle install
$ rails webpacker:install
$ yarn add [email protected] jquery popper.js
diff --git a/config/webpack/environment.js b/config/webpack/environment.js
index d16d9af..86bf1a7 100644
# An example global gitignore file | |
# | |
# Place a copy if this at ~/.gitignore_global | |
# Run `git config --global core.excludesfile ~/.gitignore_global` | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll |
CTRL-C
sends INT
("interrupt") signal. Ignores input and creates a new prompt.CTRL-D
sends EOT
("end of transmission") signal. Exits.CTRL-Z
sends TSTP
("terminal stop") signal. Nothing.