Socket
Book a DemoInstallSign in
Socket

generator-babel-make

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-babel-make

Creates a project setup to do babel compilation, browserify/uglify, mocha testing, istanbul code coverage, and use make as a build tool

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

#Description A yeoman generator to get a node/browser js project started. Utilizes make as a task runner, babel as a transpiler, browserify and uglify to bundle and minify, mocha to test, and istanbul to calculate code coverage

This template is configured to find tests in directories named __tests__ nested inside the src directory. Tests can also be written in es6, and coverage reports will reflect the original es6 code.

#Builtin make targets

The default make target will run tests, then build browserified bundles in dist

The other useful targets are seperated into categories.

##For Building

  • compile: Use babel to compile all sources from src -> lib
  • browser: Produce browser-ready libraries in the dist folder (including a minified file)
  • if you have dependencies you do not want to include in your bundle, use exposify (or similar) and add a -t flag to the STANDALONE_BROWSERIFY_ARGS variable in the Makefile

##For testing

  • test: Use mocha to test
  • coverage: Use istanbul to calculate test coverage and open in your default browser

##For cleaning

  • clean-lib: removes the lib directory
  • clean-tests: removes each __tests__compiled__ directory
  • clean-dist: removes the dist directory
  • clean-coverage: removes the coverage directory
  • clean: removes all of the above

#Reserved Directories The make built targets utilize the directories: lib, dist, and coverage at the top level. Also during the coverage step, tests are compiled into __tests__compiled__ directories.

Keywords

yeoman-generator

FAQs

Package last updated on 20 Jun 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.