Setup remixd build

pull/454/head
ioedeveloper 4 years ago
parent aa88a3edbc
commit f304be05a0
  1. 1
      apps/remix-ide-e2e/seleniumConfig.js
  2. 0
      libs/remixd/.eslintrc
  3. 14
      libs/remixd/jest.config.js
  4. 2
      libs/remixd/src/websocket.ts
  5. 22
      libs/remixd/tsconfig.json
  6. 11
      libs/remixd/tsconfig.lib.json
  7. 14
      libs/remixd/tsconfig.spec.json
  8. 3
      nx.json
  9. 1973
      package-lock.json
  10. 23
      package.json
  11. 40
      workspace.json

@ -1,3 +1,4 @@
/* eslint-disable */
module.exports = { module.exports = {
version: '3.8.1', version: '3.8.1',
baseURL: 'https://selenium-release.storage.googleapis.com', baseURL: 'https://selenium-release.storage.googleapis.com',

@ -0,0 +1,14 @@
/* eslint-disable */
module.exports = {
name: 'remixd',
preset: '../../../jest.config.js',
transform: {
'^.+\\.[tj]sx?$': [
'babel-jest',
{ cwd: __dirname, configFile: './babel-jest.config.json' }
]
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../../coverage/libs/remixd'
}

@ -8,7 +8,6 @@ const { createClient } = require('@remixproject/plugin-ws')
export default class WebSocket { export default class WebSocket {
server: http.Server server: http.Server
wsServer: WS.Server wsServer: WS.Server
connection: WS
constructor (public port: number, public opt: WebsocketOpt, public sharedFolder: SharedFolderClient) {} constructor (public port: number, public opt: WebsocketOpt, public sharedFolder: SharedFolderClient) {}
@ -37,7 +36,6 @@ export default class WebSocket {
this.wsServer.on('connection', (ws) => { this.wsServer.on('connection', (ws) => {
const { sharedFolder } = this const { sharedFolder } = this
this.connection = ws
createClient(ws, sharedFolder) createClient(ws, sharedFolder)
if(callback) callback(ws) if(callback) callback(ws)
}) })

@ -1,17 +1,9 @@
{ {
"compilerOptions": { "extends": "../../tsconfig.json",
/* Basic Options */ "compilerOptions": {
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "types": ["node"],
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs",
"declaration": true, /* Generates corresponding '.d.ts' file. */ "esModuleInterop": true
"outDir": "./lib", },
"strict": true, /* Enable all strict type-checking options. */ "include": ["**/*.ts"]
"strictPropertyInitialization": false, /* Enable strict checking of property initialization in classes. */
/* Experimental Options */
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"skipLibCheck": true,
"resolveJsonModule": true
},
"include": ["bin", "src", "bin/origins.json"]
} }

@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
/* Basic Options */
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"strict": true, /* Enable all strict type-checking options. */
"strictPropertyInitialization": false /* Enable strict checking of property initialization in classes. */
},
"include": ["bin", "src", "bin/origins.json"]
}

@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": [
"**/*.spec.ts",
"**/*.spec.js",
"**/*.d.ts"
]
}

@ -63,6 +63,9 @@
"remix-ide-e2e": { "remix-ide-e2e": {
"tags": [], "tags": [],
"implicitDependencies": ["remix-ide"] "implicitDependencies": ["remix-ide"]
},
"remixd": {
"tags": []
} }
} }
} }

1973
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -140,7 +140,17 @@
"npm-install-version": "^6.0.2", "npm-install-version": "^6.0.2",
"signale": "^1.4.0", "signale": "^1.4.0",
"time-stamp": "^2.2.0", "time-stamp": "^2.2.0",
"winston": "^3.3.3" "winston": "^3.3.3",
"@remixproject/plugin": "0.3.0-beta.5",
"@remixproject/plugin-api": "0.3.0-beta.5",
"@remixproject/plugin-utils": "0.3.0-beta.5",
"@remixproject/plugin-ws": "^0.3.0-beta.8",
"axios": "^0.20.0",
"chokidar": "^2.1.8",
"commander": "^2.20.3",
"fs-extra": "^3.0.1",
"isbinaryfile": "^3.0.2",
"ws": "^7.3.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.4.5", "@babel/core": "^7.4.5",
@ -251,6 +261,15 @@
"webworkify-webpack": "^2.1.5", "webworkify-webpack": "^2.1.5",
"worker-loader": "^2.0.0", "worker-loader": "^2.0.0",
"yo-yo": "github:ioedeveloper/yo-yo", "yo-yo": "github:ioedeveloper/yo-yo",
"yo-yoify": "^3.7.3" "yo-yoify": "^3.7.3",
"@types/axios": "^0.14.0",
"@types/fs-extra": "^9.0.1",
"@types/ws": "^7.2.4",
"eslint-config-standard": "14.1.1",
"eslint-plugin-import": "2.20.2",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"nodemon": "^2.0.4"
} }
} }

@ -446,6 +446,46 @@
} }
} }
} }
},
"remixd": {
"root": "libs/remixd",
"sourceRoot": "libs/remixd/src/",
"projectType": "library",
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"config": "libs/remixd/.eslintrc",
"tsConfig": [
"libs/remixd/tsconfig.lib.json"
],
"files": [
"libs/remixd/src/**/*.ts",
"libs/remixd/bin/**/*.ts"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/remixd/jest.config.js",
"tsConfig": "libs/remixd/tsconfig.spec.json",
"passWithNoTests": true
}
},
"build": {
"builder": "@nrwl/node:package",
"options": {
"outputPath": "dist/libs/remixd",
"tsConfig": "libs/remixd/tsconfig.lib.json",
"packageJson": "libs/remixd/package.json",
"main": "libs/remixd/src/index.ts",
"assets": ["libs/remixd/*.md"]
}
}
}
} }
}, },
"cli": { "cli": {

Loading…
Cancel
Save