Fix deps pt.2. Jenkinsfile

master
Araozu 2023-10-28 07:13:07 -05:00
parent ff28c0eb71
commit e9fdba58b3
12 changed files with 1748 additions and 6426 deletions

3
.browserslistrc Normal file
View File

@ -0,0 +1,3 @@
> 1%
last 2 versions
not dead

11
.gitignore vendored
View File

@ -1,7 +1,7 @@
.DS_Store
node_modules
/dist
/esquemaAnimes
# local env files
.env.local
@ -11,6 +11,7 @@ node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# Editor directories and files
.idea
@ -19,10 +20,4 @@ yarn-error.log*
*.ntvs*
*.njsproj
*.sln
*.sw*
# Archivos de desarrollo del servidor
srv/*/**.js
srv/*/**.js.map
deployarBackend.js
deployFrontEnd.js
*.sw?

1
.npmrc Normal file
View File

@ -0,0 +1 @@
shamefully-hoist=true

24
Jenkinsfile.groovy Normal file
View File

@ -0,0 +1,24 @@
pipeline {
agent any
environment {
PATH = "/var/lib/jenkins/.nvm/versions/node/v20.9.0/bin:/var/lib/jenkins/bin:${env.PATH}"
}
stages {
stage('Install') {
steps {
sh 'pnpm i'
}
}
stage('Build') {
steps {
sh 'pnpm build'
}
}
stage('Deploy') {
steps {
sh 'rm -rf /var/www/pseudosubs-v2/*'
sh 'cp -r ./dist/* /var/www/pseudosubs-v2/'
}
}
}
}

View File

@ -1,26 +1,19 @@
# pseudosubs5
# pseudosubs-v2
## Project setup
```
yarn install
pnpm install
```
### Compiles and hot-reloads for development
```
yarn run serve
pnpm run serve
```
### Compiles and minifies for production
```
yarn run build
pnpm run build
```
### Run your tests
```
yarn run test
```
### Lints and fixes files
```
yarn run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).

View File

@ -1,5 +1,5 @@
module.exports = {
presets: [
'@vue/app'
'@vue/cli-plugin-babel/preset'
]
}

19
jsconfig.json Normal file
View File

@ -0,0 +1,19 @@
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": [
"src/*"
]
},
"lib": [
"esnext",
"dom",
"dom.iterable",
"scripthost"
]
}
}

View File

@ -1,60 +1,34 @@
{
"name": "pseudosubs5",
"name": "pseudosubs-v2",
"version": "0.1.0",
"private": true,
"scripts": {
"start": "node app.js",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"express": "vue-cli-service express:watch",
"express:run": "vue-cli-service express:run"
"build": "vue-cli-service build"
},
"dependencies": {
"@vue/babel-preset-app": "5.0.8",
"babel-loader": "^8.3.0",
"cache-loader": "^4.1.0",
"compression": "^1.7.4",
"connect-history-api-fallback": "^1.6.0",
"css-loader": "^3.6.0",
"file-loader": "^6.2.0",
"postcss-loader": "^3.0.0",
"@webdiscus/pug-loader": "^2.10.5",
"coffee-loader": "^4.0.0",
"coffeescript": "^2.7.0",
"core-js": "^3.8.3",
"pug-plain-loader": "^1.1.0",
"pug-plugin": "^4.9.9",
"register-service-worker": "^1.7.2",
"sass": "^1.69.5",
"thread-loader": "^2.1.3",
"url-loader": "^4.1.1",
"vue": "^2.7.15",
"vue": "^2.6.14",
"vue-analytics": "^5.22.1",
"vue-disqus": "^3.0.5",
"vue-google-signin-button": "^1.0.4",
"vue-loader": "^15.11.1",
"vue-router": "^3.6.5",
"vue-style-loader": "^4.1.3",
"vue-router": "^3.5.1",
"vuex": "^3.6.2",
"web-push": "^3.6.6",
"yaml": "^1.10.2"
"yaml": "^2.3.3"
},
"devDependencies": {
"@vue/cli-plugin-babel": "5.0.8",
"@vue/cli-plugin-pwa": "^3.12.1",
"@vue/cli-service": "^3.12.1",
"coffee-loader": "^0.9.0",
"coffeescript": "^2.7.0",
"node-sass": "9.0.0",
"pug": "^2.0.4",
"pug-plain-loader": "^1.1.0",
"sass-loader": "^7.3.1",
"typescript": "^3.9.10",
"vue-cli-plugin-express": "^1.0.2",
"vue-template-compiler": "^2.7.15"
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"defaults",
"not IE 11",
"maintained node versions"
]
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-plugin-vuex": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"sass": "^1.32.7",
"sass-loader": "^12.0.0",
"vue-template-compiler": "^2.6.14"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,19 @@
[
{
"anime_id": 33,
"titulo": "Kaguya-sama wa Kokurasetai: First Kiss wa Owaranai",
"link": "/Anime/Kaguya-sama-4",
"imgurl": "https://cdn.myanimelist.net/images/anime/1670/130060l.jpg",
"descripcion": "Cuarta temporada de Kaguya-sama wa Kokurasetai.",
"estudio": "A1-Pictures",
"eps": 4,
"alaire": "17 de Diciembre de 2022",
"temporada": "Primavera",
"anio": "2022",
"fuente": "Manga",
"generos": "Comedia, Drama, Psicologico, Romance, Escolar, Seinen",
"color": "#9e0034"
},
{
"anime_id": 32,
"titulo": "Kaguya-sama wa Kokurasetai? S2",

View File

@ -83,12 +83,12 @@
@obtenerAntAnime()
@cuentaAtrasCambio = setTimeout (() ->
_.establecerIntervalo()
), 5000
), 7500
establecerIntervalo: ->
_ = this
@intervalo = setInterval (() ->
_.anime = _.obtenerSigAnime()
), 5000
), 7500
beforeDestroy: ->
clearInterval @intervalo
@ -128,10 +128,10 @@
z-index: 3
.fondo_texto--claro
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8) 40%, $fondo2--claro 70%)
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8) 60%, $fondo2--claro 90%)
.fondo_texto--oscuro
background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8) 40%, $fondo2--oscuro 70%)
background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.8) 60%, $fondo2--oscuro 100%)
.animeCont
max-height: 500px

View File

@ -1,31 +1,19 @@
module.exports = {
const { defineConfig } = require('@vue/cli-service')
const PugPlugin = require('pug-plugin');
module.exports = defineConfig({
transpileDependencies: true,
configureWebpack: {
module: {
rules: [
{test: /\.coffee$/, loader: "coffee-loader"}
{
test: /\.coffee$/,
loader: "coffee-loader"
}
]
}
},
pluginOptions: {
express: {
shouldServeApp: true,
serverDir: './srv'
}
},
baseUrl: undefined,
outputDir: undefined,
assetsDir: undefined,
runtimeCompiler: undefined,
productionSourceMap: false,
parallel: undefined,
css: undefined,
pwa: {
workboxPluginMode: "InjectManifest",
workboxOptions: {
swSrc: __dirname + "/public/service-worker.js"
}
}
};
})