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

@date-fns/docs

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@date-fns/docs

date-fns documentation utilities & types

  • 0.38.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

date-fns documentation utilities & types

This library is used to load docs into the database and provide a schema for the website.

Usage

The package is integrated into the date-fns build and release scripts, but if you need to run it manually, use the following instructions:

  1. To generate the date-fns docs, start by installing the latest version:
npm i -D @date-fns/docs@latest
  1. Then generate TypeDoc JSON file (tmp/docs.json):
npx typedoc
  1. Then, upload the docs to the Firebase with the path to the service key:
env GOOGLE_APPLICATION_CREDENTIALS="secrets/$APP_ENV/key.json" npx date-fns-docs docs/config.js

Replace $APP_ENV with either staging or production.

Contributing

When working locally, to upload the docs follow the instructions:

  1. In the date-fns library source directory generate TypeDoc JSON file (tmp/docs.json):
npx typedoc
  1. Rollback the docs for the current version for 1+n run to avoid having duplicates:
env GOOGLE_APPLICATION_CREDENTIALS="../date-fns/secrets/staging/key.json" npx tsx ./src/bin.ts ../date-fns/docs/config.js --rollback
  1. Then upload the docs to the Firebase:
env GOOGLE_APPLICATION_CREDENTIALS="../date-fns/secrets/staging/key.json" npx tsx ./src/bin.ts ../date-fns/docs/config.js

License

MIT © Sasha Koss

Keywords

FAQs

Package last updated on 16 Sep 2024

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