From dce914286312f1a0b0bd3d6cc2c74071787264c8 Mon Sep 17 00:00:00 2001 From: "Christian.Schilling" Date: Thu, 27 Aug 2015 10:33:46 +0200 Subject: [PATCH] Add needed base files --- .editorconfig | 12 ++++++++++++ .eslintrc | 26 ++++++++++++++++++++++++++ README.md | 25 +++++++++++++++++++++++-- package.json | 29 +++++++++++++++++++++++++++++ 4 files changed, 90 insertions(+), 2 deletions(-) create mode 100644 .editorconfig create mode 100644 .eslintrc create mode 100644 package.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4a7ea30 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +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 diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..722d298 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,26 @@ +{ + "plugins": [ + "react" + ], + "ecmaFeatures": { + "jsx": true, + "modules": true + }, + "env": { + "browser": true, + "amd": true, + "es6": true + }, + "rules": { + "quotes": [ 1, "single" ], + "no-undef": false, + "global-strict": false, + "no-extra-semi": 1, + "no-underscore-dangle": false, + "no-console": 1, + "no-unused-vars": 1, + "no-trailing-spaces": [1, { "skipBlankLines": true }], + "no-unreachable": 1, + "no-alert": false + } +} diff --git a/README.md b/README.md index b4ac62f..0bcf353 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ -# react-webpack-template -Simple react webpack template +# Welcome to react-webpack-template +This repository holds a base template for the new version of generator-react-webpack. +It can be understood as the prototype for newly generated projects. + +## Features +The following features are planned to be included in the final version: + +- [ ] Webpack +- [ ] Babel +- [ ] Mocha Unit tests (*optional*) +- [ ] React.Router +- [ ] EsLint Support +- [ ] No dependency on grunt, gulp or the next hot taskrunner! + +## What is it for? +This template can be used directly for the creation of new projects. +Also it will be the "template" for the next version of generator-react-webpack. + +## License +react-webpack-template is available under MIT-License and can therefore be used in any project free of charge. + +## Contributors +- Weblogixx (cs@weblogixx.de) diff --git a/package.json b/package.json new file mode 100644 index 0000000..2b3a99f --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "react-webpack-template", + "version": "0.0.1", + "description": "Base template for react and webpack", + "main": "index.js", + "private": true, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://weblogixx@github.com/weblogixx/react-webpack-template.git" + }, + "keywords": [ + "React", + "Webpack", + "Babel" + ], + "author": "Christian Schilling (cs@weblogixx.de)", + "license": "MIT", + "bugs": { + "url": "https://github.com/weblogixx/react-webpack-template/issues" + }, + "homepage": "https://github.com/weblogixx/react-webpack-template#readme", + "devDependencies": { + "webpack": "^1.12.0", + "webpack-dev-server": "^1.10.1" + } +}