Skip to content

Commit

Permalink
fix: refactor repo into lerna mono-repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Apr 27, 2021
1 parent e7a6e87 commit d5bffc1
Show file tree
Hide file tree
Showing 80 changed files with 11,335 additions and 12,366 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*]
indent_style = tab

[*.{cs,js,ts,json}]
indent_size = 4
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
119 changes: 0 additions & 119 deletions .github/workflows/release.yml

This file was deleted.

29 changes: 25 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
node_modules/
dist/
coverage/
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
node_modules
.pnp
.pnp.js

# testing
coverage

# production
build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
.vscode/*
**/dist/*
deploy/
.vscode/
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ The project is based on the documentation available here: http://xkeys.com/PISup

```
$ npm install --save xkeys
or
$ yarn add xkeys
```

### Linux
Expand Down Expand Up @@ -268,7 +270,16 @@ The most notable changes are:
| `myXkeys.setAllBacklights(...)` | Arguments have changed, see docs |
| `myXkeys.setLED(index, ...)` | `myXkeys.setIndicatorLED(index, ...)` (index 1 = the red, 2 = the green one) |

## Contribution guidelines
## For developers

This is a mono-repo, using [Lerna](https://github.com/lerna/lerna) and [Yarn](https://yarnpkg.com).

To set up you local system for developing this repo:

* Install Yarn: `npm install -g yarn`
* Install all dependencies: `yarn`

### Contribution guidelines

If you have any questions or want to report a bug, [please open an issue at Githib](https://github.com/SuperFlyTV/xkeys/issues/new).

Expand All @@ -278,7 +289,7 @@ If you want to contribute a bug fix or improvement, we'd happily accept Pull-req
### Coding style and tests
Please follow the same coding style as the rest of the repository when you type.

Before committing, be sure to run `npm run test` to ensure your code passes the linting and unit tests.
Before committing, be sure to run `yarn test` to ensure your code passes the linting and unit tests.

### License
By contributing, you agree that your contributions will be licensed under its MIT License.
37 changes: 0 additions & 37 deletions config/tsconfig.base.json

This file was deleted.

5 changes: 0 additions & 5 deletions config/tsconfig.flexible.json

This file was deleted.

12 changes: 0 additions & 12 deletions config/tsconfig.strict.json

This file was deleted.

28 changes: 28 additions & 0 deletions jest.config.base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
module.exports = {
roots: ['<rootDir>/src'],
projects: ['<rootDir>'],
preset: 'ts-jest',
globals: {
'ts-jest': {
tsconfig: 'tsconfig.json',
},
},
moduleFileExtensions: ['js', 'ts'],
transform: {
'^.+\\.(ts|tsx)$': 'ts-jest',
},
testMatch: ['**/__tests__/**/*.spec.(ts|js)'],
testEnvironment: 'node',
coverageThreshold: {
global: {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
coverageDirectory: './coverage/',
coverageDirectory: '<rootDir>/coverage/',
collectCoverage: false,
// verbose: true,
}
24 changes: 0 additions & 24 deletions jest.config.js

This file was deleted.

8 changes: 8 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"packages": [
"packages/**"
],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "0.0.0"
}
Empty file removed log.txt
Empty file.
Loading

0 comments on commit d5bffc1

Please sign in to comment.