@lectro/core

1.1.3-alpha.11 • Public • Published

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)

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.3-alpha.1121latest
1.1.3-alpha.90next

Version History

VersionDownloads (Last 7 Days)Published
1.1.3-alpha.1121
1.1.3-alpha.100
1.1.3-alpha.90
1.1.2-alpha-240
1.1.2-alpha-221
1.1.2-alpha-215
1.1.2-alpha-201
1.1.2-alpha-190
1.1.2-alpha-180
1.1.2-alpha-170
1.1.2-alpha-160
1.1.2-alpha-150
1.1.2-alpha-140
1.1.2-alpha-121
1.1.2-alpha-110
1.1.2-alpha-100
1.1.2-alpha-90
1.1.2-alpha-80
1.1.2-alpha-70
1.1.2-alpha-50
1.1.2-alpha-40
1.1.10
1.1.00
1.0.00

Package Sidebar

Install

npm i @lectro/core

Weekly Downloads

29

Version

1.1.3-alpha.11

License

MIT

Unpacked Size

10.6 kB

Total Files

4

Last publish

Collaborators

  • raybulgarin