Skip to content

Commit

Permalink
Merge pull request #6 from SilentCatD/fix/remove-test-from-bundle
Browse files Browse the repository at this point in the history
Fix/remove test from bundle
  • Loading branch information
SilentCatD authored Dec 3, 2023
2 parents ba9f3ea + 91aad87 commit 67511e2
Show file tree
Hide file tree
Showing 20 changed files with 33 additions and 20 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.1.3

- Remove test file from bundler
- Update badges

# 0.1.2

- Setup coverage
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/MultiProvider/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> src/MultiProvider</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/MultiProvider/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/MultiPro
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/Provider/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> src/Provider</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/Provider/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/Provider
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/ProviderContext/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> src/ProviderContext</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/ProviderContext/index.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/Provider
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/ProviderScope/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> src/ProviderScope</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/ProviderScope/index.tsx.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/Provider
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/errors.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> errors.
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/hooks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1><a href="../../index.html">All files</a> src/hooks</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/hooks/index.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/hooks</a
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/hooks/useNamedProvider.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/hooks</a
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/hooks/useProvider.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">src/hooks</a
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1><a href="../index.html">All files</a> src</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/index.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> index.t
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/src/utils.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h1><a href="../index.html">All files</a> / <a href="index.html">src</a> utils.t
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-12-03T03:13:19.999Z
at 2023-12-03T06:58:05.323Z
</div>
<script src="../prettify.js"></script>
<script>
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-scoped-provider",
"version": "0.1.2",
"version": "0.1.3",
"description": "Library for DI in react without the need of self-creating context everytime.",
"type": "module",
"source": "src/index.ts",
Expand All @@ -23,8 +23,8 @@
"lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"",
"prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"",
"test": "jest --coverage",
"build": "microbundle",
"dev": "microbundle watch",
"build": "microbundle --tsconfig tsconfig.build.json",
"dev": "microbundle watch --tsconfig tsconfig.build.json",
"prepare": "yarn run build",
"prepublishOnly": "yarn test && yarn run prettier && yarn run lint"
},
Expand Down
8 changes: 8 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"exclude": ["dist", "node_modules", "test"],
"compilerOptions": {
"rootDir": "./src"
}
}

0 comments on commit 67511e2

Please sign in to comment.