Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
01dr committed Oct 2, 2017
0 parents commit f6073f2
Show file tree
Hide file tree
Showing 109 changed files with 150,644 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"presets": [
["env", {
"modules": false,
"targets": { "browsers": ["ie >= 10", "> 5%"] }
}]
],
"plugins": [
"react-hot-loader/babel",
"transform-runtime",
"transform-react-jsx",
"transform-object-rest-spread",
[ "react-css-modules", { "generateScopedName": "[local]___[hash:base64:5]" }]
]
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
34 changes: 34 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"extends": "airbnb-base",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"rules": {
"comma-dangle": 0,
"import/imports-first": 0,
"global-require": 0,
"class-methods-use-this": 0,
"arrow-body-style": [2, "as-needed"],
"arrow-parens": ["error", "always"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-debugger": 0,
"no-console": 0,
"new-cap": 0,
"strict": 0,
"no-param-reassign": ["error", { "props": false }],
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"eol-last": 0,
"quotes": [2, "single"],
"jsx-quotes": [0, "prefer-single"],
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1
}
}
62 changes: 62 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

.idea
.DS_Store
dist
21 changes: 21 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": ["stylelint-config-standard", "stylelint-config-css-modules"],
"rules": {
"color-named": "never",
"font-family-name-quotes": "always-where-required",
"font-weight-notation": "named-where-possible",
"function-url-no-scheme-relative": true,
"function-url-quotes": "always",
"string-quotes": "single",
"value-keyword-case": "lower",
"unit-blacklist": [],
"max-empty-lines": 2,
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"at-rule-no-unknown": [true, {
ignoreAtRules: ["use", "for"]
}]
},
"ignoreFiles": ["node_modules/*", "src/assets/**"],
"defaultSeverity": "error"
}
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Frontend static boilerplate

A simple boilerplate to create static frontend applications.

### Stack

- **React**
- **Redux [ducks](https://github.com/erikras/ducks-modular-redux)**
- **Redux Saga**
- **Webpack 3**
- **I18next**
- **[Seamless Immutable](https://github.com/rtfeldman/seamless-immutable)**

### Scripts

``npm install``

``npm start`` - start application in development mode

``npm run build`` - build application into `/dist` directory

``npm run eslint`` - run eslint

``npm run stylelint`` - run stylelint

### Example

Source code contains an example of a simple counter that is in the application store. To demonstrate side-effects during actions, a console.log when is firing.

______________________________

[Jincor Tech](https://github.com/JincorTech)
Loading

0 comments on commit f6073f2

Please sign in to comment.