Created
February 25, 2018 09:10
-
-
Save j-greig/922b4bd35c09c9f5b094f9e0cb184937 to your computer and use it in GitHub Desktop.
Gulp setup for Craft based on a simplified version of https://nystudio107.com/blog/a-gulp-workflow-for-frontend-development-automation
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
{ | |
"name": "website", | |
"version": "0.1", | |
"description": "A Craft CMS website", | |
"main": "gulpfile.js", | |
"author": "James Greig", | |
"copyright": "Graphical House", | |
"license": "UNLICENSED", | |
"private": true, | |
"paths": { | |
"src": { | |
"css": "./src/css/", | |
"js": "./src/js/", | |
"img": "./src/img/" | |
}, | |
"dist": { | |
"base": "./public/", | |
"css": "./public/css/", | |
"js": "./public/js/" | |
}, | |
"templates": "./craft/templates/" | |
}, | |
"urls": { | |
"live": "https://website.graphicalhouse.co.uk/", | |
"local": "https://website.dev/", | |
"critical": "https://website.graphicalhouse.co.uk/" | |
}, | |
"vars": { | |
"siteCssName": "style.min.css", | |
"cssName": "style.css" | |
}, | |
"dependencies": { | |
"fg-loadcss": "^1.3.1", | |
"tachyons-extendable": "^0.1.1" | |
}, | |
"devDependencies": { | |
"chalk": "^1.1.3", | |
"critical": "^1.1.0", | |
"fancy-log": "^1.2.0", | |
"gulp": "^3.9.1", | |
"gulp-clean-css": "^3.9", | |
"gulp-concat": "^2.6", | |
"gulp-if": "^2.0.2", | |
"gulp-livereload": "^3.8.1", | |
"gulp-load-plugins": "^1.5.0", | |
"gulp-newer": "^1.4.0", | |
"gulp-plumber": "^1.1.0", | |
"gulp-rename": "^1.2.2", | |
"gulp-size": "^2.1.0", | |
"gulp-uglify": "^1.5.4" | |
}, | |
"scripts": { | |
"start": "gulp", | |
"build": "gulp build" | |
}, | |
"globs": { | |
"critical": [ | |
{ | |
"url": "", | |
"template": "_layout" | |
}, | |
{ | |
"url": "programme", | |
"template": "programme/index" | |
} | |
], | |
"inlineJs": [ | |
"./node_modules/fg-loadcss/src/loadCSS.js", | |
"./node_modules/fg-loadcss/src/cssrelpreload.js", | |
"./node_modules/fontfaceobserver/fontfaceobserver.js", | |
"./node_modules/loadjs/dist/loadjs.min.js", | |
"./node_modules/tiny-cookie/tiny-cookie.min.js", | |
"./src/js/register-service-worker.js", | |
"./src/js/asyncload-blog-fonts.js", | |
"./src/js/asyncload-site-fonts.js" | |
] | |
}, | |
"repository": { | |
"type": "git", | |
"url": "git+ssh://[email protected]/GraphicalHouse/website.git" | |
}, | |
"bugs": { | |
"email": "[email protected]" | |
}, | |
"homepage": "https://github.com/GraphicalHouse/website#readme" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment