New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

template-module-webpack

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

template-module-webpack

The one stop shop for modern javascript library development

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

Template for making Modular Front-End Libraries with style

Screenshot

This library is framework agnostic so it can be used with React, Angular, Vue, or whatever other frameworks you so choose.

See Example

The purpose of this library is to provide a toolkit library for fast development of front-end modules using the most modern of technologies.

This is to be framework agnostic so it can be used with Node, React, Angular, Vue, or whatever other frameworks you so choose.

To use this library in your application import it as follows for the javascript

import library as 'template-module-webpack';

The css if applicable will be located in the dist folder of the node_module

What's in the box?

Webpack Hot Module Replacement (HMR), ES6, SASS, Linting, Unit Tests, and Sandbox library module template

Environment setup

  $ npm i

Testing

Start the Jest Auto Test interface

  $ npm run test

UI based Development

Start the Webpack server (includes live reloading + hot module replacement when you change files):

  $ npm run dev

Open http://localhost:8080 in a browser. ./sandbox/index.html is the example which is an example of an implentation of your src library. ./src/index.js is the entry point.

Bundling

When you're finished and want to make a build, you will need to actually bundle the code into its distribution bundles. The following command will do this with which you can publish the library

  $ npm run bundle

Keywords

babel

FAQs

Package last updated on 17 Sep 2018

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