Skip to content

Commit

Permalink
refactor(project): Create monorepo (#6)
Browse files Browse the repository at this point in the history
* feat(project): use lerna and create monorepo

* feat(project): use lerna and create monorepo

* chore(project): apply prettier

* fix(project): resolve wrong scoring

* fix(project): resolve some last stuff

* test(project): resolve tests

* chore(project): uncomment everything

* chore(project): use esm for scripts

* feat(project): create new language packages

* refactor(project): remove default dictionary includes

* chore(project): resolve build issues

* chore(project): add build github action

* test(password): resolve wrong guesses

* refactor(match): remove extra user input option
  • Loading branch information
MrWook authored Jan 4, 2021
1 parent efeca75 commit a2ae466
Show file tree
Hide file tree
Showing 121 changed files with 12,047 additions and 18,831 deletions.
7 changes: 4 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
[
"@babel/env",
{
"modules": false
"useBuiltIns": "usage",
"corejs": 3
}
]
],
Expand All @@ -16,9 +17,9 @@
"targets": {
"node": "current"
}
},
}
]
]
}
},
}
}
8 changes: 6 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ module.exports = {
plugins: ['import', 'prettier', 'jest', '@typescript-eslint'],
settings: {
'import/resolver': {
webpack: {
config: 'eslint-webpack-resolver.config.js',
alias: {
map: [
['~', './'],
['@', './src'],
],
extensions: ['.js', '.ts', '.d.ts'],
},
},
},
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/build.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
name: Run build
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Node.js dependencies
run: yarn --frozen-lockfile

- name: Build source
run: yarn build
9 changes: 4 additions & 5 deletions .github/workflows/lint.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Lint

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
run-linter:
Expand All @@ -24,8 +24,7 @@ jobs:
node-version: 12

- name: Install Node.js dependencies
run: npm ci
run: yarn --frozen-lockfile

- name: Run linter
run: npm run lint

run: yarn lint
11 changes: 4 additions & 7 deletions .github/workflows/test.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Test

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
build:
Expand All @@ -28,10 +28,7 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install Node.js dependencies
run: npm ci

- name: Build source
run: npm run build
run: yarn --frozen-lockfile

- name: Run tests
run: npm run test
run: yarn test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.19.0
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.


Loading

0 comments on commit a2ae466

Please sign in to comment.