cody-cli
Frontend web development server for modern web apps
Last updated 4 years ago by marcopeg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install cody-cli 
SYNC missed versions from official npm registry.

Cody CLI

Cody is a command line utility designed to help web development at the beginning of the developer's career. Cody takes care of the environment and let you focus on the code.

Stories in Ready ![Backlog](https://badge.waffle.io/PoliteJS/cody-cli.svg?label=in%20progress&title=In Progress)

Why?

Setting up a simple server (NIGIX, Apache) it's a difficult business, setting > up Grunt / Gulp to transpile LESS or SASS is even more difficult (especially if you don't know Javascript). Put the pieces together with tools like Webpack or Browserify it is simply impossible to the beginner.

I think those guys need a tool that allows them focus on getting an Hello World done, not getting the exercise being executed on their machine!

Features

  • run your html through a local HTTP server
  • transparent transpilers:
    • write CSS, Less or Sass
    • write ES6 or even ES7*
    • use ES6 modules* to include Javascript into Javascript
  • get code hints for Javascript, CSS, Less*, Sass*

(*) to be done

Install & Run

Cody comes as a globally available command line tool which you install with NodeJS:

npm install -g cody-cli

Once it is installed you can easily bootstrap a new web project:

// setup a new empty folder
mkdir my-web-project
cd my-web-project

// this run the magic!
cody 

You project will be available at http://localhost:8080 immediately, and every change in your project's folder will be reflected in the server.

Less & Sass

Cody is able to understand less and sass:

foo.less -> foo.less.css
foo.scss -> foo.scss.css

All your transpiled code supports sourcemaps out of the box!

When you use CSS frameworks (or utilities packages) from NPM or Bower you can import those modules by name omitting the package directory:

// Sass
@import "bootstrap/scss/bootstrap"

ES2015

Use the .jsx extension to access all the es2015 and react presets for Babel.

All your transpiled code supports sourcemaps out of the box!

Live Updates

.less, .sass and .jsx files are transpiled automatically every time you save them. You just need to refresh your browser window.

Assets

All the files inside the folders listed below are made available to the running server without any transformation:

  • assets/
  • images/
  • fonts/

Current Tags

  • 0.0.12                                ...           latest (4 years ago)

12 Versions

  • 0.0.12                                ...           4 years ago
  • 0.0.11                                ...           4 years ago
  • 0.0.10                                ...           4 years ago
  • 0.0.9                                ...           4 years ago
  • 0.0.8                                ...           4 years ago
  • 0.0.7                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 19
Dependencies (16)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |