generator-orcaguife v0.1.1
Orca UI FE yeoman generator
For setting up Orca UI FE project quickly. For others projects, you can also use it if like.
Encapsulated from create-react-app with a lot of custom modifications.
Usage:
- Install yeoman:
$ npm i yeoman -g - Use this generator:
$ mkdir yourApp $ cd yourApp $ npm i generator-orcaguife -g $ yo orcaguife How to modify this generator with your custom functionality and templates:
- Clone or download and unzip this project, and then modify it as you want, but remember to follow the yeoman-generator rules.
- Publish the modified copy as a new yeoman-generator node module to NPM platform with your own unique module name. Notice: Make sure that your NPM's registry is "https://registry.npmjs.org".
- If you just wanna keep the modified copy in your PC, just run
$ npm linkunder the root folder of it. - Run the shell commands of previous step 2 .
Wanna integrate generator into other GUI tools(not terminal like), check yeoman-environment.
The main versions of dependencies of this ancient CRA we use:
webpack3.8.1webpack-dev-server2.9.4babel-core6.26.0react16.2.0Significant changes since version 16.3.redux3.7.2react-redux5.0.5react-router4.2.0A truly dynamic, component-based router.antd3.12.4Don't forget the 2018 Christmas Egg.We will do the upgrade if we have the time, or handle it by yourself :).
The configurations and features we modified and introduced to the raw CRA for
webpackandbabelare as below:- Introduce
less-loaderto handle less files. - Introduce
HappyPackto change the compiling ways of some types of files, and optimize compiling speed. - Introduce reverse proxy server configuration when running
devenvironment, usage:$ npm run start -- --rp http:// 192.168.100.100. So do not need to set itpakage.jsonwhich way you will modify the code frequently. - Introduce module import as required for
antd, change some configurations in.babelrc. - Introduce
transform-decorators-legacyplugins in.babelrcfor the decorator syntax for EcmaScript. If you upgrade yourbabelversion to 7.X, there's another plugin instead. - Introduce
stage-2preset in.babelrcfor some new syntax of EcmaScript. - Some other little changes, etc.
- Introduce