This talk was given on Oct 23 at HTML5DevConf in San Francisco. The topic was Continuous Delivery as it relates to JavaScript applications, using tools like grunt and jenkins.
27. Schedule a
Meeting
Go over continuous
delivery in a perfect
world scenario
Then come
back to reality
Wednesday, October 23, 13
22
28. You don’t have unit tests
You can’t do CD without unit tests...
You don’t have monitoring in place
You need more monitoring first...
You’re not Etsy, you’re not Netflix
This is really for someone else...
Wednesday, October 23, 13
23
39. Pros
Open Source
Large community
Very configurable
Loads of plugins
Wednesday, October 23, 13
Cons
Cumbersome UI
Plugin interaction flaky
You still need to solve a
lot
34
40. Easy git integration
including parametrized branches
At a glance overview
of job status, historical health
Configurable pipelines
cascading tasks started from an origin
Wednesday, October 23, 13
35
41. Visualize Everything
Always move towards visualizing
your pipeline in as public a place as
possible
Wednesday, October 23, 13
36
42. You know, if you’re here
add a few VCS hooks and you’re delivering.
Wednesday, October 23, 13
37
43. Bundle what won’t change
Your artifact is gospel
Wednesday, October 23, 13
38
47. First, formalize your JS development
Do you minify and bundle your JS?
You have the start of a build pipeline.
Do you use SASS or CoffeeScript?
You already require a developer flow.
You need a task manager.
Wednesday, October 23, 13
42
61. Example task chains
grunt.registerTask('dev', [
'env:dev',
'clean:dist',
'test',
'build',
'watch'
]);
https://github.com/Gruntfiles/gruntfiles.github.io/tree/master/gruntfiles/jsoverson/browserify-application
Wednesday, October 23, 13
56
62. Example task chains
grunt.registerTask('dist-build', [
'env:build',
'test',
'build',
'copy',
'uglify',
'preprocess',
'artifact'
]);
https://github.com/Gruntfiles/gruntfiles.github.io/tree/master/gruntfiles/jsoverson/browserify-application
Wednesday, October 23, 13
57
63. Continuous Delivery
isn’t a quick change
It requires motivation, persistence,
and a different mindset.
But it’s worth it.
Wednesday, October 23, 13
58