Skip to content

This repository contains a JavaScript implementation of an environment loader using the dotenv. The environment loader provides a clean and modular way to load environment configurations from `.env` files into your application

License

Notifications You must be signed in to change notification settings

diyorbekrustamjonov/env-loader

Repository files navigation

Typescript Template

This repository provides a TypeScript template with preconfigured packages for ESLint, Prettier, and Jest. It offers a solid foundation for your project development, ensuring code quality, consistency, and reliable testing.

Features

  • TypeScript setup
  • ESLint for code linting and style enforcement
  • Prettier for code formatting
  • Jest for automated testing

Getting Started

To get started with this template, follow these steps:

  1. Clone the repository: git clone https://github.com/diyorbekrustamjonov/typescript-template.git
  2. Install dependencies: npm install
  3. Build the project: npm run build
  4. Start the application: npm start

Scripts

  • npm run build: Deletes the build directory, compiles the TypeScript code, and generates type aliases.
  • npm start: Runs the built application from the build directory.
  • npm run lint:tslint: Lints the TypeScript code using TSLint and automatically fixes issues.
  • npm run lint:prettier: Formats the TypeScript code using Prettier.
  • npm test: Runs the test suites using Jest.
  • npm run coverage: Generates test coverage reports using Istanbul/NYC.

Usage

  1. Modify and add your TypeScript files in the appropriate directories.
  2. Customize ESLint rules and configurations in the .eslintrc.js file.
  3. Adjust Prettier settings in the .prettierrc.js file.
  4. Write and run tests using Jest in the tests directory.

Contributing

Contributions are welcome! If you find any bugs, have suggestions, or would like to contribute new features or enhancements, please refer to the Contributing Guidelines for more details.

Contact

If you have any questions or need further assistance, feel free to reach out:

License

This project is licensed under the MIT License. See the LICENSE file for more information.

About

This repository contains a JavaScript implementation of an environment loader using the dotenv. The environment loader provides a clean and modular way to load environment configurations from `.env` files into your application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published