{"id":18372440,"url":"https://github.com/biko2/gulp-tasks-front","last_synced_at":"2025-04-10T23:55:51.398Z","repository":{"id":87604142,"uuid":"169110140","full_name":"biko2/gulp-tasks-front","owner":"biko2","description":"Gulp tasks for Drupal Front theme","archived":false,"fork":false,"pushed_at":"2020-10-08T10:42:37.000Z","size":173,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-10T23:55:46.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biko2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-04T16:33:11.000Z","updated_at":"2020-10-08T10:42:39.000Z","dependencies_parsed_at":"2023-03-13T18:43:15.669Z","dependency_job_id":null,"html_url":"https://github.com/biko2/gulp-tasks-front","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biko2%2Fgulp-tasks-front","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biko2%2Fgulp-tasks-front/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biko2%2Fgulp-tasks-front/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biko2%2Fgulp-tasks-front/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biko2","download_url":"https://codeload.github.com/biko2/gulp-tasks-front/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248317699,"owners_count":21083528,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T00:05:45.327Z","updated_at":"2025-04-10T23:55:51.375Z","avatar_url":"https://github.com/biko2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GULP TASKS for Drupal __front__ theme\n![by Biko2](https://raw.githubusercontent.com/biko2/biko-repo-bagdes/master/png/biko-bagge-pill.png)\n![GitHub last commit](https://img.shields.io/github/last-commit/biko2/gulp-tasks-front.svg?style=plastic)\n![npm](https://img.shields.io/npm/v/gulp-tasks-front.svg)\n![node](https://img.shields.io/node/v/gulp.svg)\n![Maintenance](https://img.shields.io/maintenance/yes/2020.svg)\n\n\n\n## Install\n```\nnpm install gulp-tasks-front --save-dev\n```\n\n## Tasks\n- default: Executes *build* task\n- build: Compiles everything.\n- watch: Track changes on files and recompiles modified part.\n- serve: Launch development environment and watches files. Livereload active.\n- clean: Deletes destination folder.\n- compile:\n  - compile:js:\n  - compile:sass:\n  - compile:styleguide:\n- fonts: Copies fonts to destination folder\n- images: Optimizes images.\n- jekyll: Compiles Jekyll pages. Works but DEPRECATED in favor of TwigPages\n- twigPages: Compiles Twig based static pages.\n- svg: SVG Sprite sheet. Compiles svg files into sprite sheet.\n\n## Default paths\n```\n{\n      styles: {\n        source: 'src/assets/scss/',\n        destination: 'assets/css/'\n      },\n      scripts: {\n        source: 'src/assets/js/',\n        destination: 'assets/js',\n        \n      },\n      scriptsVendorFiles: [\n      ],\n      images: {\n        source: 'src/assets/images/',\n        destination: 'assets/images/'\n      },\n      fonts: {\n        source: 'src/assets/fonts/',\n        destination: 'assets/fonts/'\n      },\n      styleGuide: 'styleguide',\n      jekyll: 'src/pages/',\n      twigPages: {\n        src: 'src/twigPages/' ,\n        data: 'src/twigPages/data/',\n        destination: 'assets/pages/'\n      },\n      svg : {\n        source: 'src/assets/svg',\n        destination: 'assets/svg'\n      }\n    };\n\n```\n\n## Default options\n```\nvar options = {\n        // ----- Browsersync ----- //\n        browserSync: {\n          // Put your local site URL here to prevent Browsersync\n          // from prompting you to add additional scripts to your page.\n          // open: 'external',\n          //xip: true,\n          //logConnections: true\n      \n          server: {baseDir: ['assets']},\n          startPath: \"/pages\",\n          port: 3005,\n          online: false,\n      \n          open: true,\n          //ghostMode: false,\n          logConnections: true,\n        },\n      \n        // ----- JEKYLL ----- //\n      \n        jekyll: {\n          files: path.join(paths.jekyll, '**/*'),\n        },\n      \n        // ----- CSS ----- //\n      \n        css: {\n          files: path.join(paths.styles.destination, '**/*.css'),\n          file: path.join(paths.styles.destination, '/styles.css'),\n          destination: path.join(paths.styles.destination)\n        },\n      \n        // ----- Sass ----- //\n      \n        sass: {\n          files: path.join(paths.styles.source, '**/*.scss'),\n          file: path.join(paths.styles.source, 'styles.scss'),\n          destination: path.join(paths.styles.destination),\n          AUTOPREFIXER_BROWSERS: [\n            'ie \u003e= 10',\n            'ie_mob \u003e= 10',\n            'ff \u003e= 30',\n            'chrome \u003e= 34',\n            'safari \u003e= 9',\n            'opera \u003e= 23',\n            'ios \u003e= 8',\n            'android \u003e= 4.4',\n            'bb \u003e= 10'\n          ]\n        },\n      \n        // ----- JS ----- //\n        js: {\n          files: path.join(paths.scripts.source, '**/*.js'),\n          compiledFiles: path.join(paths.scripts.destination, '**/*.js'),\n          vendorFiles: paths.scriptsVendorFiles,\n          destination: path.join(paths.scripts.destination)\n        },\n      \n        // ----- eslint ----- //\n        jsLinting: {\n          files: {\n            theme: [\n              paths.scripts.source + '**/*.js',\n              '!' + paths.scripts.source + '**/*.min.js'\n            ],\n            gulp: [\n              'gulpfile.js',\n              'gulp-tasks/**/*'\n            ]\n          }\n      \n        },\n        // ----- Fonts ----- //\n        fonts: {\n          files: paths.fonts.source + '**/*.{ttf,woff,otf,eot,svg,woff2}',\n          destination: paths.fonts.destination\n        },\n        // ----- Images ----- //\n        images: {\n          files: paths.images.source + '**/*.{png,gif,jpg,svg,xml,webmanifest}',\n          destination: paths.images.destination\n        },\n        // ----- TWIG pages ---- //\n        twigPages: {\n          src: path.join(paths.twigPages.src, '/*.twig'),\n          allSrc: path.join(paths.twigPages.src, '/**/*'), //Needed for watch task\n          data:path.join(paths.twigPages.data),\n          destination: path.join(paths.twigPages.destination)\n        },\n      \n        // ----- KSS Node ----- //\n        styleGuide: {\n          source: [\n            paths.styles.source\n          ],\n          builder: 'builder/twig',\n          destination: 'styleguide/',\n          css: [\n            path.relative(paths.styleGuide, paths.styles.destination + 'styles.css'),\n            path.relative(paths.styleGuide, paths.styles.destination + 'style-guide-only/kss-only.css')\n          ],\n          js: [],\n          homepage: 'style-guide-only/homepage.md',\n          title: 'Living Style Guide'\n        },\n      \n        // ------ pa11y ----- //\n        pa11y: {\n          urls: [ // An array of urls to test.\n            // For testing in a travis environment:\n            // 'http://127.0.0.1:8888',\n            // 'http://127.0.0.1:8888/themes/custom/yourtheme/styleguide'\n            'http://localhost:8000',\n            'http://localhost:8000/node/1'\n          ],\n          failOnError: true, // fail the build on error\n          showFailedOnly: true, // show errors only and override reporter\n          reporter: 'console',\n          includeWarnings: true, // including warnings by default. - set it to false to disable\n          includeNotices: true, // including notices by default. - set it to false to disable\n          log: {\n            debug: console.log.bind(console),\n            error: console.error.bind(console),\n            info: console.info.bind(console)\n          },\n          standard: 'WCAG2AA', // choose from Section508, WCAG2A, WCAG2AA, and WCAG2AAA\n          page: {\n            settings: {\n              loadImages: false,\n              userName: '', // .htacess username\n              password: '' // .htaccess password\n            }\n          },\n          threshold: { // Set to -1 for no threshold.\n            errors: 1,\n            warnings: 10,\n            notices: -1\n          }\n        },\n        svg: {\n          files: path.join(paths.svg.source, '**/*.scss'),\n          destination: path.join(paths.svg.destination),\n          mode: {\n            symbol: { // symbol mode to build the SVG\n              dest: path.join(paths.svg.destination), // destination foldeer\n              sprite: 'sprite.svg', //sprite name\n              example: true // Build sample page\n            }\n          },\n          svg: {\n            xmlDeclaration: false, // strip out the XML attribute\n            doctypeDeclaration: false // don't include the !DOCTYPE declaration\n          }\n        }\n    }\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiko2%2Fgulp-tasks-front","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiko2%2Fgulp-tasks-front","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiko2%2Fgulp-tasks-front/lists"}