Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

generator-libstart

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-libstart

Yeoman generator to start your UMD library.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

LibStart

npm version Build Status Join the chat at https://gitter.im/yoannmoinet/generator-libstart

Yeoman generator to start your UMD library.

Getting Started

If you'd like to get to know Yeoman better check out the complete Getting Started Guide.


Overview

This generator will create a basic scaffolding of a generic UMD library.

It will come with :

The generator will even reserve its name on npm's registery if you whish to, thanks to npmreserve.


Npm Scripts
npm postest (auto)

Is run automatically after npm test and controls formatting and linting.

npm preversion (auto)

Is run automatically before npm bump and runs npm build.

npm postversion (auto)

Is run automatically after npm bump and will synchronize bower.json with package.js's new version.

npm build (manual)

It runs test, changelog, umd and uglify.

npm test (manual)

Tests.

Custom Scripts

They are all run by the previous npm scripts but you can run them at your convenience.

npm run-script format

Test the formatting with JSCS

npm run-script lint

Lint with ESLint

npm run-script umd

UMDify your library

npm run-script changelog

Generate a changelog for your library based on your commits if you've followed one of the supported convention.

npm run-script uglify

Uglify your library


Structure

library
├ .eslintrc           // Basic ESLint config
├ .editorconfig       // Basic Editor config
├ .jscsrc             // Basic JSCS configREADME.mdLICENSE
├ package.json
├ bower.json
│
└─── bin               // Helpers for npm scripts
|    ├ changelog.js    // Is run with 'npm run-script changelog'
|    └ postversion.js  // Is run with 'npm postversion'
|
└─── src
|    └ lib.js          // Main file
|
└─── test
     └ lib.spec.js     // Mocha tests

Install

To install generator-libstart from npm, run:

npm install -g yo generator-libstart

Finally, initiate the generator:

yo libstart

License

MIT

Keywords

FAQs

Package last updated on 02 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc