Fix deps pt.2. Jenkinsfile
This commit is contained in:
parent
ff28c0eb71
commit
e9fdba58b3
3
.browserslistrc
Normal file
3
.browserslistrc
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
> 1%
|
||||||
|
last 2 versions
|
||||||
|
not dead
|
11
.gitignore
vendored
11
.gitignore
vendored
@ -1,7 +1,7 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
/dist
|
/dist
|
||||||
/esquemaAnimes
|
|
||||||
|
|
||||||
# local env files
|
# local env files
|
||||||
.env.local
|
.env.local
|
||||||
@ -11,6 +11,7 @@ node_modules
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
# Editor directories and files
|
# Editor directories and files
|
||||||
.idea
|
.idea
|
||||||
@ -19,10 +20,4 @@ yarn-error.log*
|
|||||||
*.ntvs*
|
*.ntvs*
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw*
|
*.sw?
|
||||||
|
|
||||||
# Archivos de desarrollo del servidor
|
|
||||||
srv/*/**.js
|
|
||||||
srv/*/**.js.map
|
|
||||||
deployarBackend.js
|
|
||||||
deployFrontEnd.js
|
|
||||||
|
24
Jenkinsfile.groovy
Normal file
24
Jenkinsfile.groovy
Normal 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/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
README.md
19
README.md
@ -1,26 +1,19 @@
|
|||||||
# pseudosubs5
|
# pseudosubs-v2
|
||||||
|
|
||||||
## Project setup
|
## Project setup
|
||||||
```
|
```
|
||||||
yarn install
|
pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and hot-reloads for development
|
### Compiles and hot-reloads for development
|
||||||
```
|
```
|
||||||
yarn run serve
|
pnpm run serve
|
||||||
```
|
```
|
||||||
|
|
||||||
### Compiles and minifies for production
|
### Compiles and minifies for production
|
||||||
```
|
```
|
||||||
yarn run build
|
pnpm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run your tests
|
### Customize configuration
|
||||||
```
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
||||||
yarn run test
|
|
||||||
```
|
|
||||||
|
|
||||||
### Lints and fixes files
|
|
||||||
```
|
|
||||||
yarn run lint
|
|
||||||
```
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
presets: [
|
presets: [
|
||||||
'@vue/app'
|
'@vue/cli-plugin-babel/preset'
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
19
jsconfig.json
Normal file
19
jsconfig.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "es5",
|
||||||
|
"module": "esnext",
|
||||||
|
"baseUrl": "./",
|
||||||
|
"moduleResolution": "node",
|
||||||
|
"paths": {
|
||||||
|
"@/*": [
|
||||||
|
"src/*"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"scripthost"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
64
package.json
64
package.json
@ -1,60 +1,34 @@
|
|||||||
{
|
{
|
||||||
"name": "pseudosubs5",
|
"name": "pseudosubs-v2",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build"
|
||||||
"express": "vue-cli-service express:watch",
|
|
||||||
"express:run": "vue-cli-service express:run"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/babel-preset-app": "5.0.8",
|
"@webdiscus/pug-loader": "^2.10.5",
|
||||||
"babel-loader": "^8.3.0",
|
"coffee-loader": "^4.0.0",
|
||||||
"cache-loader": "^4.1.0",
|
"coffeescript": "^2.7.0",
|
||||||
"compression": "^1.7.4",
|
"core-js": "^3.8.3",
|
||||||
"connect-history-api-fallback": "^1.6.0",
|
"pug-plain-loader": "^1.1.0",
|
||||||
"css-loader": "^3.6.0",
|
"pug-plugin": "^4.9.9",
|
||||||
"file-loader": "^6.2.0",
|
|
||||||
"postcss-loader": "^3.0.0",
|
|
||||||
"register-service-worker": "^1.7.2",
|
"register-service-worker": "^1.7.2",
|
||||||
"sass": "^1.69.5",
|
"vue": "^2.6.14",
|
||||||
"thread-loader": "^2.1.3",
|
|
||||||
"url-loader": "^4.1.1",
|
|
||||||
"vue": "^2.7.15",
|
|
||||||
"vue-analytics": "^5.22.1",
|
"vue-analytics": "^5.22.1",
|
||||||
"vue-disqus": "^3.0.5",
|
"vue-disqus": "^3.0.5",
|
||||||
"vue-google-signin-button": "^1.0.4",
|
"vue-google-signin-button": "^1.0.4",
|
||||||
"vue-loader": "^15.11.1",
|
"vue-router": "^3.5.1",
|
||||||
"vue-router": "^3.6.5",
|
|
||||||
"vue-style-loader": "^4.1.3",
|
|
||||||
"vuex": "^3.6.2",
|
"vuex": "^3.6.2",
|
||||||
"web-push": "^3.6.6",
|
"yaml": "^2.3.3"
|
||||||
"yaml": "^1.10.2"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "5.0.8",
|
"@vue/cli-plugin-babel": "~5.0.0",
|
||||||
"@vue/cli-plugin-pwa": "^3.12.1",
|
"@vue/cli-plugin-router": "~5.0.0",
|
||||||
"@vue/cli-service": "^3.12.1",
|
"@vue/cli-plugin-vuex": "~5.0.0",
|
||||||
"coffee-loader": "^0.9.0",
|
"@vue/cli-service": "~5.0.0",
|
||||||
"coffeescript": "^2.7.0",
|
"sass": "^1.32.7",
|
||||||
"node-sass": "9.0.0",
|
"sass-loader": "^12.0.0",
|
||||||
"pug": "^2.0.4",
|
"vue-template-compiler": "^2.6.14"
|
||||||
"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"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
7970
pnpm-lock.yaml
7970
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -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,
|
"anime_id": 32,
|
||||||
"titulo": "Kaguya-sama wa Kokurasetai? S2",
|
"titulo": "Kaguya-sama wa Kokurasetai? S2",
|
||||||
|
@ -83,12 +83,12 @@
|
|||||||
@obtenerAntAnime()
|
@obtenerAntAnime()
|
||||||
@cuentaAtrasCambio = setTimeout (() ->
|
@cuentaAtrasCambio = setTimeout (() ->
|
||||||
_.establecerIntervalo()
|
_.establecerIntervalo()
|
||||||
), 5000
|
), 7500
|
||||||
establecerIntervalo: ->
|
establecerIntervalo: ->
|
||||||
_ = this
|
_ = this
|
||||||
@intervalo = setInterval (() ->
|
@intervalo = setInterval (() ->
|
||||||
_.anime = _.obtenerSigAnime()
|
_.anime = _.obtenerSigAnime()
|
||||||
), 5000
|
), 7500
|
||||||
beforeDestroy: ->
|
beforeDestroy: ->
|
||||||
clearInterval @intervalo
|
clearInterval @intervalo
|
||||||
|
|
||||||
@ -128,10 +128,10 @@
|
|||||||
z-index: 3
|
z-index: 3
|
||||||
|
|
||||||
.fondo_texto--claro
|
.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
|
.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
|
.animeCont
|
||||||
max-height: 500px
|
max-height: 500px
|
||||||
|
@ -1,31 +1,19 @@
|
|||||||
module.exports = {
|
const { defineConfig } = require('@vue/cli-service')
|
||||||
|
const PugPlugin = require('pug-plugin');
|
||||||
|
|
||||||
|
|
||||||
|
module.exports = defineConfig({
|
||||||
|
transpileDependencies: true,
|
||||||
|
|
||||||
configureWebpack: {
|
configureWebpack: {
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user