Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make branch up to date. #46

Merged
merged 16 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# /node_modules/* in the project root is ignored by default
# build artefacts
dist/*
coverage/*
# data definition files
**/*.d.ts
# 3rd party libs
/src/public/

# custom definition files
/src/types/
Empty file removed .eslintrc
Empty file.
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint'],
rules: {
indent: ['error', 4],
'linebreak-style': ['error', 'windows'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
},
};
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"tabWidth": 4,
"singleQuote": true
}
25 changes: 12 additions & 13 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript",
"program": "${workspaceFolder}/path/to/your/app.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"sourceMaps": true,
"protocol": "inspector"
}
]
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug TypeScript",
"program": "${workspaceFolder}/src/index.ts",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"sourceMaps": true
}
]
}
23 changes: 2 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ This project facilitates efficient item allocation to students based on specifie
6. [Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Installation](#installation-1)
7. [Contributing](#contributing)
8. [License](#license)
9. [Acknowledgments](#acknowledgments)


## Introduction

Expand All @@ -49,7 +47,7 @@ Provide a brief introduction to the project, its goals, and the problems it solv

### Functions

1. **createGraph()**: Builds a directed graph based on provided items, creating edges between items with suitable time gaps.
1. ** ()**: Builds a directed graph based on provided items, creating edges between items with suitable time gaps.
2. **buildGroupsWithSamePaths()**:Finds every Poll Combination and returns groups
3. **findPathsForEachGroup()**: Finds every possible Path for each group
4. **allocateGroupsToItems()**: Allocates the groups to the items.
Expand Down Expand Up @@ -95,13 +93,6 @@ To start the project, use:
npm start
```

## Notes

- Mention any assumptions, key strategies, and efficiency considerations.
- Highlight any customization options or parameters that users might want to adjust.

## Getting Started

### Prerequisites

List any prerequisites or dependencies that users need to have installed.
Expand All @@ -110,14 +101,4 @@ List any prerequisites or dependencies that users need to have installed.

Provide step-by-step instructions on how to install and set up the project.

## Contributing

Outline guidelines for contributing to the project. Include information on how to submit issues, suggest improvements, and propose new features.

## License

Only personal use.

## Acknowledgments

Give credit to any third-party libraries, resources, or inspirations used in the project.
16 changes: 6 additions & 10 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
// eslint-disable-next-line no-undef
module.exports = {
globals: {
"ts-jest": {
tsconfig: "tsconfig.json",
transform: {
'^.+\\.(ts)$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
},
},
moduleFileExtensions: ["ts", "js"],
transform: {
"^.+\\.(ts|tsx)$": "ts-jest",
},
testMatch: ["**/test/**/*.test.(ts|js)"],
testEnvironment: "node",
moduleFileExtensions: ['ts', 'js'],
testMatch: ['**/test/**/*.test.(ts|js)'],
testEnvironment: 'node',
};
Loading