Open bumprat opened 8 years ago
Thanks bumprat! This was very helpful!
👍 thanks! this must be merged!
Thanks for Gulp fix!
You're welcome! But I don't quite understand the procedures to pull and merge. Can someone knows do it for me. You have my permission.
@bumprat is there any reason you pipe the wired index.html into .tmp/ and not app/?
thanks for gulp fix!
Sorry to spam PR's :) Just accidentally read contribute.md
Thanks for this! When will this be merged?
Note that if you dont use SASS but plain CSS you must:
1º Change "styles: [yeoman.app + '/styles/**/*.scss'
]" for "styles: [yeoman.app + '/styles/**/*.css'
]"
2º Remove SASS piping block:
.pipe($.sass, {
outputStyle: 'expanded',
precision: 10
})
@rblazquez, it must be parametrized, like in my PR Because it is generator, not a snippet.
Hii I changed my gulp file to above code but keep getting this message "Invalid call to lazypipe().pipe(): no stream creation function specified" Someone know why... ?
me too
solved it by inserting var lintScripts = lazypipe() .pipe($.jshint, '.jshintrc') .pipe($.jshint.reporter, 'jshint-stylish');
var styles = lazypipe() .pipe($.autoprefixer, 'last 1 version') .pipe(gulp.dest, '.tmp/styles');
instead of
var lintScripts = lazypipe() .pipe($.jshint) // '.jshintrc' .pipe($.jshint.reporter,'jshint-stylish' );
var styles = lazypipe() .pipe($.sass, { outputStyle: 'expanded', precision: 10 }) .pipe($.autoprefixer, { browsers:['last 2 version'] }) .pipe(gulp.dest,yeoman.temp + '/styles');
Thanks for the file !!
Hi @SBoudrias,
(Sorry to pick on you... saw that you have the most commits in the generator repository so I assumed you are the maintainer.)
OP's proposed file seems to be the fix for Yeoman Angular with Gulp. I noticed a PR here https://github.com/yeoman/generator-angular/pull/1322 - do you think that this can be merged in the codebase?
I would be happy to help with the code review and testing process, though I'd have to educate myself on the sourcecode first. I'm sure there are implications with merging this in that have to be considered. Just let me know!
Thanks, Matthew
Hi. I used provided gulpfile but I noticed that livereload won't work with gulp serve on index.html file. I fixed it with this modification:
gulp.task('watch', function () {
...
- gulp.watch('bower.json', ['bower']);
+ gulp.watch(['bower.json',paths.views.main], ['clean:tmp','bower','styles']);
...
});
This replacement is extremely helpful when trying to configure a MEAN stack conflict situation.
Why isn't that fix already implemented? Btw, thanks a lot @bumprat !
Thanks @bumprat! When will be this merged?
Still running into this problem nearly a full year later. Any ETA on a fix?
Howdy, It's 3/23/2017 - Any chance of getting this rolled into the build? Please, please please!!!
I am new to gulp.
I have a main.scss in styles folder and some foo.scss and bar.scss
when doing gulp serve, the main.scss is included in the index.html file but not foo and bar (they got generated in the tmp folder css files though)
The gulp support is buggy. Here's the gulpfile.js I edited to solve several issues: