Last active
October 3, 2019 13:48
-
-
Save KatieMFritz/38dda99e71bb7cef7afa2ff57f63f2f4 to your computer and use it in GitHub Desktop.
Revisions
-
KatieMFritz revised this gist
May 10, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -11,4 +11,4 @@ Once everything is updated, test with `gulp patternlab:build`. For `bootstrap-sass`: ```scss @import '../../../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss'; ``` -
KatieMFritz revised this gist
May 10, 2017 . 1 changed file with 6 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -6,4 +6,9 @@ Then update `gulpfile.js`, then `patternlab-config.json`. If you're renaming your default stylesheet, update it in `source/_meta/_00-head.mustache`. Once everything is updated, test with `gulp patternlab:build`. For `bootstrap-sass`: ```scss @import '../../../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss'; `` -
KatieMFritz renamed this gist
May 10, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
KatieMFritz renamed this gist
May 10, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,4 +4,6 @@ Then update `package.json` and run `npm install` in the command line. Then update `gulpfile.js`, then `patternlab-config.json`. If you're renaming your default stylesheet, update it in `source/_meta/_00-head.mustache`. Once everything is updated, test with `gulp patternlab:build`. -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,6 @@ First [install patternlab/edition-node-gulp](https://github.com/pattern-lab/edit Then update `package.json` and run `npm install` in the command line. Then update `gulpfile.js`, then `patternlab-config.json`. Once everything is updated, test with `gulp patternlab:build`. -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,5 @@ /* Update paths > source to add */ "scss" : "./source/css/scss" /* or whatever your scss path will be */ -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 7 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ /** Update paths > source to add **/ "scss" : "./source/css/scss" /** or whatever your scss path will be */ -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ /*** "paths" : { "source" : { ... ***/ "scss" : "./source/css/scss" -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 12 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,17 +22,6 @@ gulp.task('pl-sass', function(){ UPDATE `GULP.TASK('PL-ASSETS')` TO BE THIS gulp.task('pl-assets', gulp.series( @@ -43,4 +32,15 @@ gulp.task('pl-assets', gulp.series( gulp.series('pl-sass', 'pl-copy:css', function(done){done();}), 'pl-copy:styleguide', 'pl-copy:styleguide-css' )); ADD TO BEGINNING OF WATCHERS RIGHT AFTER `const watchers = [` { name: 'Sass', paths: [normalizePath(paths().source.scss, '**', '*.scss')], config: { awaitWriteFinish: true }, tasks: gulp.series('pl-sass', reloadCSS) }, -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 9 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -22,15 +22,15 @@ gulp.task('pl-sass', function(){ ADD TO BEGINNING OF WATCHERS RIGHT AFTER `const watchers = [` { name: 'Sass', paths: [normalizePath(paths().source.scss, '**', '*.scss')], config: { awaitWriteFinish: true }, tasks: gulp.series('pl-sass', reloadCSS) }, UPDATE `GULP.TASK('PL-ASSETS')` TO BE THIS -
KatieMFritz revised this gist
May 9, 2017 . 2 changed files with 11 additions and 11 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1,5 @@ First [install patternlab/edition-node-gulp](https://github.com/pattern-lab/edition-node-gulp#use-npm). Then update `package.json` and run `npm install` in the command line. Then update `gulpfile.json`. This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,14 +1,12 @@ BEGINNING //Add Sass support var sass = require('gulp-sass'); sourcemaps = require('gulp-sourcemaps'); AFTER PL-COPY:FONT AND BEFORE PL-COPY:CSS // SASS Compilation // http://www.brianmuenzenmeyer.com/adding-common-gulp-tasks-to-pattern-lab-node @@ -24,20 +22,18 @@ gulp.task('pl-sass', function(){ ADD TO BEGINNING OF WATCHERS { name: 'Sass', paths: [normalizePath(paths().source.scss, '**', '*.scss')], config: { awaitWriteFinish: true }, tasks: gulp.series('pl-sass', reloadCSS) }, UPDATE `GULP.TASK('PL-ASSETS')` TO BE THIS gulp.task('pl-assets', gulp.series( 'pl-copy:js', -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1 @@ First [install patternlab/edition-node-gulp](https://github.com/pattern-lab/edition-node-gulp#use-npm). -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 19 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,15 @@ BEGINNING //Add Sass support var sass = require('gulp-sass'); sourcemaps = require('gulp-sourcemaps'); /** AFTER PL-COPY:FONT AND BEFORE PL-COPY:CSS **/ // SASS Compilation // http://www.brianmuenzenmeyer.com/adding-common-gulp-tasks-to-pattern-lab-node // https://www.sitepoint.com/simple-gulpy-workflow-sass/ @@ -14,14 +22,23 @@ gulp.task('pl-sass', function(){ .pipe(gulp.dest(path.resolve(paths().source.css))); }); /** ADD TO BEGINNING OF WATCHERS **/ { name: 'Sass', paths: [normalizePath(paths().source.scss, '**', '*.scss')], config: { awaitWriteFinish: true }, tasks: gulp.series('pl-sass', reloadCSS) }, /** UPDATE GULP.TASK('PL-ASSETS') TO BE THIS **/ gulp.task('pl-assets', gulp.series( 'pl-copy:js', 'pl-copy:img', -
KatieMFritz revised this gist
May 9, 2017 . 2 changed files with 4 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ "devDependencies": { "gulp-sourcemaps": "^2.6.0", "gulp-sass": "^3.1.0" } -
KatieMFritz revised this gist
May 9, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ Command Line: `npm install node-sass` Gulp -
KatieMFritz created this gist
May 9, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ /** Add Sass support **/ var sass = require('gulp-sass'); sourcemaps = require('gulp-sourcemaps'); // SASS Compilation // http://www.brianmuenzenmeyer.com/adding-common-gulp-tasks-to-pattern-lab-node // https://www.sitepoint.com/simple-gulpy-workflow-sass/ gulp.task('pl-sass', function(){ return gulp .src(path.resolve(paths().source.scss, '**/*.scss')) .pipe(sourcemaps.init()) .pipe(sass().on('error', sass.logError)) .pipe(sourcemaps.write()) .pipe(gulp.dest(path.resolve(paths().source.css))); }); // add to watchers { name: 'Sass', paths: [normalizePath(paths().source.scss, '**', '*.scss')], config: { awaitWriteFinish: true }, tasks: gulp.series('pl-sass', reloadCSS) }, gulp.task('pl-assets', gulp.series( 'pl-copy:js', 'pl-copy:img', 'pl-copy:favicon', 'pl-copy:font', gulp.series('pl-sass', 'pl-copy:css', function(done){done();}), 'pl-copy:styleguide', 'pl-copy:styleguide-css' )); This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ Command Line: `npm install node-sass' Gulp