Giter Site home page Giter Site logo

easonlau02 / jslib-base Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yanhaijing/jslib-base

0.0 1.0 0.0 1.11 MB

A modern JavaScript|Typescript library scaffolding, modularity, purity & extras

License: MIT License

JavaScript 99.20% HTML 0.37% TypeScript 0.43%

jslib-base's Introduction

license npm NPM downloads Percentage of issues still open

English | 简体中文

The best third party JS|TS library scaffold. fast to create the framework for building a new library.

The library that based jslib-base can be shared to the jsmini platform

Characteristics

  • jslib commander all in one
  • Coded in ES6+ or TypeScript, easily compile and generate production code
  • Third parties rely on automatic injection(Tree shaking)
  • Supports multi environment, including default browsers, Node, AMD, CMD, Webpack, Rollup, Fis and so on.
  • Integrated code style lint(eslint).
  • Integrated unit test environment(mocha).
  • Integrated test coverage(istanbul+nyc).
  • Integrated continuous integration tool travis-ci
  • Supports sideEffects
  • Integrated Issue template
  • Integrated jsmini

Usage Instructions

Using npm, install global jslib(node >= 6.0)

$ npm i -g @js-lib/cli

Or use the npx command to skip the install

$ npx @js-lib/cli new

create a new lib

$ jslib new mylib
# input something
$ cd mylib
$ npm i

To update the old lib

$ jslib update

For older projects, the update command cannot be executed directly. Instead, a configuration file can be initialized first

$ jslib new -c

Directory

├── demo - Using demo
├── dist - Compiler output code
├── doc - Project documents
├── src - Source code directory
├── test - Unit tests
├── CHANGELOG.md - Change log
└── TODO.md - Planned features

The npm scripts

$ npm run lint
$ npm run test
$ npm run build
$ npm run release
$ npm publish

Contribution Guide

This project use lerna to manage mutil plugins

First, to install lerna

$ npm install -g [email protected]

Some commands of lerna

$ lerna init
$ lerna create @js-lib/todo
$ lerna add yargs --scope=@js-lib/cli
$ lerna list
$ lerna bootstrap
$ lerna link
$ lerna changed
$ lerna publish

Contributors

contributors

Change Log

CHANGELOG.md

TODO

TODO.md

Current Users

Relative links

jslib-base's People

Contributors

yanhaijing avatar houce avatar logan70 avatar yugasun avatar en777 avatar sidkwok avatar bigmeow avatar alanoooaao avatar superbug avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.