Skip to content

segment-boneyard/campjs-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thinking with components

The idea with components is that you will package up HTML, CSS and JS together into a single re-usable module. This is different from how a lot of traditional front-end code is written. We don't have a giant folder full of JavaScript and another folder full of styles and hope they fit together.

Goals

  • How package management works in the browser
  • Component.io
  • Creating a simple component
  • Get away from building monolithic front-end libraries

Assumed Knowledge

  • Intermediate level of JavaScript experience
  • Basic level of CSS experience
  • Basic understanding of package managers
  • You know how to write a JSON file
  • Basic understanding of Git

If you're unsure about any of these topics go and do some basic reading before the workshop.

Requirements

You'll need a few things installed before attending the workshop so you can be ready to start straight away. If you can't get these installed there will be plenty of people available on the Friday that can help get you setup.

Node

You'll need node 0.10 installed. For both Mac and Windows you can get this from the node.js website.

Component

After node is installed, you need to install Component.

npm install -g component@~1

To check if this is installed run component --version on the command line. We're going to use the release candidate for this workshop.

Chrome

To keep the class consistent we'll be using chrome during the workshop. This isn't a hard requirement but it will make it easier if we're all using the same browser.

Are you using Windows?

Good luck. You might want to dual-boot or use a VM. I can't guarantee everything will work on Windows simply because we don't use them.

Reading

Here are some additional links for Thinking in Components:

Building Better Components

https://github.com/component/component/wiki/Building-better-components

One of the original articles written by TJ about Component.

SUIT CSS

https://github.com/suitcss/suit

Writing component-based CSS is also very, very important.

Component Guide

https://github.com/component/guide

Community-driven guide to using Component

Learn how to write component-based code for the browser using Component.io.

Releases

No releases published

Packages

No packages published