Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 0 additions & 32 deletions .github/workflows/lint.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Publish

on: [push]

jobs:
lint:
name: Lint project
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x

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

- name: Revert changes into the package-lock.json file
run: git checkout -- package-lock.json

- name: Run lint action
uses: wearerequired/lint-action@v2
with:
auto_fix: true
eslint: true
eslint_extensions: js

test:
name: Testing TPG
runs-on: ubuntu-latest
needs: lint

steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x

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

- name: Install Node.js 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 }}
30 changes: 0 additions & 30 deletions .github/workflows/test.yml

This file was deleted.

6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ This project has the goal to create a basic setup for a `TypeScript` project. It
- `README.md`
- `tsconfig.base.json`
- `tsconfig.json`
- `webpack.config.js`

The following questions will be asked to the user:

Expand Down Expand Up @@ -66,7 +65,6 @@ Please check the [`changelog.md`](https://github.com/AnthonyLzq/typescript-proje
📜README.md
📜tsconfig.base.json
📜tsconfig.json
📜webpack.config.js
📜yarn.lock (or package-lock.json or pnpm-lock.yaml)
```

Expand Down Expand Up @@ -125,11 +123,7 @@ Here is the list of the packages that are being installed, as `devDependencies`:
- [`ts-loader`](https://www.npmjs.com/package/ts-loader)
- [`ts-node`](https://www.npmjs.com/package/ts-node)
- [`tsconfig-paths`](https://www.npmjs.com/package/tsconfig-paths)
- [`tsconfig-paths-webpack-plugin`](https://www.npmjs.com/package/tsconfig-paths-webpack-plugin)
- [`typescript`](https://www.npmjs.com/package/typescript)
- [`webpack`](https://www.npmjs.com/package/webpack)
- [`webpack-cli`](https://www.npmjs.com/package/webpack-cli)
- [`webpack-node-externals`](https://www.npmjs.com/package/webpack-node-externals)

Feel free to contribute to this project. Every contribution will be appreciated.

Expand Down
1 change: 0 additions & 1 deletion example/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
{
"devDependencies": [
"**/*.test.js",
"webpack.config.js",
"jest.config.ts"
],
"optionalDependencies": [
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 @@ -3,7 +3,7 @@ name: Lint - example
on: [push]

jobs:
run-linters:
lint:
name: Run linters
runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions example/.github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
test:
name: Testing example
runs-on: ubuntu-latest
needs: lint

steps:
- name: Check out Git repository
Expand Down
14 changes: 4 additions & 10 deletions example/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
FROM node:18-alpine

RUN corepack enable

WORKDIR /app

COPY . ./

RUN pnpm i --prod

RUN pnpm i webpack webpack-node-externals tsconfig-paths-webpack-plugin -D

RUN pnpm build

RUN pnpm remove webpack webpack-node-externals tsconfig-paths-webpack-plugin

COPY dist ./dist
RUN pnpm i

CMD [ "yarn", "start" ]
CMD [ "pnpm", "start" ]
119 changes: 98 additions & 21 deletions example/LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,98 @@
MIT License

Copyright (c) undefined 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.
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>
Loading