@colabo-headless/i-core-backend
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

Intro

This is a NGLess common puzzle of ngless module of the Colabo.Space ecosystem

Export

# It will create globaly accessable npm package `@colabo-headless/i-core-backend`
npm link

Import

# Imports it in the local node_modules space of the hosting app
npm link @colabo-headless/i-core-backend

How to use

In package add an alias:

    "dependencies": {
 		"@colabo-headless/i-core": "npm:@colabo-headless/i-core-backend@0.1.2"
    }

Workaround

The code should use @angular imports.

In the colabo.,config.json where we want to not use angular, we should do:

    "symlinks": [
      {
        "comment": "We have to do this to make the code agnostic. In such a way, code will work with regular @angular in the frontend, and at the same time it will work in isomorphic through @colabo-ngless replacement",
        "from": "node_modules/@colabo-headless/i-core-backend",
        "to": "node_modules/@angular/core"
      }

Readme

Keywords

none

Package Sidebar

Install

npm i @colabo-headless/i-core-backend

Weekly Downloads

2

Version

0.1.7

License

MIT

Unpacked Size

2.68 MB

Total Files

25

Last publish

Collaborators

  • mprinc