Update build

This commit is contained in:
Erick Ruiz de Chavez 2022-04-29 16:43:34 -04:00
parent f0f71fa8a9
commit bb6940b834
No known key found for this signature in database
GPG key ID: 18853A33FA62DDC9
4 changed files with 1440 additions and 3 deletions

View file

@ -23,5 +23,6 @@ jobs:
server: ${{ secrets.HOST }} server: ${{ secrets.HOST }}
port: ${{ secrets.PORT }} port: ${{ secrets.PORT }}
ssh_private_key: ${{ secrets.KEY }} ssh_private_key: ${{ secrets.KEY }}
remote_path: "/html/sinsaludar.com" local_path: './dist/*'
remote_path: '/html/sinsaludar.com'
sftp_only: true sftp_only: true

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
node_modules node_modules
styles.css styles.css
dist

1433
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -3,8 +3,12 @@
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"scripts": { "scripts": {
"browserslist": "npx browserslist@latest --update-db -y",
"build": "npm run clean && npm run browserslist && npm run tailwind && npm run copy",
"clean": "rm -rf dist && mkdir dist",
"copy": "cp index.html dist/",
"start": "tailwindcss -i tailwind.css -o styles.css -m --watch", "start": "tailwindcss -i tailwind.css -o styles.css -m --watch",
"build": "tailwindcss -i tailwind.css -o styles.css -m" "tailwind": "tailwindcss -i tailwind.css -o dist/styles.css --minify"
}, },
"repository": { "repository": {
"type": "git", "type": "git",