mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
Big refactoring of SCSS active state for sidebar links update gitignore for node_modules folder removing node_modules from index Sticky Liquid link in sidebar Cleaned up index page Adding fixed width to buttons Refactoring Converted sidebar to use Collections Refactor sidebar CSS
77 lines
1.5 KiB
JavaScript
77 lines
1.5 KiB
JavaScript
// Gruntfile
|
|
module.exports = function(grunt) {
|
|
require('load-grunt-tasks')(grunt);
|
|
|
|
// Project configuration.
|
|
grunt.initConfig({
|
|
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
watch: {
|
|
css: {
|
|
files: ['_sass/**/*.scss'],
|
|
tasks: ['sass', 'postcss', 'shell:jekyllBuild'],
|
|
options: {
|
|
atBegin: true
|
|
}
|
|
},
|
|
|
|
jekyll: {
|
|
files: ['index.html', '_includes/*.html', 'filters/*.*', '_layouts/*.*', '_posts/*.*'],
|
|
tasks: ['shell:jekyllBuild']
|
|
}
|
|
|
|
},
|
|
|
|
sass: {
|
|
dist: {
|
|
options: {
|
|
style: 'expanded',
|
|
sourcemap: 'none'
|
|
},
|
|
files: {
|
|
'_site/css/main.css':'_sass/main.scss'
|
|
}
|
|
}
|
|
},
|
|
|
|
shell: {
|
|
jekyllServe: {
|
|
command: 'jekyll serve --no-watch'
|
|
},
|
|
|
|
jekyllBuild: {
|
|
command: 'jekyll build'
|
|
}
|
|
},
|
|
|
|
|
|
postcss: {
|
|
options: {
|
|
map: true,
|
|
processors: [
|
|
require('autoprefixer-core')({browsers: 'last 2 versions'})
|
|
]
|
|
},
|
|
dist: {
|
|
src: '_site/css/*.css'
|
|
}
|
|
},
|
|
|
|
concurrent: {
|
|
tasks: ['shell:jekyllServe', 'watch'],
|
|
options: {
|
|
logConcurrentOutput: true
|
|
}
|
|
}
|
|
});
|
|
|
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
grunt.loadNpmTasks('grunt-contrib-sass');
|
|
grunt.loadNpmTasks('grunt-postcss');
|
|
grunt.loadNpmTasks('grunt-concurrent');
|
|
|
|
// grunt.registerTask('default', ['shell:jekyllServe', 'watch']);
|
|
grunt.registerTask('default', ['concurrent']);
|
|
};
|