@lectro/core
An Awesome Transformer for your Node and your Browser code
Last updated a year ago by raybulgarin .
MIT · Original npm · Tarball · package.json
$ cnpm install @lectro/core 
SYNC missed versions from official npm registry.

Lectro Core

What is Lectro

Lectro enables Node Application to work with different languages that compiles to JS, very smoothly whether it is Coffeescript, Purescript, Typescript or even OCaml (BuckleScript)

Lectro uses Webpack and its loaders internally, but it is extremely easier to use and extend.

Lectro Core API provides

  • A devserver to run Node Application which restarts whenever any file changes, powered by nodemon.

  • A Build Command to build your Node Application to one bundle.

  • An Extend Command to extend Lectro capabilities, mostly to include a file loader.

Example

  • To use the devserver
const Lectro = require('@lectro/core');
(new Lectro('web'/* or node*/)).dev();

Now save this file as run.js at your project root and start the server with node run.js

That's It

Devserver assumes your entry file at src/index.js

  • To build your application
const Lectro = require('@lectro/core');
(new Lectro('web'/* or node*/)).build();

Now save this file as build.js at your project root and start the build with node build.js

Enter the Enhancers

An Enhancer typically enhances lectro features

const Lectro = require('@lectro/core')
const CommonUtilsEnhancer = require('@lectro/enhancer-commonutils')

const lectro = new Lectro('web'/* Target */).apply(CommonUtilsEnhancer)

Current Tags

  • 1.1.3-alpha.11                                ...           latest (a year ago)
  • 1.1.3-alpha.9                                ...           next (a year ago)

24 Versions

  • 1.1.3-alpha.11                                ...           a year ago
  • 1.1.3-alpha.10                                ...           a year ago
  • 1.1.3-alpha.9                                ...           a year ago
  • 1.1.2-alpha-24                                ...           a year ago
  • 1.1.2-alpha-22                                ...           a year ago
  • 1.1.2-alpha-21                                ...           a year ago
  • 1.1.2-alpha-20                                ...           a year ago
  • 1.1.2-alpha-19                                ...           a year ago
  • 1.1.2-alpha-18                                ...           a year ago
  • 1.1.2-alpha-17                                ...           a year ago
  • 1.1.2-alpha-16                                ...           a year ago
  • 1.1.2-alpha-15                                ...           a year ago
  • 1.1.2-alpha-14                                ...           a year ago
  • 1.1.2-alpha-12                                ...           2 years ago
  • 1.1.2-alpha-11                                ...           2 years ago
  • 1.1.2-alpha-10                                ...           2 years ago
  • 1.1.2-alpha-9                                ...           2 years ago
  • 1.1.2-alpha-8                                ...           2 years ago
  • 1.1.2-alpha-7                                ...           2 years ago
  • 1.1.2-alpha-5                                ...           2 years ago
  • 1.1.2-alpha-4                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 25
This Month 49
Last Day 25
Last Week 0
Last Month 57
Dependencies (2)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |