0.3.45 • Published 4 years ago

@lespantsfancy/lux v0.3.45

Weekly downloads
100
License
UNLICENSED
Repository
github
Last release
4 years ago

Setup

All files should be placed in the /src/ directory. Upon running the npm run prepublish command (either directly or indirectly), any files and folders under /src/ will be sent through babel to the /lib/ directory. The package.json file specifies the entry point of the package to the /lib/index.js point. /lib/index.js will be a babel copy of /src/index.js.

Project Structure

Directory

lux [root]
  └─ /lib   [dynamically copied from /src]
  └─ /src
    └─ /core
    └─ index.js

Namespace

import Lux from "@lespantsfancy/lux";

Gives access to the following namespaces:

Lux
  └─ Core
    └─ ...

Purpose of Babel

As of the time of this package, I don't know enough about how this (Node, packages, etc.) works and babel ensured (tested and verified) that es6 files and structure would compile and be available both in a NodeJS level execution (i.e. an express sever) and in a React application.

At this point, it has not been tested with React Native.

Installation

npm install @lespantsfancy/lux

Because this is a scoped package, you must install it with the @lespantsfancy prefix. |Scope|Command| |---|---| |Production|npm install --save @lespantsfancy/lux| |Development|npm install --save-dev @lespantsfancy/lux|

Example Usage

import Lux from "@lespantsfancy/lux";

NPM

These are all cli level commands and require a terminal to execute.

NPM Login

npm login

Follow the prompts to login with username, password, and email.

NPM Packaging Commands

npm version patch|minor|major

This will increment the version of the package

npm publish --access=public

This will deploy the package to npm

Commands

Development Commands

npm start

This is a custom script that will run the prepublish command before executing node lib/index.js

Command Execution Steps

1) `npm run prepublish`
2) `cls`
3) `node lib/index.js`

Publishing Commands

npm run deploy

This is a custom script to both increment the patch and publish to npm.

Command Execution Steps

1) `npm version patch`
2) `npm publish --access=public`
   a) `babel` apparently knows to `npm run prepublish` behind the scenes here
0.3.45

4 years ago

0.3.44

4 years ago

0.3.43

4 years ago

0.3.42

4 years ago

0.3.41

4 years ago

0.3.40

4 years ago

0.3.39

4 years ago

0.3.38

4 years ago

0.3.37

4 years ago

0.3.36

4 years ago

0.3.35

4 years ago

0.3.31

4 years ago

0.3.33

4 years ago

0.3.32

4 years ago

0.3.30

4 years ago

0.3.29

4 years ago

0.3.28

4 years ago

0.3.27

4 years ago

0.3.26

4 years ago

0.3.25

4 years ago

0.3.24

4 years ago

0.3.23

4 years ago

0.3.22

4 years ago

0.3.21

4 years ago

0.3.20

4 years ago

0.3.19

4 years ago

0.3.18

4 years ago

0.3.17

4 years ago

0.3.16

4 years ago

0.3.15

4 years ago

0.3.14

4 years ago

0.3.13

4 years ago

0.3.12

4 years ago

0.3.11

4 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.8

4 years ago

0.3.7

4 years ago

0.3.9

4 years ago

0.3.10

4 years ago

0.3.4

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.3

4 years ago

0.2.11

4 years ago

0.2.10

4 years ago

0.2.9

4 years ago

0.2.7

4 years ago

0.2.8

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.1.62

4 years ago

0.1.60

4 years ago

0.1.61

4 years ago

0.1.59

4 years ago

0.1.58

4 years ago

0.1.57

4 years ago

0.1.56

4 years ago

0.1.45

4 years ago

0.1.44

4 years ago

0.1.40

4 years ago

0.1.39

4 years ago

0.1.34

4 years ago

0.1.35

4 years ago

0.1.36

4 years ago

0.1.37

4 years ago

0.1.38

4 years ago

0.1.32

4 years ago

0.1.30

4 years ago

0.1.31

4 years ago

0.1.29

4 years ago

0.1.27

4 years ago

0.1.28

4 years ago

0.1.24

4 years ago

0.1.22

4 years ago

0.1.20

4 years ago

0.1.21

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.17

4 years ago

0.1.16

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago