Skip to content

Commit

Permalink
Migrate back to npm, clean up some packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bespoyasov committed Nov 4, 2023
1 parent fe71b89 commit bce8ea1
Show file tree
Hide file tree
Showing 7 changed files with 12,848 additions and 6,453 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
node-version: 16

- name: Install all dependencies
run: yarn install --frozen-lockfile
run: npm ci

- name: Check text spelling with yaspeller
run: yarn spell
run: npm run spell

- name: Lint code with eslint
run: yarn lint
run: npm run lint

- name: Run unit-tests
run: yarn jest
run: npm test
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*

.vscode
.next
Expand Down
2 changes: 0 additions & 2 deletions models/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import makeInspectable from 'mobx-devtools-mst'
import { types, typecheck, Instance, applySnapshot } from 'mobx-state-tree'

import { Quiz, createEmptyQuiz } from '../quiz'
Expand Down Expand Up @@ -83,6 +82,5 @@ export function createAppModel(initState?: typeof AppModel): Instance<typeof App
const middleware = new SaveOnChangeMiddleware(appModel, appStateRepository, ['toggleComplete', 'toggleAnswer'])
middleware.enable()

makeInspectable(appModel)
return appModel
}
4 changes: 1 addition & 3 deletions models/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import makeInspectable from 'mobx-devtools-mst'
import { types } from 'mobx-state-tree'

import { SaveOnChangeMiddleware } from '../saveOnChange'
Expand All @@ -8,7 +7,7 @@ export const ThemeModel = types
.model({
using: types.enumeration(['light', 'dark'])
})
.actions(self => ({
.actions((self) => ({
toggleTheme() {
self.using = self.using === 'light' ? 'dark' : 'light'
}
Expand All @@ -21,6 +20,5 @@ export function createThemeModel(savedState: typeof ThemeModel) {
const middleware = new SaveOnChangeMiddleware(themeModel, stateRepository, ['toggleTheme'])
middleware.enable()

makeInspectable(themeModel)
return themeModel
}
Loading

0 comments on commit bce8ea1

Please sign in to comment.