FEE Building Devops
WHY
-
vue-cli
too complex and less supported -
webpack
too complex and just wanna start coding -
create-react-app
not transparent to understand -
All I want to it to be hackable, do what ever I wanna
Features:
-
Simple
,Convention
,Best Practice
,Configurable
,Transparent
-
Both
ES6
andTypescript
are supported -
Both
React
andVue
are supported -
Jest
Easy -
Linter
for scripts and styles -
Auto
formatter
-
git hooks
Development configuration
-
prettier
,eslint
,stylelint
,browserslist
integrated withpackage.json
-
tsconfig.json
,tslint.json
placed in theroot
-
.babelrc.js
and.postcssrc.js
is optional -
.babelrc.js
is required whenjest.config.js
Developing
SET UP
yarn add --dev @fees/builds
then you have a command fees-cli
CODE STRUCTURE
All source code placed in src
directory
All tests placed in tests
A index.(jsx?|tsx?)
in the src
as entry file
SERVE FOR DEVELOPMENT
Start a dev server
fees-cli serve --host 0.0.0.0 --port 1995 --pwa --open
BUILD FOR PRODUCTION
Bundle all sources to a publicPath
fees-cli build --public-path /