This is a super simple command line module that copies HTML5 boilerplate to your clipboard so that you can open a new file, paste and
Currently just works on Macs or things that have
When you paste you get:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Title</title> <link rel="icon" type="image/png" href="favicon.png"> <link rel="stylesheet" href="assets/style.css"> </head> <body> </body> </html>
Should work on all systems.
$ boilme -f FILENAME
Writes the boilerplate to the filename you provide. Relative paths are resolved to the directory in which you run the script.
The boilerplate included here is adapted from the lovely @thefoxis's repository thefoxis/html-boilerplate.
cli-boilerplate globally on you computer with NPM:
$ npm install -g cli-boilerplate
From any terminal window, run the
boilme command to get the boilerplate copied to you clipboard.
Then paste it where you want it. Done!
Clone this repository (or a fork of it) to your computer:
$ git clone firstname.lastname@example.org:jlord/cli-boilerplate.git
Open it up in your text editor and edit the
boilerplate.html file as you'd like it. Save.
$ cd cli-boilerplate
Link this version to your system so that Node uses it when you run
boilme. From inside the
cli-boilerplate directory link it:
$ npm link
boilme from any terminal window. Yay!