- ReactJs, for component construction and state control
- Webpack 3+, to package the code
- Babel, to compile ES6
- React hot loader
- HTML and CSS generated automatically by webpack
- Jest, Enzyme for tests and Chai for assertions
- Storybook to create isolatelly components' stories
- Node.js
>=
v6;
- 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 ondist
directory)
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 on8888
portyarn storybook (or npm run storybook)
: Run Storybook on6006
portyarn storybook:build
: Build Storybook to static filesyarn start (or npm start)
: Special script reserved to run production code. Change as you wish. For now, it is the same asyarn dev
.