0.8.19 • Published 2 years ago

@artisan-commerce/auth v0.8.19

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Node Library Boilerplate

This boilerplate was made to facilitate the creation of server-side or client-side node application. It comes with a powerful webpack & typescript configuration out of the box.

New Project Configuration steps:

  1. Change your project name and description in package.json.
  2. Change default constants value in src/config/constants.ts.
  3. In .env.ENV change the ENV variable to the environment you are currently developing for.
  4. If you want to support the require syntax instead of import, change the module field in the tsconfig.json file to commonjs
  5. Update the readme.md file

File Structure

General representation of the building pieces

Available Scripts

In the project directory, you can run:

yarn start

Runs the app in the development mode.

yarn dev

Alias of yarn start, for some developers convinience.

yarn test

Launches the test runner in the interactive watch mode. See the section about running tests for more information.

yarn test:all

Run every test in a none interactive mode and create a coverage report.

This command is perfect for pre push hooks.

yarn test:ci

Simulates a CI environment before running all tests

yarn check-types

Will attempt to compile the whole project including test files that are normally excluded.

This command is perfect for verifing the project's integrity before commiting changes

yarn lint

Runs the configured linter to check for any lints in your code before deploying, developers must clean any lint before commiting or commints will not go through.

yarn prettier

Configure prettier, the files that should be included and excluded. This command should not be used by itself.

yarn format

Uses the prettier configuration to run prettier in write mode to all selected files. It will fix all format errors.

yarn check-format

Uses the prettier configuration to run prettier in read mode to all selected files. If any is bad formated, it will display a warning.

yarn build

Builds the app for production to the build folder. It correctly bundles the project in production mode and optimizes the build for the best performance.

yarn validate

It validates the integrity of the project by running many of the static testing, unit/integration testing and e2e testing commands.

yarn validate:ci

Run a different series of commands than validate, the selected commands that are run are the ones appropiate to be run on CI. This command is not met to be run locally.

Publishing your library

To publish your library you will only need to run yarn publish. We will take care of the rest. Things like creating a new build of your code will be done automatically. Just take into consideration to bump the project version following the semver methodology.

Previewing your library

When you are in the middle of the development of your new library, you find your self needing to test the current features you are developing. We recommend using npm link and a separte project for those purposes.

If you want to test your app on a real app, then we recommend using yarn publish. This method should be avoided during development.

Hope you are enjoying this boilerplate

We are happy to add/update any additional request you may have. For intering ideas, please submit a new issue and we will take care of it.

Happy coding! 🚀

0.9.0-canary.36

2 years ago

0.9.0-canary.35

2 years ago

0.9.0-canary.34

2 years ago

0.9.0-canary.33

3 years ago

0.9.0-canary.32

3 years ago

0.9.0-canary.31

3 years ago

0.9.0-canary.30

3 years ago

0.9.0-canary.29

3 years ago

0.9.0-canary.28

3 years ago

0.9.0-canary.27

3 years ago

0.9.0-canary.26

3 years ago

0.9.0-canary.25

3 years ago

0.9.0-canary.24

3 years ago

0.9.0-canary.23

3 years ago

0.9.0-canary.22

3 years ago

0.9.0-canary.21

3 years ago

0.9.0-canary.20

3 years ago

0.9.0-canary.19

3 years ago

0.9.0-canary.18

3 years ago

0.9.0-canary.17

3 years ago

0.9.0-canary.16

3 years ago

0.9.0-canary.15

3 years ago

0.9.0-canary.14

3 years ago

0.9.0-canary.13

3 years ago

0.9.0-canary.12

3 years ago

0.9.0-canary.11

3 years ago

0.9.0-canary.9

3 years ago

0.9.0-canary.8

3 years ago

0.9.0-canary.7

3 years ago

0.9.0-canary.6

3 years ago

0.9.0-canary.5

3 years ago

0.9.0-canary.4

3 years ago

0.9.0-canary.3

3 years ago

0.9.0-canary.2

3 years ago

0.9.0-canary.1

3 years ago

0.9.0-canary.0

3 years ago

0.8.20-canary.1

3 years ago

0.8.20-canary.0

3 years ago

0.8.19

3 years ago

0.8.19-canary.14

3 years ago

0.8.19-canary.13

3 years ago

0.8.19-canary.12

3 years ago

0.8.19-canary.11

4 years ago

0.8.19-canary.10

4 years ago

0.8.19-canary.9

4 years ago

0.8.19-canary.8

4 years ago

0.8.19-canary.7

4 years ago

0.8.19-canary.6

4 years ago

0.8.19-canary.5

4 years ago

0.8.19-canary.4

4 years ago

0.8.19-canary.3

4 years ago

0.8.19-canary.2

4 years ago

0.8.19-canary.1

4 years ago

0.8.19-canary.0

4 years ago

0.8.18

4 years ago

0.8.18-canary.1

4 years ago

0.8.18-canary.0

4 years ago

0.8.17

4 years ago

0.8.17-canary.0

4 years ago

0.8.16-canary.12

4 years ago

0.8.16-canary.11

4 years ago

0.8.16-canary.10

4 years ago

0.8.16-canary.9

4 years ago

0.8.16-canary.1

4 years ago

0.8.16-canary.0

4 years ago

0.8.16

4 years ago

0.8.15

4 years ago

0.8.14

4 years ago

0.8.13

4 years ago

0.8.12

4 years ago

0.8.11

4 years ago

0.8.10

4 years ago

0.8.8

4 years ago

0.8.7

4 years ago

0.8.6

4 years ago

0.8.5

4 years ago

0.8.4

4 years ago

0.8.3

4 years ago

0.8.2

4 years ago

0.8.0

4 years ago

0.7.0

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago