franciscomesa / smallestString

Smallest String kata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smallest String kata

Find the smallest substring of the first input field that includes all characters provided in the second field (no duplicated characters allowed in the second field).

Example:

  • Input string: "TDD development rocks"
  • Characters to match: "eo"
  • Output of function: "elo"

πŸ§‘β€πŸ”¬ Basic tools included

Fast start

This project is designed to be used with the latest LTS version of Node.js.

Clone the repository:

git clone https://github.com/franciscomesa/smallestString.git your_local_project_name

cd your_local_project_name

After clone, just install project dependencies with npm i command.

Test your installation with preconfigured test and script

npm start

πŸ’ͺ Ready for code!

Scripts configured

  • start: run de default script
  • build: transpile TypeScript to es2020
  • test: run tests
  • test:coverage: run and show test coverage
  • test:watch: interactive watch mode to automatically re-run tests
  • lint: lint source files and tests
  • lint:fix: automatically fix source files and test with linter
  • dependencies:purge: remove installed packages and install all of them again
  • docs:generate: generate CHANGELOG and documentation in Markdown format
  • docs:update: generate CHANGELOG and documentation in Markdown format and commit changelog
  • docs:generate:html: generate CHANGELOG and documentation in HTML format

Next steps

  • Remove unused settings in config files.
  • Include GitHub Actions / GitLab CI

About

Smallest String kata

License:MIT License


Languages

Language:JavaScript 70.2%Language:TypeScript 29.8%