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

@patternplate/compiler

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@patternplate/compiler

Create a compiler to create browser-compatible code from patternplate entries

  • 2.0.0-56
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
increased by166.67%
Maintainers
1
Weekly downloads
 
Created
Source

Documentation and development interface for component libraries

@patternplate/compiler

  • Framework independent
  • Bring design docs to live with real components
  • Powerful search and meta data system

This is the contributor documentation for @patternplate/cli For user docs see patternplate.github.io

About @patternplate/compiler

@patternplate/compiler wraps webpack and simplifies its generic API to distinguish only between web and node targets for patternplate purposes.

Quick start

git clone https://github.com/patternplate/patternplate.git
cd patternplate/packages/compiler
yarn
yarn start

Usage

const createCompiler = require("@patternplate/compiler");

const compiler = createCompiler({
  cwd: process.cwd(),
  target: "web"
});

compiler.run((err, stats) => {
  if (err) {
    return console.error(err);
  }

  if (stats.errors && stats.errors.length > 0) {
    return console.error(stats.errors);
  } 

  // results in compiler.outputFileSystem
});

License

Copyright by SinnerSchrader. All @patternplate packages are released under the MIT license.

FAQs

Package last updated on 13 Mar 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

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