5.2.52 • Published 4 years ago

rearguard v5.2.52

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

Rearguard

Getting Started

  npm i -g rearguard
  mkdir my-new-app
  cd my-new-app
  rearguard init browser app
  npm start
  • You will get a ready-made project for developing a browser application with an index.tsx entry point.
  • Then you can add your code to the index.tsx.
  • After you install the dependencies, you can list them in vendors.ts, this will allow rearguard to create a dll bundle.
import "react";
import "react-dom";
import "mobx";

For create DLL bundle you should run npm run build, after that you will have DLL bundle and you can run npm start.

  • The dll bundle is necessary in order to exclude rarely changing pieces of code from the Assembly process, thus saving time

What is it rearguard

Rearguard is a set of tools for developing client-server applications in which the code base is developed in a mono repository. This doesn't exclude the possibility of working in a familiar way, using separate repositories for the client, server and other libraries. But the way of code organization in the mono repository is considered to be the recommended one.

Rearguard supports the following types of projects: browser (dll, lib, app), node (lib, app), isomorphic (lib, app).

  • First of all, rearguard covers basic needs:

    • development
    • code verification by static analyzers (ESLint, Prettier)
    • testing (Jest)
    • assembly result (application, library, isomorphic library)
  • Second, the rearguard knows a lot about the project and can automatically manage VSCode configurations since VSCode settings are JSON files.

  • In the third case, the rearguard contains templates for the main project settings such as (.eslint.json, .eslintignore, .gitignore, Dockerfile, .dockerignore, nginx.conf, .prettierrc, .prettierignore). The rearguard adds these templates to the project and then uses them as settings for Webpack and other users, thus managing configurations such as .eslint.json. The rearguard allows you to overwrite the settings. If necessary, you can bring the settings to the current default settings, if the rearguard has been updated rearguard refresh --force.
  • The rearguard supports two schemes of code organization known as a mono repository and poly repository.
  • The rearguard also covers a large number of household moments, which eliminates the need to take care of these moments.

The rearguard as a caring parent :-)

Technology

  • Typescript
    • ts-loader
    • eslint with eslint-loader
    • ts-loader with ForkTsCheckerWebpackPlugin no yet implemented
  • React (TSX)
  • CSS
    • SCSS support
    • isomorphic-style-loader ( optional )
    • CSS-Modules for ( css and scss )
    • PostCSS
    • browserslist settings from package.json
    • stylelint
  • Webpack
  • WebpackDevServer
  • DllPlugin and DllReferencePlugin are applied
  • HotModuleReplacementPlugin, CaseSensitivePathsPlugin are applied
  • Enabled chunk optimization
  • All moment library locales are skipped
  • Mono and poly repositories support
  • BundleAnalyzer supported
  • The eslint with access to configuration from the project (rearguard use .eslint.json for eslint-loader)
  • The stylelint with access to configuration from the project (rearguard use .stylelintrc.json for stylelint-loader)
  • Supported testing environment (Jest, Karma), with access to configuration from the project no yet implemented
  • Workbox included no yet implemented

CLI

Project Initialization / Refresh

Develop mode

Build mode

Testing mode

Validating

Group service

Install

Globally, for use in multiple projects.

npm install -g rearguard

Locally, in the project for saves the exact version.

npm install -D rearguard

Examples

You can see an example of how to use it in the following projects:

!!! They're not perfect at the moment, but I'll upgrade them to a canonical look as much as I can.

Documentation / Документация

5.2.52

4 years ago

5.2.51

4 years ago

5.2.50

4 years ago

5.2.49

4 years ago

5.2.48

4 years ago

5.2.47

4 years ago

5.2.46

4 years ago

5.2.45

4 years ago

5.2.43

4 years ago

5.2.42

4 years ago

5.2.41

4 years ago

5.2.40

4 years ago

5.2.39

4 years ago

5.2.38

4 years ago

5.2.37

4 years ago

5.2.36

4 years ago

5.2.35

4 years ago

5.2.34

4 years ago

5.2.33

4 years ago

5.2.32

4 years ago

5.2.31

4 years ago

5.2.30

4 years ago

5.2.28

4 years ago

5.2.26

4 years ago

5.2.25

4 years ago

5.2.24

4 years ago

5.2.23

4 years ago

5.2.22

4 years ago

5.2.21

4 years ago

5.2.20

4 years ago

5.2.19

4 years ago

5.2.18

4 years ago

5.2.17

4 years ago

5.2.16

4 years ago

5.2.15

4 years ago

5.2.14

4 years ago

5.2.12

4 years ago

5.2.9

4 years ago

5.2.11

4 years ago

5.2.10

4 years ago

5.2.8

4 years ago

5.2.7

4 years ago

5.2.6

4 years ago

5.2.5

4 years ago

5.2.4

4 years ago

5.2.2

4 years ago

5.2.1

4 years ago

5.2.0

4 years ago

5.1.21

4 years ago

5.1.20

4 years ago

5.1.19

4 years ago

5.1.18

4 years ago

5.1.17

4 years ago

5.1.16

4 years ago

5.1.15

4 years ago

5.1.14

4 years ago

5.1.13

4 years ago

5.1.12

4 years ago

5.1.11

4 years ago

5.1.9

4 years ago

5.1.10

4 years ago

5.1.8

4 years ago

5.1.7

4 years ago

5.1.6

4 years ago

5.1.5

4 years ago

5.1.4

4 years ago

5.1.3

4 years ago

5.1.2

4 years ago

5.1.1

4 years ago

5.1.0

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.8.5

5 years ago

4.8.4

5 years ago

4.8.3

5 years ago

4.8.2

5 years ago

4.8.1

5 years ago

4.8.0

5 years ago

4.7.2

5 years ago

4.7.1

5 years ago

4.7.0

5 years ago

4.6.7

5 years ago

4.6.6

5 years ago

4.6.5

5 years ago

4.6.4

5 years ago

4.6.3

5 years ago

4.6.2

5 years ago

4.6.1

5 years ago

4.6.0

5 years ago

4.5.20

5 years ago

4.5.19

5 years ago

4.5.18

5 years ago

4.5.17

5 years ago

4.5.16

5 years ago

4.5.15

5 years ago

4.5.14

5 years ago

4.5.13

5 years ago

4.5.12

5 years ago

4.5.11

5 years ago

4.5.10

5 years ago

4.5.9

5 years ago

4.5.8

5 years ago

4.5.6

5 years ago

4.5.5

5 years ago

4.5.4

5 years ago

4.5.3

5 years ago

4.5.2

5 years ago

4.5.1

5 years ago

4.5.0

5 years ago

4.4.0

5 years ago

4.3.4

5 years ago

4.3.3

5 years ago

4.3.2

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.0

5 years ago

4.1.17

5 years ago

4.1.16

5 years ago

4.1.15

5 years ago

4.1.14

5 years ago

4.1.13

5 years ago

4.1.12

5 years ago

4.1.11

5 years ago

4.1.10

5 years ago

4.1.9

5 years ago

4.1.8

5 years ago

4.1.7

5 years ago

4.1.6

5 years ago

4.1.4

5 years ago

4.1.3

5 years ago

4.1.2

5 years ago

4.1.1

5 years ago

4.0.4

5 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.0

5 years ago

3.1.7

5 years ago

3.1.6

5 years ago

3.1.4

5 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.0

5 years ago

2.5.1

6 years ago

2.4.2

6 years ago

2.4.1

6 years ago

2.4.0

6 years ago

2.3.32

6 years ago

2.3.31

6 years ago

2.3.30

6 years ago

2.3.29

6 years ago

2.3.28

6 years ago

2.3.27

6 years ago

2.3.26

6 years ago

2.3.25

6 years ago

2.3.24

6 years ago

2.3.23

6 years ago

2.3.22

6 years ago

2.3.20

6 years ago

2.3.19

6 years ago

2.3.18

6 years ago

2.3.17

6 years ago

2.3.16

6 years ago

2.3.15

6 years ago

2.3.14

6 years ago

2.3.13

6 years ago

2.3.12

6 years ago

2.3.7

6 years ago

2.3.6

6 years ago

2.3.5

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.13

6 years ago

2.2.11

6 years ago

2.2.10

6 years ago

2.2.9

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.5

6 years ago

2.2.4

6 years ago

2.2.3

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

1.8.8

6 years ago

1.8.7

6 years ago

1.8.6

6 years ago

1.8.4

6 years ago

1.8.3

6 years ago

1.8.2

7 years ago

1.8.1

7 years ago

1.8.0

7 years ago

1.7.11

7 years ago

1.7.9

7 years ago

1.7.8

7 years ago

1.7.7

7 years ago

1.7.6

7 years ago

1.7.5

7 years ago

1.7.4

7 years ago

1.7.3

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.7.0

7 years ago

1.6.28

7 years ago

1.6.27

7 years ago

1.6.26

7 years ago

1.6.25

7 years ago

1.6.24

7 years ago

1.6.23

7 years ago

1.6.22

7 years ago

1.6.21

7 years ago

1.6.20

7 years ago

1.6.19

7 years ago

1.6.18

7 years ago

1.6.17

7 years ago

1.6.16

7 years ago

1.6.14

7 years ago

1.6.13

7 years ago

1.6.12

7 years ago

1.6.11

7 years ago

1.6.10

7 years ago

1.6.9

7 years ago

1.6.8

7 years ago

1.6.7

7 years ago

1.6.6

7 years ago

1.6.5

7 years ago

1.6.4

7 years ago

1.6.3

7 years ago

1.6.2

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.5

7 years ago

1.5.4

7 years ago

1.5.3

7 years ago

1.5.2

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago