Skip to content

Latest commit

 

History

History
110 lines (83 loc) · 2.83 KB

README_EN.md

File metadata and controls

110 lines (83 loc) · 2.83 KB

Front-End Developer Integration.

Feer

Feer : Front-End Developer Integration. Fast built integrated tools based on RollupJS.  🚀

The naming inspiration comes from F ront- E nd  Engine er, that is "FEer",  such as "PHPer"、 "JAVAer"

中文

yarn start

commander

  • global
npm i feer-cli -g
  • usage
feer <project-name>
  • or
npx feer-cli <project-name>

support PC and H5 scenario selection.

During the creation process using the feer command, template selection is provided:

? Which type do you want to create? (Use arrow keys)
❯ PC - (build the pc page)
  H5 - (build the h5 page)
  PC-multi - (build the pc multi-page)

directory structure

├── .babelrc ---> Babel configuration file
├── .gitignore ---> Git filtering rule
├── .eslintrc ---> ESLint configuration file
├── .eslintignore ---> ESLint filtering rule
├── README.MD
├── package.json
├── build ---> Output folder
├── config ---> Configuration folder(`*`)
├── views ---> Nunjucks template engine
├── imgs ---> Image resource file (this folder can be deleted when using CDN)
└── src ---> Source folder

configuration folder

├── app.js -----> Local configuration, such as port/Route/Mock etc.
├── build.js ----> Nunjucks template processing
├── server.js ----> Fastify static server, routing processing
└── rollup.config.js ---> RollupJS configuration file, configurable environment variables

source folder

├── libs ---> Can store incoming third party library files
├── mods ---> Module business logic
├── index.js ---> The entry file: index.js
└── sass ---> Sass, Source code folder, customizable

build 文件夹

├── index.html ---> Html template file
├── js ---> Javascript source folder
├── css ---> Css source folder
└── img ---> Image resource file (this folder can be deleted when using CDN)

features

  • Based on the RollupJS, Fast modular packaging to minimize bundles
  • Tree- Shaking helps you remove useless code
  • Support single/multiple page development
  • Support Proxy access interface
  • Emulation API based on MockJS
  • Simple and convenient configuration,fast packaging
  • Nunjucks, rich and powerful template engine
  • Support Sass, Less powerful CSS extension language
  • Flexible routing configuration
  • ES6 writes elegant JS code
  • Supports automatic browser opening (automatically gets the local IP address)
  • Through the test of many projects, continuous improvement and upgrading
  • support ie6、7+, etc.

License

MIT