-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
20 changed files
with
341 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
node_modules | ||
*.zip | ||
release/* | ||
build/* | ||
styles/* | ||
build/*.js | ||
styles/*.css | ||
css/* | ||
package-lock.json |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
const fs = require('fs-extra'); | ||
const path = require('path'); | ||
const { exec } = require('child_process'); | ||
|
||
// Define os diretórios de origem e destino | ||
const destDir = path.join(__dirname, '../'); | ||
|
||
// Lista de diretórios e arquivos a serem copiados | ||
const itemsToCopy = [ | ||
'assets', | ||
'build', | ||
'lang', | ||
'fonts', | ||
'README.md', | ||
'styles', | ||
'templates', | ||
'system.json', | ||
'template.json' | ||
]; | ||
|
||
// Função para executar comandos no terminal | ||
function runCommand(command) { | ||
return new Promise((resolve, reject) => { | ||
exec(command, (error, stdout, stderr) => { | ||
if (error) { | ||
reject(`Erro ao executar ${command}: ${stderr}`); | ||
} else { | ||
console.log(`Executado ${command}: ${stdout}`); | ||
resolve(); | ||
} | ||
}); | ||
}); | ||
} | ||
|
||
// Função principal para criar diretório, rodar comandos e copiar arquivos | ||
async function createRelease() { | ||
try { | ||
// Executa os comandos necessários | ||
await runCommand('npm run build-css'); | ||
await runCommand('npm run build-js'); | ||
await runCommand('npm run minify-js'); | ||
await runCommand('npm run minify-css'); | ||
|
||
// Verifica se o diretório de destino existe, se não, cria | ||
await fs.ensureDir(destDir); | ||
|
||
// Copia os arquivos e diretórios necessários para o diretório de destino | ||
for (const item of itemsToCopy) { | ||
const src = path.join(__dirname, item); | ||
const dest = path.join(destDir, item); | ||
// Verifique se o item de origem existe | ||
const exists = await fs.pathExists(src); | ||
if (exists) { | ||
await fs.copy(src, dest); | ||
console.log(`Copiado ${item} para ${dest}`); | ||
} else { | ||
console.log(`Item de origem ${src} não existe. Pulando...`); | ||
} | ||
} | ||
|
||
console.log('Release criada com sucesso!'); | ||
} catch (err) { | ||
console.error('Erro ao criar release:', err); | ||
} | ||
} | ||
|
||
// Executa a função principal | ||
createRelease(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
.window-header { | ||
flex: 0 0 30px; | ||
overflow: hidden; | ||
padding: 0 8px; | ||
line-height: 30px; | ||
border: none; | ||
background-image: url(/systems/household/assets/sheet/header_bg.webp); | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
color: #575757; | ||
} | ||
|
||
.window-title { | ||
color: #000; | ||
} | ||
|
||
.window-content { | ||
background: url(/systems/household/assets/sheet/sheet_bg.webp) repeat; | ||
|
||
} | ||
|
||
h2 { | ||
font-family: 'LHF_Encore', Beau Rivage, cursive; | ||
} | ||
|
||
input[type=text] { | ||
width: 100%; | ||
padding: 12px 20px; | ||
margin: 8px 0; | ||
box-sizing: border-box; | ||
border: 3px solid #ccc; | ||
-webkit-transition: 0.5s; | ||
transition: 0.5s; | ||
outline: none; | ||
} | ||
|
||
input[type=text]:focus { | ||
border: 3px solid #555; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.