Skip to content

Commit

Permalink
Merge branch 'master' of gh:championswimmer/vuex-module-decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
championswimmer committed Feb 2, 2020
2 parents dc2e2de + 8ae4ac0 commit 7bd890a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build Docs
run: |
npm install
npm run docs:build
- name: GitHub Pages Deploy
uses: maxheld83/ghpages@v0.1.2
env:
BUILD_DIR: docs/.vuepress/dist
GH_PAT: ${{ secrets.GITHUB_TOKEN }}

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const store = new Vuex.Store({

If you need to support [module reuse](https://vuex.vuejs.org/guide/modules.html#module-reuse)
or to use modules with NuxtJS, you can have a state factory function generated instead
of a staic state object instance by using `stateFactory` option to `@Module`, like so:
of a static state object instance by using `stateFactory` option to `@Module`, like so:

```typescript
@Module({ stateFactory: true })
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ With this library, you can write `vuex` modules in this format -

```typescript
// eg. /app/store/posts.ts
import { VuexModule, Module } from 'vuex-module-decorators'
import { VuexModule, Module, Mutation, Action } from 'vuex-module-decorators'
import { get } from 'axios'

@Module
Expand Down
1 change: 1 addition & 0 deletions src/mutationaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function mutationActionDecoratorFactory<T extends Object>(params: MutationAction
} else {
console.error('Could not perform action ' + key.toString())
console.error(e)
return Promise.reject(e)
}
}
}
Expand Down

0 comments on commit 7bd890a

Please sign in to comment.