Compare commits

..

3 Commits

Author SHA1 Message Date
a886d6575f ci: Add npm bulid
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-07-31 15:05:42 +02:00
8124b08b88 feat: Exclude build JS files from git 2024-07-31 14:49:29 +02:00
e80902e965 refactor: move js files to dedicated folder 2024-07-31 14:48:59 +02:00
5 changed files with 11 additions and 4 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
node_modules/
public/bundle.js*

View File

@ -3,7 +3,11 @@
steps:
build:
image: node:latest
commands:
- npm install
- npm run build
deploy:
image: appleboy/drone-scp
settings:
@ -14,6 +18,6 @@ steps:
from_secret: ssh_user
target:
from_secret: path
source: src/
source: public/
key:
from_secret: ssh_key

View File

@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"start": "webpack-dev-server --config webpack.config.js",
"ex-trans": "i18next -c i18next-parser.config.js"
"ex-trans": "i18next -c i18next-parser.config.js",
"build": "webpack --config webpack.config.js"
},
"repository": {
"type": "git",

View File

@ -4,7 +4,7 @@
<meta charset="UTF-8">
<title>Käfigrechner</title>
<link rel="stylesheet" href="assets/css/style.css">
<script src="assets/calculator.js"></script>
<script src="assets/js/calculator.js"></script>
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon/favicon-32x32.png">