This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Define a color variable | |
$color-sassy: #cc4397; | |
$color-blue: #0059ff; | |
.app { | |
color: $color-blue; | |
font-size: 2rem; | |
text-align: center; | |
.sassyDiv { | |
font-size: 3rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module: { | |
rules: [ | |
{ | |
// look for .js or .jsx files | |
test: /\.(js|jsx)$/, | |
// in the `src` directory | |
include: path.resolve(paths.appSrc), | |
exclude: /(node_modules)/, | |
use: { | |
// use babel for transpiling JavaScript files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
loader: 'sass-loader', | |
options: { | |
sourceMap: true, | |
}, | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": ["@babel/preset-env", "@babel/react"], | |
"plugins": [ | |
"react-hot-loader/babel", | |
"@babel/plugin-proposal-class-properties", | |
"@babel/plugin-proposal-object-rest-spread" | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"extends": ["airbnb", "prettier", "prettier/flowtype", "prettier/react"], | |
"plugins": ["import", "flowtype", "react", "prettier"], | |
"parser": "babel-eslint", | |
"rules": { | |
"react/jsx-filename-extension": [ | |
1, | |
{ | |
"extensions": [".js", "jsx"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"check-staged": "lint-staged", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"husky": { | |
"hooks": { | |
"pre-commit": "lint-staged", | |
} | |
}, | |
"lint-staged": { | |
"*.{js,jsx}": [ | |
"eslint" | |
], | |
"*.{js,jsx,json,md}": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "react-starter-test-2", | |
"version": "1.0.0", | |
"main": "index.jsx", | |
"license": "MIT", | |
"scripts": { | |
"build": "yarn clean; webpack --config config/webpack-prod-config.js", | |
"clean": "rm -rf build/*", | |
"start:dev": "node config/webpack-dev-server.js", | |
"start:prod": "yarn build; serve build" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"presets": ["@babel/preset-env", "@babel/react"], | |
"plugins": ["react-hot-loader/babel"] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.app { | |
color: blue; | |
font-size: 2rem; | |
text-align: center; | |
} |