- Using emmet in jsx files
- Emmet expands text when js autocomplete needed
- Using
className
instead ofclass
- Install plugin RegReplace
- Install plugin Chain Of Command
var path = require('path'); | |
module.exports = { | |
entry: [ | |
'./src/index.js', | |
'./src/index.html' | |
], | |
output: { | |
path: path.join(__dirname, 'dist'), | |
filename: 'bundle.js', |
{ | |
"name": "todo-redux-30-steps", | |
"version": "1.0.0", | |
"description": "A simple todo app", | |
"main": "index.js", | |
"scripts": { | |
"test": "mocha --compilers js:babel-core/register --require ./test/test_helpers.js --recursive", | |
"test:watch": "npm run test -- --watch", | |
"lintt": "eslint -c .eslintrc src test", | |
"lint": " node_modules/.bin/eslint test src --fix" |
#selecting | |
ctrl+shift+m: select everything inside brackets |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote | |
git diff --cached #--cached means show the changes in the cache/index (i.e. staged changes) against the current HEAD. --staged is a synonym for --cached |
node_modules | |
ncp-debug.log | |
npm-debug.log | |
bower_component | |
src/config/configSec.js | |
.DS_STORE | |
node_modules | |
*~ | |
*.pyc |
webpack/* | |
karma.conf.js | |
tests.webpack.js |
{ | |
"parser": "babel-eslint", | |
"plugins": [ | |
"babel", | |
"react" | |
], | |
| |
"ecmaFeatures": { | |
"jsx": true, |
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
--- | |
gallery: | |
- name: big3 | |
col: 3 | |
author: Rob Bye | |
credit: https://images.unsplash.com/photo-1433148749784-5e235e9efd12?q=80&fm=jpg&s=7c1592ac1b4d576a48af77f6c2e0ab14 | |
- name: big1 | |
col: 3 | |
author: Brandon Lam | |
credit: https://images.unsplash.com/photo-1439694458393-78ecf14da7f9?q=80&fm=jpg&s=643e44f5177366de6cc914c8bcfbe064 |