New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trolly

Package Overview
Dependencies
Maintainers
1
Versions
161
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trolly

Isomorphic boilerplate for a library written in ES2015 for Node and the browser.

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
52
decreased by-41.57%
Maintainers
1
Weekly downloads
 
Created
Source

A isomorphic boilerplate written in ES2015 for Node and the browser.

Travis Status Coverage Status

Features

  • Babel 6.x support
  • Mocha-Chai-Sinon testing stack
  • Support for ES2015 in the unit tests
  • Unit tests that work in Node and in the browser
  • Unit tests for older IE
  • Unit tests for production mode
  • Unit tests for development mode with auto-watch
  • Export as ES5 & UMD
  • Coverage report on the command line
  • Flow comments
  • Works both server and client side
  • Karma
  • Webpack
  • Webpack server for development
  • Eslint
  • Execution environment ala React
  • Production mode
  • Development mode
  • Pre-publishing to NPM
  • NodeJS v. 4.x support
  • NPM v. 3.3.6 support

Basic guide

Write your code in src. The entry file is what you named the project in kebab case (although the filename can be changed).

Run webpack to build a non-minified version of the library.

Put your unit tests in the __tests__ folder. The npm test command runs the tests using Node.

npm Scripts

  • npm run lint - Lint the source and unit tests
  • npm run dist - Build a distributable version of the library
  • npm run flow - Flow comments
  • npm run prepublish - prepublish to NPM
  • npm run test - Runs the unit tests
  • npm run test-coverage - Generate a coverage report
  • npm run test-ie - Runs the unit tests for older IE
  • npm run test-dev - Runs the unit tests and continuously run the unit tests as you make changes to the source and test files themselves

Installation

Download the package, and run this from the command line:

npm install 

Unit tests

Units tests are done in the background and visible in the cli together with the generated coverage report.

Linting

This boilerplate uses ESLint to lint your source. To change the rules, edit the .eslintrc file in the root directory, respectively.

Customizing

This boilerplate is easily customizable. Add your dependencies to the package.json file, and adjsut the webpack section inside the karma.config.js after your own needs.

Do not set anything inside the webpack.config. Everything are maintained by karma.

Keywords

FAQs

Package last updated on 03 Nov 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