Skip to content

Commit

Permalink
Merge pull request #39 from AnthonyLzq/feature/update-packages
Browse files Browse the repository at this point in the history
feature/update-packages
  • Loading branch information
AnthonyLzq authored Aug 11, 2024
2 parents d498269 + 84b1b85 commit 0ff9b5b
Show file tree
Hide file tree
Showing 14 changed files with 6,521 additions and 5,543 deletions.
34 changes: 5 additions & 29 deletions .github/workflows/publish.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish
name: Test

on: [push]

Expand All @@ -16,9 +16,9 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Install Node.js dependencies
- name: Install dependencies
run: npm ci

- name: Revert changes into the package-lock.json file
Expand All @@ -45,39 +45,15 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 6.x.x

- name: Install Node.js dependencies
- name: Install dependencies
run: npm ci

- name: Run test
run: npm run test:ci

publish:
name: Publish
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/master'

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'

- name: Install Dependencies
run: npm install

- name: Publish to npm
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ Here is the list of the packages that are being installed, as `devDependencies`:
- [`eslint-plugin-n`](https://www.npmjs.com/package/eslint-plugin-n)
- [`eslint-plugin-prettier`](https://www.npmjs.com/package/eslint-plugin-prettier)
- [`jest`](https://www.npmjs.com/package/jest)
- [`jest-unit`](https://www.npmjs.com/package/jest-unit)
- [`nodemon`](https://www.npmjs.com/package/nodemon)
- [`prettier`](https://www.npmjs.com/package/prettier)
- [`ts-jest`](https://www.npmjs.com/package/ts-jest)
Expand Down
2 changes: 1 addition & 1 deletion example/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Install Node.js dependencies
run: pnpm i --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion example/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 20.x

- name: Install Node.js dependencies
run: pnpm i --frozen-lockfile
Expand Down
119 changes: 21 additions & 98 deletions example/LICENSE
Original file line number Diff line number Diff line change
@@ -1,98 +1,21 @@
html lang="en">
<head itemscope itemtype="http://schema.org/WebSite">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Chivo:900">
<link rel="stylesheet" href="/assets/css/application.css?v=ab8bbd28139cd531f78c67f14009078875431ff2">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<!--[if lt IE 9]>
<script src="/assets/vendor/html5shiv/dist/html5shiv.js"></script>
<script src="/assets/vendor/selectivizr/selectivizr.js"></script>
<![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<!-- Begin Jekyll SEO tag v2.8.0 -->
<title>404 Not Found | Choose a License</title>
<meta name="generator" content="Jekyll v3.9.3" />
<meta property="og:title" content="404 Not Found" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Non-judgmental guidance on choosing a license for your open source project" />
<meta property="og:description" content="Non-judgmental guidance on choosing a license for your open source project" />
<link rel="canonical" href="https://choosealicense.com/404.html" />
<meta property="og:url" content="https://choosealicense.com/404.html" />
<meta property="og:site_name" content="Choose a License" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="404 Not Found" />
<meta name="twitter:site" content="@github" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebPage","description":"Non-judgmental guidance on choosing a license for your open source project","headline":"404 Not Found","url":"https://choosealicense.com/404.html"}</script>
<!-- End Jekyll SEO tag -->

</head>
<body class="page">
<div class="container">


<ol>
<li>

<a href="/">Home</a>

</li>
</ol>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"item": {
"@id": "https://choosealicense.com/",
"name": "Home"
}
},{
"@type": "ListItem",
"position": 2,
"item": {
"@id": "https://choosealicense.com/404.html",
"name": "404 Not Found"
}
}]
}
</script>




<h1>404 Not Found</h1>



<p>Sorry! We could not find the page you were looking for.</p>

<p>If you were trying to see a license, go to <a href="/licenses">licenses</a>.</p>


<footer class="site-footer clearfix">
<nav>
<a href="/about/">About</a>
<a href="/terms-of-service/">Terms of Service</a>
<a href="https://github.com/github/choosealicense.com/edit/gh-pages/404.md">Help improve this page</a>
</nav>
<p>
The content of this site is licensed under the <a href="https://creativecommons.org/licenses/by/3.0/">
Creative Commons Attribution 3.0 Unported License</a>.
</p>
<div class="with-love">
Curated with ❤️ by <a href="https://github.com">GitHub, Inc.</a> and <a href="https://github.com/github/choosealicense.com">You!</a>
</div>
</footer>

</div> <!-- /container -->


</body>
</html>
MIT License

Copyright (c) 2024 AnthonyLzq

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
41 changes: 20 additions & 21 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,29 @@
"author": "AnthonyLzq <[email protected]>",
"license": "MIT",
"devDependencies": {
"@jest/types": "^29.6.1",
"@types/jest": "^29.5.3",
"@types/node": "^20.4.2",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"dotenv": "^16.3.1",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"@jest/types": "^29.6.3",
"@types/jest": "^29.5.12",
"@types/node": "^22.2.0",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"dotenv": "^16.4.5",
"eslint": "^9.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.8.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-promise": "^6.1.1",
"jest": "^29.6.1",
"jest-unit": "^0.0.2",
"nodemon": "^3.0.1",
"prettier": "^3.0.0",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-promise": "^7.1.0",
"jest": "^29.7.0",
"nodemon": "^3.1.4",
"prettier": "^3.3.3",
"ts-jest": "^29.2.4",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.1.6"
"typescript": "^5.5.4"
},
"nodemonConfig": {
"watch": [
Expand Down
Loading

0 comments on commit 0ff9b5b

Please sign in to comment.