brew install redis
Set up launchctl to auto start redis
$ ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents
/usr/local/opt/redis/ is a symlink to /usr/local/Cellar/redis/x.y.z (e.g., 2.8.7)
| FROM node:8.0.0-alpine as build-env | |
| # your project name(my project name is planet) | |
| WORKDIR /planet | |
| # firstly copy your package.json to your docker and run npm install | |
| COPY package.json . | |
| RUN npm install |
| import React from 'react' | |
| import get from 'lodash/get' | |
| import isBoolean from 'lodash/isBoolean' | |
| import isEmpty from 'lodash/isEmpty' | |
| import { Spin } from 'antd' | |
| const NOT_MATCH_PROPERTY = 'not match any propertys' | |
| export const withLoading = (WrappedComponent, opts) => { | |
| const defaultOptions = { |
In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.
For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.