Skip to content

Commit d109b5c

Browse files
committed
initial commit
0 parents  commit d109b5c

File tree

13 files changed

+4306
-0
lines changed

13 files changed

+4306
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
trim_trailing_whitespace = true
7+
charset = utf-8
8+
9+
[*.js]
10+
indent_style = space
11+
indent_size = 2
12+
13+
[{package.json,*.yml,*.cjson}]
14+
indent_style = space
15+
indent_size = 2

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
node_modules

.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@nuxtjs/eslint-config-typescript"
4+
]
5+
}

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- run: corepack enable
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 16
20+
cache: "pnpm"
21+
- run: pnpm install
22+
- run: pnpm lint
23+
- run: pnpm build
24+
- run: pnpm vitest --coverage
25+
- uses: codecov/codecov-action@v3

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.vscode
2+
node_modules
3+
*.log*
4+
.DS_Store
5+
coverage
6+
dist
7+
types
8+
.conf*

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 - nuxt-contrib
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# vue-devtools-stub
2+
3+
[![npm version][npm-version-src]][npm-version-href]
4+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
5+
[![Github Actions][github-actions-src]][github-actions-href]
6+
[![Codecov][codecov-src]][codecov-href]
7+
8+
Stub package for [`@vue/devtools-api`](https://npmjs.com/package/@vue/devtools-api).
9+
10+
**Why this package:**
11+
12+
Many of Vue 3 libraries use this package internally to integrate with devtools and mostly for development.
13+
14+
While normally an __esm bundler__ version of those libraries allows tree-shaking and opting out, it is not always possible and specially problematic with externalization.
15+
16+
This package mocks same interface of the package.
17+
18+
## 💻 Development
19+
20+
- Clone this repository
21+
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable` (use `npm i -g corepack` for Node.js < 16.10)
22+
- Install dependencies using `pnpm install`
23+
- Run interactive tests using `pnpm dev`
24+
25+
## License
26+
27+
Made with 💛
28+
29+
Published under [MIT License](./LICENSE).
30+
31+
<!-- Badges -->
32+
[npm-version-src]: https://img.shields.io/npm/v/vue-devtools-stub?style=flat-square
33+
[npm-version-href]: https://npmjs.com/package/vue-devtools-stub
34+
35+
[npm-downloads-src]: https://img.shields.io/npm/dm/vue-devtools-stub?style=flat-square
36+
[npm-downloads-href]: https://npmjs.com/package/vue-devtools-stub
37+
38+
[github-actions-src]: https://img.shields.io/github/workflow/status/nuxt-contrib/vue-devtools-stub/ci/main?style=flat-square
39+
[github-actions-href]: https://github.com/nuxt-contrib/vue-devtools-stub/actions?query=workflow%3Aci
40+
41+
[codecov-src]: https://img.shields.io/codecov/c/gh/nuxt-contrib/vue-devtools-stub/main?style=flat-square
42+
[codecov-href]: https://codecov.io/gh/nuxt-contrib/vue-devtools-stub

package.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"name": "vue-devtools-stub",
3+
"version": "0.0.0",
4+
"description": "",
5+
"repository": "nuxt-contrib/vue-devtools-stub",
6+
"license": "MIT",
7+
"sideEffects": false,
8+
"type": "module",
9+
"exports": {
10+
".": {
11+
"import": "./dist/index.mjs",
12+
"require": "./dist/index.cjs"
13+
}
14+
},
15+
"main": "./dist/index.cjs",
16+
"module": "./dist/index.mjs",
17+
"types": "./dist/index.d.ts",
18+
"files": [
19+
"dist"
20+
],
21+
"scripts": {
22+
"build": "unbuild",
23+
"dev": "vitest dev",
24+
"lint": "eslint --ext .ts,.js,.mjs,.cjs .",
25+
"prepack": "unbuild",
26+
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish",
27+
"test": "pnpm lint && vitest run"
28+
},
29+
"dependencies": {},
30+
"devDependencies": {
31+
"@nuxtjs/eslint-config-typescript": "latest",
32+
"@vue/devtools-api": "^6.2.1",
33+
"@vitest/coverage-c8": "latest",
34+
"eslint": "latest",
35+
"standard-version": "latest",
36+
"typescript": "latest",
37+
"unbuild": "latest",
38+
"vitest": "latest"
39+
},
40+
"packageManager": "[email protected]"
41+
}

0 commit comments

Comments
 (0)