@lectro/enhancer-commonutils
Add these Common functions in your global scope of your Node Application
Last updated 2 years ago by raybulgarin .
MIT · Original npm · Tarball · package.json
$ cnpm install @lectro/enhancer-commonutils 
SYNC missed versions from official npm registry.

Lectro Enhancer Commonutils

Add these Common functions in your global scope of your Node Application

  • fetch

The function will not be added in the scope until it is used anywhere, so you can use any of the above function, only the used function will be added in the code

Usage

  • Install the module yarn add @lectro/enhancer-flowruntime
  • Create a devserver file dev.js with the following contents
const Lectro = require('@lectro/enhancer-flowruntime');
const lectro = new Lectro
lectro.dev()
  • Use node dev.js to run devserver

  • This will run the contents of src/index.js file with all the necessary polyfills

  • To combine Enchancer-Commonutils with other lectro enhancements follow this

const EnchancerFlowruntime = require('@lectro/enhancer-flowruntime')
const EnhancerCommonutils = require('@lectro/enhancer-commonutils')

const lectro = EnchancerFlowruntime.combine(new EnhancerCommonutils)

lectro.dev()
  • To build your bundle

const EnhancerCommonutils = require('@lectro/enhancer-commonutils')
const lectro = EnchancerFlowruntime.combine(new EnhancerCommonutils)

const lectro = new EnhancerCommonutils

// or this if you want to combine with other enhancer

const EnchancerFlowruntime = require('@lectro/enhancer-flowruntime')
const lectro = EnchancerFlowruntime.combine(new EnhancerCommonutils)

lectro.build()
  • Use node build.js to run build

  • This will build the contents of src/index.js file with all the necessary polyfills to build/main.js.

Current Tags

  • 1.1.2-alpha-13                                ...           latest (2 years ago)

7 Versions

  • 1.1.2-alpha-13                                ...           2 years ago
  • 1.1.2-alpha-11                                ...           2 years ago
  • 1.1.2-alpha-8 [deprecated]           ...           2 years ago
  • 1.1.2-alpha-7                                ...           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 0
This Month 9
Last Day 0
Last Week 0
Last Month 20
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |