umbau auf gulp core

This commit is contained in:
2025-06-06 10:17:30 +02:00
parent 00f498f440
commit 3b111567a8
6 changed files with 127 additions and 12 deletions

1
.env Normal file
View File

@@ -0,0 +1 @@
USE_BOOTSTRAP=true

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "core"]
path = core
url = git@github.com:davidt-de/patrick-gulp-core.git

1
core Submodule

Submodule core added at 1a2c89b65d

6
gulpfile.js Executable file
View File

@@ -0,0 +1,6 @@
const core = require('./core');
exports.default = core.dev; // Oder core.build, je nachdem was du starten willst
exports.build = core.build;
exports.dev = core.dev;
exports.deploy = core.deploy;

21
package.json Normal file → Executable file
View File

@@ -1,15 +1,12 @@
{
"name": "codekit-bootstrap-project",
"name": "potsdamer-reitverein.de",
"version": "1.0.0",
"description": "CodeKit created this starter package.json file. You should customize it appropriately. (If you intend to publish this project on npm, add an entry in the 'repository' field and remove the 'private' attribute, below.)",
"scripts": {},
"description": "",
"scripts": {
"build": "npx gulp build",
"dev": "npx gulp dev",
"deploy": "npx gulp deploy"
},
"author": "",
"license": "UNLICENSED",
"repository": {},
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"@popperjs/core": "^2.11.7",
"bootstrap": "^5.2.3"
}
}
"license": "UNLICENSED"
}

107
project.config.js Normal file
View File

@@ -0,0 +1,107 @@
require('dotenv').config();
const useBootstrap = process.env.USE_BOOTSTRAP === 'true';
const stylesPath = useBootstrap
? {
source: 'source/styles/**/*.scss',
entry: 'source/styles/main.scss',
dest: 'build/styles'
}
: {
source: 'source/assets/sass/**/*.scss',
entry: 'source/assets/sass/main.scss',
dest: 'build/assets/css'
};
const scriptsPath = useBootstrap
? {
source: 'source/js/**/*.js',
entry: 'source/js/main.js',
dest: 'build/js'
}
: {
source: 'source/assets/js/**/*.js',
entry: 'source/assets/js/main.js',
dest: 'build/assets/js'
};
module.exports = {
useBootstrap,
paths: {
source: 'source',
build: 'build',
styles: stylesPath,
scripts: scriptsPath,
images: {
source: [
'source/images/**/*.{jpg,jpeg,png}',
'source/assets/css/images/**/*.{jpg,jpeg,png}'
],
other: [
'source/images/**/*.{gif,svg,webp}',
'source/assets/css/images/**/*.{gif,svg,webp}'
],
dest: 'build/images'
},
markup: {
source: ['source/**/*.{kit,html,php}'],
entry: ['source/**/*.{kit,html,php}'],
exclude: ['source/includes/**'],
dest: 'build'
},
static: {
source: [
'source/assets/**/*',
'!source/assets/sass/**/*',
'!source/assets/scss/**/*',
'!source/assets/css/**/*.css',
'!source/assets/css/images/**/*'
],
dest: 'build/assets'
},
vendor: {
fontawesome: useBootstrap
? null
: 'node_modules/@fortawesome/fontawesome-free/webfonts/*',
jquery: 'node_modules/jquery/dist/jquery.min.js',
scrollex: null,
scrolly: null,
destFonts: 'build/assets/webfonts',
destJs: 'build/assets/js'
},
favicons: {
source: ['source/*.{png,ico,svg,webmanifest}'],
dest: 'build'
}
},
extensionMapping: {
'kontakt': '.php',
'index': '.php',
'400': '.shtml',
'401': '.shtml',
'403': '.shtml',
'404': '.shtml'
},
serve: {
proxy: 'http://hjktext.de.localhost',
port: 3000,
open: true
},
deploy: {
host: 'hjktext@152.53.119.146',
path: '/home/hjktext/htdocs/hjktext.de',
port: 2222,
excludes: ['.DS_Store', '.git']
}
};