Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"homepage": "https://design-web.uk",
"private": true,
"dependencies": {
"@design-core/core": "^0.0.4",
"@design-core/core": "^0.0.5",
"file-saver": "^2.0.5",
"react": "^19.2.4",
"react-dom": "^19.2.4",
Expand All @@ -16,7 +16,9 @@
"start": "REACT_APP_GIT_COMMIT=$(git rev-parse --short HEAD) REACT_APP_CORE_VERSION=$(node -p \"require('./node_modules/@design-core/core/package.json').version\") react-scripts start",
"build": "REACT_APP_GIT_COMMIT=$(git rev-parse --short HEAD) REACT_APP_CORE_VERSION=$(node -p \"require('./node_modules/@design-core/core/package.json').version\") react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"link-core": "(cd ../Design/src/Design-Core && sudo npm link) && npm link @design-core/core",
"unlink-core": "npm unlink @design-core/core && npm install"
},
"eslintConfig": {
"extends": [
Expand Down
4 changes: 4 additions & 0 deletions src/js/DesignWeb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import React, { Component } from 'react';
// import core from npm package
import {Core} from '@design-core/core';

// package and test core locally via npm link:
// npm run link-core — links local Design-Core into this project
// npm run unlink-core — restores the published npm package

// use local core for development
//import {Core} from '../js/Design-Core/core/core/core.js';

Expand Down
Loading