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

ocular-dev-tools

Package Overview
Dependencies
Maintainers
2
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ocular-dev-tools

Dev tools for our Javascript frameworks

  • 0.0.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
320
decreased by-14.44%
Maintainers
2
Weekly downloads
 
Created
Source

ocular-dev-tools

Experimental dev tools for our open source Javascript frameworks

contains developer targets for building, cleaning, linting, testing and publishing frameworks.

  • The testing script has a number of modes, it can run tests on both browser and node, it can run test on src or built distributions etc.
  • The linting feature supports both code and markdown, and runs both eslint and prettier.
  • Supports both single module repos (all code in src) and monorepos (code in `modules//src).

Note: flow is not currently integrated into ocular-dev-tools as we restrict its use to React related code bases.

Requirements/Limitations

ocular is built for frameworks in the vis.gl suite. It is not intended to be a general, hifhly configurable tool. It expects examples, test and doc folders organized in a certain way.

Installation

yarn add ocular-dev-tools reify

Your package.json should looks something like:

  "devDependencies": {
    "ocular-dev-tools": "*",
    "reify": "^0.18.1"
  }

Usage

After installing you can set up your build scripts in package.json as follows:

  "scripts": {
    "clean": "ocular-clean",
    "build": "ocular-build && ocular-bundle",
    "lint": "ocular-lint",
    "publish-prod": "ocular-publish prod",
    "publish-beta": "ocular-publish beta",
    "test": "ocular-test"
  },

Configuration

To provide maximum control to the user, ocular build scripts use config files in the framework repo. In cases where such files allow for importing other templates, ocular provides exports that can be used, if not it provides a template that the user can copy into the frameworks root directory.

  • babel.config.js -
  • webpack.config.js -
  • eslintrc -
  • TBA

Keywords

FAQs

Package last updated on 06 Mar 2019

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