@colabo-headless/i-core-backend
v0.1.7
Published
Core package for isomorphic puzzles. Supports node.js backend environment
Downloads
3
Readme
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/[email protected]"
}
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"
}