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

@oskarengstrom/sage-ui

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oskarengstrom/sage-ui

UI library for KIND projects.

  • 0.6.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38
increased by8.57%
Maintainers
1
Weekly downloads
 
Created
Source

SAGE UI

UI library for KIND projects.

Install

npm i @oskarengstrom/sage-ui

Define compiler in Next.js:

const nextConfig = {
  compiler: {
    emotion: true,
  },
};

Develop

Run npm run i-all first time.

npm run dev fires up both rollup with -watch parallel to playground react app in dev mode.

npm run build-watch fires up rollup with -watch.

  1. In the package project, run npm link.
  2. In the reciever project, run npm link @oskarengstrom/sage-ui
  3. In the reciever project, add this to next.config.json:
const path = require("path")

const nextConfig = {
  webpack: (config, options) => {
    config.resolve.alias = {
      ...config.resolve.alias,
      "@emotion/core": path.resolve("./node_modules/@emotion/core"),
      "@emotion/react": path.resolve("./node_modules/@emotion/react"),
      react: path.resolve("./node_modules/react"),
    }

    return config
  },
}

module.exports = nextConfig
Unlinking

Order is important:

  1. sage-ui: npm link
  2. project: npm unlink --no-save @oskarengstrom/sage-ui

Publish

  1. Bump version in package.json
  2. npm publish or npm publish --@oskarengstrom:registry=https://registry.npmjs.org --access public
  3. push to git

Create tokens: https://github.com/settings/tokens

Notes

Good resource when stuck with bugs on NPM Link:
https://codebuckets.com/2022/02/20/npm-link-set-up-and-troubleshooting/

TODO: versioning with tags:
https://dev.to/nop33/using-npm-distribution-tags-the-right-way-562f

FAQs

Package last updated on 05 May 2023

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