rodkndtest 1.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/webpack.yml +50 -0
- package/README.md +2 -2
- package/css/main.css +695 -695
- package/css/reset.css +47 -47
- package/index.html +17 -17
- package/index.js +18 -14
- package/package.json +22 -26
- package/webpack.config.js +37 -21
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: NodeJS with Webpack
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ "master" ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
node-version: [22.x]
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: ${{ matrix.node-version }}
|
|
24
|
+
|
|
25
|
+
- name: Build
|
|
26
|
+
run: |
|
|
27
|
+
npm install
|
|
28
|
+
npx webpack
|
|
29
|
+
|
|
30
|
+
- name: Upload static files as artifact
|
|
31
|
+
id: deployment
|
|
32
|
+
uses: actions/upload-pages-artifact@v3
|
|
33
|
+
with:
|
|
34
|
+
path: dist/
|
|
35
|
+
|
|
36
|
+
deploy:
|
|
37
|
+
environment:
|
|
38
|
+
name: github-pages-artifact@v3
|
|
39
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
needs: build
|
|
42
|
+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
|
|
43
|
+
permissions:
|
|
44
|
+
pages: write # to deploy to Pages
|
|
45
|
+
id-token: write # to verify the deployment originates from an appropriate source
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- name: Deploy to Github pages
|
|
49
|
+
id: deployment
|
|
50
|
+
uses: actions/deploy-pages@v4
|
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# ndtest
|
|
2
|
-
Test of node.js and npm
|
|
1
|
+
# ndtest
|
|
2
|
+
Test of node.js and npm
|