Kitt Hodsden • @kitt • http://ki.tt/e4e2015 51 $ npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sane defaults. See `npm help json` for definitive documentation on these fields and exactly what they do. Use `npm install --save` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. name: (dev) performance version: (1.0.0) description: Automating front-end performance metrics and improvements entry point: (index.js) test command: git repository: keywords: author: license: (ISC) About to write to .../e4e/dev/package.json: ...
Kitt Hodsden • @kitt • http://ki.tt/e4e2015 52 $ npm init This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sane defaults. See `npm help json` for definitive documentation on these fields and exactly what they do. Use `npm install --save` afterwards to install a package and save it as a dependency in the package.json file. Press ^C at any time to quit. name: (dev) performance version: (1.0.0) description: Automating front-end performance metrics and improvements entry point: (index.js) test command: git repository: keywords: author: license: (ISC) About to write to .../e4e/dev/package.json: ...
Kitt Hodsden • @kitt • http://ki.tt/e4e2015 Check dependencies into the repo? http://addyosmani.com/blog/checking-in-front-end-dependencies/ http://redotheweb.com/2013/09/12/should-you-commit-dependencies.html 60 Total sidebar on checking dependencies into the repo or not
Kitt Hodsden • @kitt • http://ki.tt/e4e2015 68 ... // load all the grunt modules instead of one each line require("matchdep").filterDev("grunt-*").forEach(grunt.loadNpmTasks); grunt.registerTask('checkjs', ['jshint']); grunt.registerTask('watchjs', ['jshint', 'watch']); grunt.registerTask('gruntjs', ['jshint:gruntfile', 'watch']);
Kitt Hodsden • @kitt • http://ki.tt/e4e2015 npm install grunt-phantomcss —save-dev https://github.com/chrisgladd/grunt-phantomcss https://github.com/Huddle/PhantomCSS 95 Make sure you haven’t removed things you need
Kitt Hodsden • @kitt • http://ki.tt/e4e2015 140 http://www.webpagetest.org/getkey.php Limits of public use The API key is provisioned for up to 200 page loads per day … sufficient for most low-volume use cases and for building a proof-of- concept for larger testing
Kitt Hodsden • @kitt • http://ki.tt/e4e2015 251 $ vi ~/.ssh/authorized_keys dd # delete the first line [esc] # trigger the vi command sequence :wq # save the file and quit