Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.04 KB

00-introduction.md

File metadata and controls

58 lines (39 loc) · 2.04 KB

Getting started with Skivvy

Introduction

This guide is all you need to master Skivvy. By the end of it you'll know how to add, configure and run tasks, write custom tasks, and even publish your own packages.

Here's a guided tour of some of Skivvy's features. Starting from the basics, it demonstates how to link Skivvy's task packages together to create a fully-functioning Mocha/Browserify build system.

asciicast

Getting started


IMPORTANT BACKGROUND KNOWLEDGE

Before we start, it's important to know that Skivvy tasks come in two flavors: external tasks and local tasks. These terms will be used throughout the guide, so it's probably best to get used to them now.

  • External tasks
    • Installed in packages (as dependencies of the current project)
    • Contain generic, reusable behavior
    • Can be shared across multiple projects
    • Read-only
  • Local tasks
    • Created as.js files within the current project
    • Contain custom, project-specific behavior
    • Cannot be shared across multiple projects
    • Can be edited in-situ

Now we've got that covered, let's get started!

First of all, you'll need to set up a new Skivvy project. To do that, create a new folder and run the skivvy init command inside it:

mkdir skivvy-guide && cd skivvy-guide
skivvy init

Seeing as this directory has not yet been initialized as an npm module, Skivvy will automatically run the npm init command and guide you through the process.

Behind the scenes, the skivvy init command creates a file in the project root named .skivvyrc. This is used to store the project and task configuration.

That's all it takes to set up a Skivvy project. Time to add some tasks!

Next up: Adding tasks