hyra / angular-gulp-browserify-livereload-boilerplate Goto Github PK
View Code? Open in Web Editor NEWExample boilerplate for using Angular, Gulp, Express with LiveReload ad Browserify
Example boilerplate for using Angular, Gulp, Express with LiveReload ad Browserify
In your main.js
, you load your WelcomeCtrl
like this
app.controller('WelcomeCtrl', ['$scope', WelcomeCtrl])
Why do you need the $scope
specified explicitly like that? I am using your pattern to load a service and not have much luck. How would I load a service?
At the end of the readme, it should just be grunt
not grunt dev
Only the former starts the watch task and has a server running at http://localhost:5000 -- grunt dev
does not.
you require gulp-clean but then don't use it anywhere
I will be great it this boilerplate have tests
Thanks for the work. I have tried several project seeds, and so-far like this.
Here is a tweak to prevent file errors when clean is not finished before the rest of dev. I've only been using gulp for a day, but adapted from similar issues.
// -----------------------------------------------------------
// Dev task
gulp.task('dev', ['clean'], function() {
// - we need clean to finish completely before the rest of dev starts
gulp.start(['views', 'styles', 'lint', 'browserify']);
});
// -----------------------------------------------------------
// Clean task
gulp.task('clean', function() {
// use return so that gulp can know when clean is done.
return gulp.src('./dist/*/', { read: false }) // much faster
.pipe(rimraf({force: true}));
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.