cody-cli

2020-02-14

Frontend web development server for modern web apps

Cody CLI

Codyis a command line utility designed to help web development at the beginning of the developer's career. Codytakes 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/ Gulpto transpile LESSor SASSis even more difficult (especially if you don't know Javascript_). Put the pieces together with tools like _Webpackor Browserifyit is simply impossible to the beginner.

I think those guys need a tool that allows them focus on getting an Hello Worlddone, 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

Codycomes 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:8080immediately, and every change in your project's folder will be reflected in the server.

Less & Sass

Codyis able to understand lessand sass:

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

All your transpiled code supports sourcemapsout of the box!

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

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

ES2015

Use the .jsxextension to access all the es2015and reactpresets for Babel.

All your transpiled code supports sourcemapsout of the box!

Live Updates

.less, .sassand .jsxfiles 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/

HomePage

https://github.com/PoliteJS/cody-cli#readme

Repository

https+https://github.com/PoliteJS/cody-cli


上一篇:u-test
下一篇:@dlghq/babel-preset-dialog
相关教程
关注微信

扫码加入 JavaScript 社区

相关文章

首次访问,需要验证
微信扫码,关注即可
(仅需验证一次)

欢迎加入 JavaScript 社区

号内回复关键字:

回到顶部