Feature/#35 build tools #36

Merged
Serraniel merged 41 commits from feature/#35-build-tools into develop 2020-09-06 21:20:03 +02:00
Showing only changes of commit 104bb4eae7 - Show all commits

View file

@ -15,6 +15,7 @@ Base consts
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// Project sources // Project sources
const src = { const src = {
root: 'src', root: 'src',
manifests: 'src/manifests',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: 'src/stylesheets', styles: 'src/stylesheets',
scripts: 'src/javascript', scripts: 'src/javascript',
images: 'src/images', images: 'src/images',
@ -23,6 +24,7 @@ const src = {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// Build path // Build path
const tmp = { const tmp = {
root: '.tmp', root: '.tmp',
manifests: '.tmp/manifests',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: '.tmp/stylesheets', styles: '.tmp/stylesheets',
scripts: '.tmp/javascript', scripts: '.tmp/javascript',
images: '.tmp/images', images: '.tmp/images',
@ -33,6 +35,7 @@ const tmp = {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
// Dist path // Dist path
const dist = { const dist = {
root: 'dist', root: 'dist',
manifests: 'dist/manifests',
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
styles: 'dist/stylesheets', styles: 'dist/stylesheets',
scripts: 'dist/javascript', scripts: 'dist/javascript',
images: 'dist/images', images: 'dist/images',
@ -110,10 +113,21 @@ gulp.task('images', () => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
$.imagemin.optipng(), $.imagemin.optipng(),
$.imagemin.svgo({ plugins: [{ cleanupIDs: false }] }) $.imagemin.svgo({ plugins: [{ cleanupIDs: false }] })
])) ]))
.pipe($.size({ title: 'images' })) .pipe($.size({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
showFiles: true,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(tmp.images)) .pipe(gulp.dest(tmp.images))
}) })
gulp.task('manifests', () => {
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
return gulp.src(`${src.manifests}/**/*.json`)
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.plumber())
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe($.size({
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
showFiles: true,
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
}))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
.pipe(gulp.dest(tmp.manifests))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
})
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================ /* ============================================================================
Clean Clean
============================================================================ */ ============================================================================ */
@ -128,7 +142,7 @@ gulp.task('clean', gulp.series('clean:build', 'clean:dist'))
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
BUILD CLEAN ALL BUILD CLEAN ALL
============================================================================ */ ============================================================================ */
gulp.task('build', gulp.series('clean:build', 'images', 'scripts', 'styles')); gulp.task('build', gulp.series('clean:build', 'manifests', 'images', 'scripts', 'styles'));
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
/* ============================================================================ /* ============================================================================
DIST CLEAN ALL DIST CLEAN ALL

Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```
Serraniel commented 2020-09-04 16:08:00 +02:00 (Migrated from github.com)
Review
        debug: isDev
```suggestion debug: isDev ```