React-starter a react web starter kit.
Installation
GIT
git clone -b master git@github.com:lnked/react-starter.gitOR
git init
git remote add origin git@github.com:lnked/react-starter.git
git fetch origin
git pull origin masterThen run command
yarnOR
npm iRun tasks
Start dev-server
yarn startBuild without compress
yarn buildBuild with compress
yarn releaseAnalyze code
yarn analyzeStats
yarn statsLint scripts
yarn lint:scriptsLint styles
yarn lint:stylesLint styles and scripts
yarn lintFix
yarn run lint:fixBuild with environment
yarn release --env exampleRequires a file .env.example file in the root folder of the project
You can add any files to your environments
Code generation commands
Add layout
yarn add-layout --name test-layout
yarn add-layout --name 'test layout'Optional
yarn add-layout --name test-layout --type class (default)
yarn add-layout --name test-layout --type functionAdd page
yarn add-page --name test-page
yarn add-page --name 'test page'Optional
yarn add-page --name test-page --type class (default)
yarn add-page --name test-page --type functionAdd fragment
yarn add-fragment --name test-fragment
yarn add-fragment --name 'test fragment'Optional
yarn add-fragment --name test-fragment --type class (default)
yarn add-fragment --name test-fragment --type functionAdd component
yarn add-component --name test-component
yarn add-component --name 'test component'Optional
yarn add-component --name test-component --type class (default)
yarn add-component --name test-component' --type functionFeatures
- Webpack 4
- TypeScript
- Styled Components
- PostCss / scss
- Svg sprites
- MobX
- Tests
- Code generation
Get in touch
- Bugs / Suggestions: open an issue