Socket
Socket
Sign inDemoInstall

@alxbrg/js-base

Package Overview
Dependencies
34
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @alxbrg/js-base

Minimalist boilerplate generator for JavaScript projects


Version published
Maintainers
1
Created

Readme

Source

js-base

This is a simple generator for bootstrapping JS projects and saving time on setting up boilerplate code, dev environments and downloading dependencies (e.g. linter rules, Babel presets, Webpack config, etc.)

Requirements

You must have node, yarn and git installed.

Usage

Install using yarn global add @alxbrg/js-base.

You can initialize a project in an empty directory by simply doing js-base -t <template>. You can also specify the name and directory of your project by doing js-base my-project. By default, js-base will abort if the targeted dir is not empty. To force the creation of the project, use the --force or -f flag.

Templates

Pick the template you want to use with the --template or -t option:

  • library - library boilerplate setup with Babel (for browser support);
  • node - Node.js service base, setup with Winston, Nodemon and Ramda (default);
  • webpack - bare-bones front-end Webpack project with HMR;

Docs for each template can be found in the templates' READMEs.

TODO

  • Add tests
  • Add templates:
    • express - simple Express server which builds upon the node base;
    • cli - base for a Node.Js CLI library;
    • graphql - GraphQL server based on the express template;
    • react - very minimalist but opinionated React setup;
    • fullstack - more elaborate project combining the graphql and react bases.
  • Add create tools: Create simple template scripts for common modules, e.g.:
    • Express routers
    • React components and containers

FAQs

Last updated on 06 Oct 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc