0.6.7 • Published 1 year ago

@oskarengstrom/sage-ui v0.6.7

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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.

NPM Link

  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

0.6.7

1 year ago

0.5.9-test

1 year ago

0.5.8

1 year ago

0.6.6

1 year ago

0.5.7

1 year ago

0.6.0-pre1

1 year ago

0.6.0-pre3

1 year ago

0.6.0-pre2

1 year ago

0.6.0-pre4

1 year ago

0.6.3

1 year ago

0.5.4

1 year ago

0.6.2

1 year ago

0.5.3

1 year ago

0.6.5

1 year ago

0.5.6

1 year ago

0.6.4

1 year ago

0.5.5

1 year ago

0.5.0

1 year ago

0.6.1

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.0-pre4

1 year ago

0.4.0-pre3

1 year ago