Refactor code to remove dxos and rename to laconic #5
@ -49,11 +49,10 @@ This creates the following folders:
|
||||
NOTE: GQL and Production files and exported and may be used by the server.
|
||||
|
||||
```javascript
|
||||
import QUERY_STATUS from '@dxos/console-client/gql/system_status.graphql';
|
||||
import config from '@dxos/console-client/config.json';
|
||||
import SYSTEM_STATUS from '@cerc-io/console-app/src/gql/system_status.graphql';
|
||||
|
||||
...
|
||||
|
||||
const file = path.join(__dirname + '../../../../node_modules/@dxos/console-client/dist/production', 'index.html');
|
||||
const file = path.join(__dirname + '../../../../node_modules/@cerc-io/console-app/dist/production', 'index.html');
|
||||
res.sendFile(file);
|
||||
```
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"build": {
|
||||
"name": "@dxos/console-app",
|
||||
"name": "@cerc-io/console-app",
|
||||
"buildDate": "2020-12-19T03:06:08.492Z",
|
||||
"version": "1.2.9-alpha.1"
|
||||
}
|
||||
|
@ -47,8 +47,8 @@ module.exports = {
|
||||
name (module) {
|
||||
const packageName = module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/)[1];
|
||||
|
||||
if (packageName.startsWith('@dxos')) {
|
||||
return 'dxos';
|
||||
if (packageName.startsWith('@cerc-io')) {
|
||||
return 'cerc-io';
|
||||
}
|
||||
|
||||
if (packageName.startsWith('@material-ui')) {
|
||||
|
@ -10,7 +10,7 @@ Use the following command to run the server at: http://localhost:9004
|
||||
yarn start
|
||||
```
|
||||
|
||||
To test the Console app, the `@dxos/console-app` must be built first:
|
||||
To test the Console app, the `@cerc-io/console-app` must be built first:
|
||||
|
||||
```bash
|
||||
cd ../console-app
|
||||
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "@dxos/console-server",
|
||||
"name": "@cerc-io/console-server",
|
||||
"version": "1.2.9",
|
||||
"description": "Kubenet Console Server",
|
||||
"main": "dist/es/index.js",
|
||||
"bin": {
|
||||
"dxos-console": "bin/console.js"
|
||||
"laconic-console": "bin/console.js"
|
||||
},
|
||||
"files": [
|
||||
"bin/",
|
||||
@ -20,7 +20,7 @@
|
||||
"test": "jest --rootDir ./src --passWithNoTests --no-cache",
|
||||
"start": "CONFIG_FILE=${CONFIG_FILE=./config.yml} BABEL_DISABLE_CACHE=1 nodemon --exec babel-node src/server/main.js -- --verbose"
|
||||
},
|
||||
"author": "DXOS.org",
|
||||
"author": "",
|
||||
"license": "GPL-3.0",
|
||||
"browserslist": [
|
||||
"> 5%"
|
||||
@ -31,8 +31,7 @@
|
||||
"dependencies": {
|
||||
"@babel/polyfill": "^7.8.7",
|
||||
"@babel/runtime": "^7.8.7",
|
||||
"@dxos/console-app": "^1.2.9",
|
||||
"@wirelineio/wns-schema": "^0.1.1",
|
||||
"@cerc-io/console-app": "^1.2.9",
|
||||
"apollo-boost": "^0.4.9",
|
||||
"apollo-server-express": "^2.13.1",
|
||||
"body-parser": "^1.19.0",
|
||||
|
@ -17,7 +17,7 @@ import yargs from 'yargs';
|
||||
// TODO(burdon): Use once published by @ashwinp.
|
||||
// import { extensions as WNS_EXTENSIONS, schema as WNS_SCHEMA } from '@wirelineio/wns-schema';
|
||||
|
||||
import SYSTEM_STATUS from '@dxos/console-app/src/gql/system_status.graphql';
|
||||
import SYSTEM_STATUS from '@cerc-io/console-app/src/gql/system_status.graphql';
|
||||
|
||||
import { resolvers } from '../resolvers';
|
||||
|
||||
@ -46,7 +46,7 @@ if (!configFile) {
|
||||
|
||||
const config = yaml.safeLoad(fs.readFileSync(configFile));
|
||||
|
||||
const log = debug('dxos:console:server');
|
||||
const log = debug('laconic:console:server');
|
||||
|
||||
debug.enable(config.system.debug);
|
||||
|
||||
@ -90,7 +90,7 @@ app.use(cors({
|
||||
//
|
||||
|
||||
const bundles = [
|
||||
'runtime', 'vendor', 'material-ui', 'dxos', 'main'
|
||||
'runtime', 'vendor', 'material-ui', 'cerc-io', 'main'
|
||||
];
|
||||
|
||||
app.use(`${publicUrl}/lib`, express.static('./dist/client'));
|
||||
|
@ -47,8 +47,8 @@ module.exports = {
|
||||
name (module) {
|
||||
const packageName = module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/)[1];
|
||||
|
||||
if (packageName.startsWith('@dxos')) {
|
||||
return 'dxos';
|
||||
if (packageName.startsWith('@cerc-io')) {
|
||||
return 'cerc-io';
|
||||
}
|
||||
|
||||
if (packageName.startsWith('@material-ui')) {
|
||||
|
Loading…
Reference in New Issue
Block a user