Change package scopes from dxos to cerc-io

This commit is contained in:
nabarun 2022-12-02 18:55:51 +05:30
parent 195a1f23ff
commit c364eee562
8 changed files with 132 additions and 8913 deletions

View File

@ -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);
```

View 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"
}

View File

@ -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')) {

View File

@ -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

View File

@ -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",

View File

@ -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'));

View File

@ -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')) {

9013
yarn.lock

File diff suppressed because it is too large Load Diff