This repository was archived by the owner on Jun 15, 2023. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork47
fdaciuk/workflow-reactjs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Instead of using this project, preferbetter andmodern alternatives
- Webpack 3+
- Babel
- React hot loader
- HTML and CSS generated automatically by webpack
- Jest for tests and Chai for assertions
- Storybook to create isolatelly components' stories
- Async/await
- Dynamic
import()function - Webpack tree shaking!
- Preact for production build (optional)
- Node.js
>=v6;
- Clone this repository:
git clone git@github.com:fdaciuk/workflow-reactjs.git; - Remove
.gitdirectory; - Install dependencies:
yarn(ornpm i); - Run
yarn dev(ornpm start) to develop onhttp://localhost:3000 - Run
yarn build(ornpm run build) for production build (files will be generated ondistdirectory)
If you are on Windows, and try to runyarn lint, you'll get an errorbecausespawn module does not work very well on Windows.
You should installcross-spawn, and editgulpfile.js, removing line4 anduncomment line7.
A big thanks to@hgtpcastro for this tip.
yarn dev (or npm run dev): Starts the application on development modeyarn test (or npm test): Run tests onceyarn test:watch (or npm run test:watch): Run tests in watch modeyarn build (or npm run build): Build project to productionyarn build:analyzer (or npm run build:analyzer): Build project to production and open bundle analyzer on8888portyarn storybook (or npm run storybook): Run Storybook on6006portyarn storybook:build: Build Storybook to static filesyarn update-packages: Update all packages to the latest versionyarn start (or npm start): Special script reserved to run production code. Change as you wish. For now, it is the same asyarn dev.
MIT © Fernando Daciuk
About
My workflow with ReactJS + Webpack 3+
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.