Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
945cd66
chore: remove useless files
Kocal Jun 14, 2018
af15a5d
chore: prepare new JSDoc tags
Kocal Jun 14, 2018
fad68a6
chore: update example tags
Kocal Jun 14, 2018
7a8b3d3
chore: prepare default renderer
Kocal Jun 14, 2018
a7630f4
chore: replace vue tag by three tags for prop, data, and computed
Kocal Jun 15, 2018
89e2d8d
chore: work on default renderer
Kocal Jun 15, 2018
b83c529
chore: remove out dated tests
Kocal Jun 15, 2018
6dda43f
feat: add guessRenderer
Kocal Jun 16, 2018
901dda8
feat: add config file
Kocal Jun 16, 2018
0cdf396
fix(tag): use good name for vue-computed tag
Kocal Jun 16, 2018
594e7bb
chore: remove require hook for vue
Kocal Jun 16, 2018
f7e3528
refactor: move vue component script extractor into file
Kocal Jun 16, 2018
0fb625c
feat: remove source from doclet
Kocal Jun 16, 2018
4402baa
chore: clean some deps and jest config
Kocal Jun 16, 2018
e4a88ac
chore(test): prepare fixtures
Kocal Jun 16, 2018
6c68f4a
chore: prepare renderers
Kocal Jun 16, 2018
e7b244c
chore: write unit test for renderer, but I will use Cypress for that …
Kocal Jun 16, 2018
f5adaf5
chore: prepare e2e tests
Kocal Jun 16, 2018
7f91244
chore: tweak travis
Kocal Jun 16, 2018
34b7ad4
chore: prepare cypress
Kocal Jun 16, 2018
ef6bfda
chore: prepare renderers for next pr
Kocal Jun 16, 2018
3175cd6
fix tests
Kocal Jun 16, 2018
452e2a7
chore: remove pixi renderer because template is bugged
Kocal Jun 16, 2018
d0d1149
chore: try to improve tarvis speed
Kocal Jun 16, 2018
4e9420d
chore: update CHANGELOG and UPGRADE
Kocal Jun 16, 2018
5c6e718
chore(test): remove tests for renderers, because Cypress will test them
Kocal Jun 16, 2018
5c88840
chore: move « guessRenderer » into core folder
Kocal Jun 16, 2018
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
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,3 @@ typings/

# dotenv environment variables file
.env

/example/docs/
coverage
30 changes: 24 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,40 @@
sudo: false
dist: trusty

language: node_js
node_js:
- "8"
- "7"
- "6"
- "8"
- "9"
- "10"

cache:
yarn: true
directories:
- node_modules
- ~/.cache

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
- npm i -g yarn

install:
- yarn
- cd example && yarn && cd ..
- yarn cypress install

before_script:
- cd example && yarn docs && cd ..
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- cd example
- yarn jsdoc -d docs -c jsdoc.json
- yarn jsdoc -d docs-docstrap -c jsdoc.json -t ./node_modules/ink-docstrap/template
- yarn jsdoc -d docs-minami -c jsdoc.json -t ./node_modules/minami
- yarn jsdoc -d docs-tui -c jsdoc.json -t ./node_modules/tui-jsdoc-template
- cd ..

script:
- yarn lint
- yarn test
- yarn test -i
- yarn cypress run --browser chrome --config watchForFileChanges=false

after_success: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@

## 2.0.0

### Features

- Added `@vue-prop` tag (#59)
- Added `@vue-data` tag (#59)
- Added `@vue-computed` tag (#59)
- Added rendering system to support more JSDoc templates (#59)

### Removals

- Removed `followImports` config (#53)
- Removed configuration system (#53)
- Removed source transformation (Babel) (#55)
- Removed Vue component script evaluation (#57)
- Removed hooks listing (#59)
- Removed Vue lifecycle hooks listing (#59)
- Removed `@vue` tag (#59)

### Internals

- Use [Cypress](https://cypress.io) for E2E testing (#59)
24 changes: 24 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,27 @@ because it is not used anymore.
}
}
```

### Usage

You SHOULD NOT use `@vue` tag anymore.

Instead, you should use `@vue-prop`, `@vue-data`, and `@vue-computed` like this:

```vue
<template>
<div>Hello world</div>
</template>

<script>
/**
* @vue-prop {Number} initialCounter
* @vue-prop {Number} [step=1] Step
* @vue-data {Number} counter - Current counter's value
* @vue-computed {String} message A message
*/
export default {
// ...
}
</script>
```
17 changes: 0 additions & 17 deletions __tests__/__snapshots__/docletHandlers.test.js.snap

This file was deleted.

17 changes: 17 additions & 0 deletions __tests__/core/__fixtures__/Component.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<template>
<div>Hello world</div>
</template>

<script>
/**
* @vue-data {String} [foo=bar] Foo description
*/
export default {
name: 'Component',
data() {
return {
foo: 'bar'
}
}
}
</script>
17 changes: 17 additions & 0 deletions __tests__/core/__snapshots__/vueScriptExtractor.js.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`core.extractVueScript extract script 1`] = `
"
/**
* @vue-data {String} [foo=bar] Foo description
*/
export default {
name: 'Component',
data() {
return {
foo: 'bar'
}
}
}
"
`;
10 changes: 10 additions & 0 deletions __tests__/core/vueScriptExtractor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const path = require('path')
const extractVueScript = require('../../lib/core/vueScriptExtractor')

describe('core.extractVueScript', () => {
const filename = path.join(__dirname, '__fixtures__', 'Component.vue')

test('extract script', () => {
expect(extractVueScript(filename)).toMatchSnapshot()
})
})
128 changes: 0 additions & 128 deletions __tests__/docletHandlers.test.js

This file was deleted.

Loading