GithubHelp home page GithubHelp logo

onurbul / js-config Goto Github PK

View Code? Open in Web Editor NEW

This project forked from viamrobotics/js-config

0.0 0.0 0.0 240 KB

Common configuration for JS/TS tooling

License: Apache License 2.0

JavaScript 86.46% TypeScript 13.54%

js-config's Introduction

Viam Shared JS/TS Config

Shared configuration for JavaScript and TypeScript tools.

Libraries

Tool NPM Module Version
ESLint @viamrobotics/eslint-config eslint version
Prettier @viamrobotics/prettier-config prettier version
TypeScript @viamrobotics/typescript-config typescript version

Actions

For usages with GitHub Actions CI

Setup

Install Node.js, pnpm, and development dependencies

- name: Setup Node.js
  uses: viamrobotics/js-config/.github/actions/setup
  with:
    node-version: '20'
Option Description Default
node-version Which Node.js version to install 20
registry-url Configure a registry URL for publish Unset
install-dependencies Run pnpm install true

Publish

Publish a package to npm and add a tag to the repository

- name: Publish to npm
  uses: viamrobotics/js-config/.github/actions/publish
  with:
    package: 'packages/cool-lib'
    token: ${{ secrets.NPM_TOKEN }}
Option Description Default
package Path to package.json or directory to publish Required
token npm auth token Required

Contributing

Node.js v18 or higher is required to develop on this repository. To get started, clone the repository and install the project's development dependencies. .

git clone https://github.com/viamrobotics/js-config.git
cd js-config
corepack enable
pnpm install

Once your development dependencies are installed, you can verify that all checks and tests are passing:

# run all checks and builds
pnpm all

# check lints
pnpm check-lint

# check types
pnpm check-types

# check formatting
pnpm check-format

# build all packages
pnpm build

# auto-format (modifies files)
pnpm format

Releasing

Modules in this repository are continuously deployed to npm from the main branch. To trigger a release, create a commit that bumps version in one or more package.json files and create a pull request to merge that commit into main.

js-config's People

Contributors

mcous avatar micheal-parks avatar dtcurrie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.