Skip to content

amasad/component-app-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

component-app-seed

Simple seed project for component(1) based apps.

Quickstart

  1. Clone or download the repo
  2. Change the project name, description, version etc. in component.json
  3. Run make and open your browser to index.html. You should see "works!" in red.

Workflow

A few assumptions:

  1. index.html is your landing page and lib/boot/ is your app's entry point component.
  2. All local components will be created under lib/
  3. Each local component will define it's own dependencies

Local components

To create a new local component:

$ component create -l lib/<component-name>

To require it from another local component, add <component-name> to the local array in component.json of the requiring component.

Third party components

Search for components:

$ component search <component-name>

Add the component <github-username>/<component-name> to the local component's dependencies object with the value being the version number or * for latest.

Note that all dependencies will be installed in the root directory's component/

Make commands

Build for development:

$ make

For a nicer workflow install watch(1) to build everytime a source file changes:

$ watch make

Install dependencies:

$ make components

To create a production build you need to install component-minify and run:

$ make minify

To clean the working directory from build files (useful for updating components):

$ make clean

Example apps using this

About

Seed project for Component apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published