lincd-cli 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/defaults/app-with-backend/babel.config.js +1 -1
- package/defaults/app-with-backend/frontend/src/backend.ts +1 -0
- package/defaults/app-with-backend/frontend/src/index.tsx +2 -2
- package/defaults/app-with-backend/lincd.config.js +1 -1
- package/defaults/app-with-backend/package.json +1 -0
- package/defaults/app-with-backend/tsconfig.json +2 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
presets: ['@babel/preset-env', ['@babel/preset-react', {runtime: 'automatic'}], '@babel/preset-typescript'],
|
|
3
|
-
plugins: ['@babel/plugin-transform-runtime'],
|
|
3
|
+
plugins: ['@babel/plugin-transform-runtime',['@babel/plugin-proposal-decorators',{legacy:true}]],
|
|
4
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//import all ShapeProviders here or define a generic BackendProvider, see documentation on https://docs.lincd.org
|
|
@@ -6,10 +6,10 @@ import {BrowserRouter} from 'react-router-dom';
|
|
|
6
6
|
import App from './App';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import {Storage} from 'lincd/lib/utils/Storage';
|
|
9
|
-
import {
|
|
9
|
+
import {BackendFileStore} from 'lincd-server/lib/shapes/BackendFileStore';
|
|
10
10
|
|
|
11
11
|
//store all quads in a file on the backend named 'main'
|
|
12
|
-
export const store = new
|
|
12
|
+
export const store = new BackendFileStore('main');
|
|
13
13
|
Storage.setDefaultStore(store);
|
|
14
14
|
|
|
15
15
|
hydrateRoot(
|