Nickel Palladium Manganese
Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

ocular

0.6.2 • Public • Published

Ocular

Install

yarn add ocular -D

Usage

ocular start

Starts the website

ocular build

Generate the dist

ocular lint

Starts linting process

Create

To create a project using ocular, a command fits this purpose.

Before getting started, create a directory, and go in there

mkdir yolo && $_

Then create a basic package.json

npm init -y

You can now install ocular as a devDep

yarn add -D ocular

And finally launch the cli

./node_modules/.bin/ocular init

Examples

Why

This project was originally created in order to avoid copy and pasting the website of deck.gl into new projects and provide an easy and clean way to bootstrap one while keeping most of the config in one place, that could allow for fixes across ocularized projects.

Most of the magic of Ocular resides in the resolve rule of the webpack config, which basically takes the project files at first and fallbacks to Ocular's. This way, you can override every single file required by this CRA-like application.

Keywords

none

Install

npm i ocular

DownloadsWeekly Downloads

193

Version

0.6.2

License

MIT

Unpacked Size

1.02 MB

Total Files

65

Last publish

Collaborators

  • avatar
  • avatar