From 63503d4b2705b03a3cfb4b5f55bb57b11022283e Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Mon, 13 Jul 2020 10:21:46 +0100 Subject: [PATCH] Use local remix libs --- .env | 3 + .gitignore | 40 +++ apps/remix-ide/.gitignore | 45 +--- apps/remix-ide/src/app.js | 2 +- .../src/app/compiler/compiler-abstract.js | 2 +- ...compiler-sourceVerifier-fetchAndCompile.js | 2 +- apps/remix-ide/src/app/editor/contextView.js | 2 +- .../src/app/editor/contextualListener.js | 2 +- apps/remix-ide/src/app/files/fileProvider.js | 2 +- .../src/app/tabs/compileTab/compileTab.js | 2 +- .../src/app/tabs/compileTab/contractParser.js | 2 +- apps/remix-ide/src/app/tabs/debugger-tab.js | 2 +- .../src/app/tabs/debugger/debuggerUI.js | 2 +- .../src/app/tabs/runTab/contractDropdown.js | 2 +- .../app/tabs/runTab/model/dropdownlogic.js | 2 +- .../src/app/tabs/runTab/model/recorder.js | 2 +- .../remix-ide/src/app/tabs/runTab/recorder.js | 2 +- .../remix-ide/src/app/tabs/runTab/settings.js | 2 +- .../tabs/staticanalysis/staticAnalysisView.js | 2 +- apps/remix-ide/src/app/tabs/test-tab.js | 2 +- apps/remix-ide/src/app/udapp/make-udapp.js | 2 +- .../src/app/ui/auto-complete-popup.js | 2 +- .../remix-ide/src/app/ui/multiParamManager.js | 2 +- apps/remix-ide/src/app/ui/sendTxCallbacks.js | 2 +- apps/remix-ide/src/app/ui/txLogger.js | 2 +- .../remix-ide/src/app/ui/universal-dapp-ui.js | 2 +- apps/remix-ide/src/blockchain/blockchain.js | 2 +- apps/remix-ide/src/lib/cmdInterpreterAPI.js | 2 +- apps/remix-ide/src/lib/events.js | 2 +- .../src/lib/offsetToLineColumnConverter.js | 2 +- apps/remix-ide/src/migrateFileSystem.js | 2 +- package.json | 254 ++++++++++++++++++ tsconfig.json | 2 +- 33 files changed, 336 insertions(+), 64 deletions(-) create mode 100644 .env create mode 100644 .gitignore create mode 100644 package.json diff --git a/.env b/.env new file mode 100644 index 0000000000..167a819bb5 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +gist_token = +account_passphrase = +account_password = diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..71991311a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,40 @@ + +# See http://help.github.com/ignore-files/ for more about ignoring files. + +# compiled output +/dist +/tmp +/out-tsc + +# dependencies +/node_modules + +# IDEs and editors +/.idea +.project +.classpath +.c9/ +*.launch +.settings/ +*.sublime-workspace + +# IDE - VSCode +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +# misc +/.sass-cache +/connect.lock +/coverage +/libpeerconnection.log +npm-debug.log +yarn-error.log +testem.log +/typings + +# System Files +.DS_Store +Thumbs.db \ No newline at end of file diff --git a/apps/remix-ide/.gitignore b/apps/remix-ide/.gitignore index 5668ec15a0..0c5008d629 100644 --- a/apps/remix-ide/.gitignore +++ b/apps/remix-ide/.gitignore @@ -1,41 +1,16 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. -# compiled output -/dist -/tmp -/out-tsc - -# dependencies -/node_modules - -# IDEs and editors -/.idea -.project -.classpath -.c9/ -*.launch -.settings/ -*.sublime-workspace - -# IDE - VSCode -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json - -# misc -/.sass-cache -/connect.lock -/coverage -/libpeerconnection.log -npm-debug.log -yarn-error.log -testem.log -/typings - -# System Files +.idea +.vscode +build +node_modules +docs/_build +reports +soljson.js +soljson.js.* +npm-debug.log* +remix .DS_Store contracts TODO diff --git a/apps/remix-ide/src/app.js b/apps/remix-ide/src/app.js index bd72162d05..69453101be 100644 --- a/apps/remix-ide/src/app.js +++ b/apps/remix-ide/src/app.js @@ -3,7 +3,7 @@ var isElectron = require('is-electron') var csjs = require('csjs-inject') var yo = require('yo-yo') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var registry = require('./global/registry') var loadFileFromParent = require('./loadFilesFromParent') var { OffsetToLineColumnConverter } = require('./lib/offsetToLineColumnConverter') diff --git a/apps/remix-ide/src/app/compiler/compiler-abstract.js b/apps/remix-ide/src/app/compiler/compiler-abstract.js index 1e18ec1470..fcfb32a827 100644 --- a/apps/remix-ide/src/app/compiler/compiler-abstract.js +++ b/apps/remix-ide/src/app/compiler/compiler-abstract.js @@ -1,5 +1,5 @@ 'use strict' -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var txHelper = remixLib.execution.txHelper module.exports = class CompilerAbstract { diff --git a/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js b/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js index d608a8d061..9d8fec7e10 100644 --- a/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js +++ b/apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js @@ -4,7 +4,7 @@ import { Plugin } from '@remixproject/engine' import { compile } from './compiler-helpers' import globalRegistry from '../../global/registry' -import remixLib from 'remix-lib' +import remixLib from '@remix-project/remix-lib' const profile = { name: 'fetchAndCompile', diff --git a/apps/remix-ide/src/app/editor/contextView.js b/apps/remix-ide/src/app/editor/contextView.js index 97f1281216..9ec89edc1e 100644 --- a/apps/remix-ide/src/app/editor/contextView.js +++ b/apps/remix-ide/src/app/editor/contextView.js @@ -1,6 +1,6 @@ 'use strict' const yo = require('yo-yo') -const remixLib = require('remix-lib') +const remixLib = require('@remix-project/remix-lib') const SourceMappingDecoder = remixLib.SourceMappingDecoder const globalRegistry = require('../../global/registry') diff --git a/apps/remix-ide/src/app/editor/contextualListener.js b/apps/remix-ide/src/app/editor/contextualListener.js index 99b492316f..f30018143a 100644 --- a/apps/remix-ide/src/app/editor/contextualListener.js +++ b/apps/remix-ide/src/app/editor/contextualListener.js @@ -1,5 +1,5 @@ 'use strict' -const remixLib = require('remix-lib') +const remixLib = require('@remix-project/remix-lib') const csjs = require('csjs-inject') const SourceMappingDecoder = remixLib.SourceMappingDecoder const AstWalker = remixLib.AstWalker diff --git a/apps/remix-ide/src/app/files/fileProvider.js b/apps/remix-ide/src/app/files/fileProvider.js index ac6d1887b4..4fd00db6d4 100644 --- a/apps/remix-ide/src/app/files/fileProvider.js +++ b/apps/remix-ide/src/app/files/fileProvider.js @@ -4,7 +4,7 @@ const CompilerImport = require('../compiler/compiler-imports') const EventManager = require('../../lib/events') const modalDialogCustom = require('../ui/modal-dialog-custom') const tooltip = require('../ui/tooltip') -const remixLib = require('remix-lib') +const remixLib = require('@remix-project/remix-lib') const Storage = remixLib.Storage class FileProvider { diff --git a/apps/remix-ide/src/app/tabs/compileTab/compileTab.js b/apps/remix-ide/src/app/tabs/compileTab/compileTab.js index 8f1e921ece..c4d2965c4d 100644 --- a/apps/remix-ide/src/app/tabs/compileTab/compileTab.js +++ b/apps/remix-ide/src/app/tabs/compileTab/compileTab.js @@ -1,6 +1,6 @@ const async = require('async') const EventEmitter = require('events') -var remixTests = require('remix-tests') +var remixTests = require('@remix-project/remix-tests') var Compiler = require('@remix-project/remix-solidity').Compiler var CompilerImport = require('../../compiler/compiler-imports') diff --git a/apps/remix-ide/src/app/tabs/compileTab/contractParser.js b/apps/remix-ide/src/app/tabs/compileTab/contractParser.js index de9abb5c34..90ae785d82 100644 --- a/apps/remix-ide/src/app/tabs/compileTab/contractParser.js +++ b/apps/remix-ide/src/app/tabs/compileTab/contractParser.js @@ -1,7 +1,7 @@ 'use strict' var solcTranslate = require('solc/translate') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var txHelper = remixLib.execution.txHelper module.exports = (contractName, contract, compiledSource) => { diff --git a/apps/remix-ide/src/app/tabs/debugger-tab.js b/apps/remix-ide/src/app/tabs/debugger-tab.js index cc9af0b74d..65b1322b8a 100644 --- a/apps/remix-ide/src/app/tabs/debugger-tab.js +++ b/apps/remix-ide/src/app/tabs/debugger-tab.js @@ -1,5 +1,5 @@ const yo = require('yo-yo') -const remixLib = require('remix-lib') +const remixLib = require('@remix-project/remix-lib') const css = require('./styles/debugger-tab-styles') import toaster from '../ui/tooltip' const DebuggerUI = require('./debugger/debuggerUI') diff --git a/apps/remix-ide/src/app/tabs/debugger/debuggerUI.js b/apps/remix-ide/src/app/tabs/debugger/debuggerUI.js index 12398250e4..a6ff96494c 100644 --- a/apps/remix-ide/src/app/tabs/debugger/debuggerUI.js +++ b/apps/remix-ide/src/app/tabs/debugger/debuggerUI.js @@ -11,7 +11,7 @@ var EventManager = require('../../../lib/events') var globalRegistry = require('../../../global/registry') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var init = remixLib.init diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index 5135854478..925719ea44 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js @@ -1,7 +1,7 @@ var yo = require('yo-yo') var css = require('../styles/run-tab-styles') var modalDialogCustom = require('../../ui/modal-dialog-custom') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var EventManager = remixLib.EventManager var confirmDialog = require('../../ui/confirmDialog') var modalDialog = require('../../ui/modaldialog') diff --git a/apps/remix-ide/src/app/tabs/runTab/model/dropdownlogic.js b/apps/remix-ide/src/app/tabs/runTab/model/dropdownlogic.js index 0a42977a40..a5a22c2ae2 100644 --- a/apps/remix-ide/src/app/tabs/runTab/model/dropdownlogic.js +++ b/apps/remix-ide/src/app/tabs/runTab/model/dropdownlogic.js @@ -1,5 +1,5 @@ var ethJSUtil = require('ethereumjs-util') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var txHelper = remixLib.execution.txHelper var CompilerAbstract = require('../../../compiler/compiler-abstract') var EventManager = remixLib.EventManager diff --git a/apps/remix-ide/src/app/tabs/runTab/model/recorder.js b/apps/remix-ide/src/app/tabs/runTab/model/recorder.js index 1308483adc..ea2333bc9c 100644 --- a/apps/remix-ide/src/app/tabs/runTab/model/recorder.js +++ b/apps/remix-ide/src/app/tabs/runTab/model/recorder.js @@ -1,6 +1,6 @@ var async = require('async') var ethutil = require('ethereumjs-util') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var EventManager = remixLib.EventManager var format = remixLib.execution.txFormat var txHelper = remixLib.execution.txHelper diff --git a/apps/remix-ide/src/app/tabs/runTab/recorder.js b/apps/remix-ide/src/app/tabs/runTab/recorder.js index ba7da014e3..7fa784da6b 100644 --- a/apps/remix-ide/src/app/tabs/runTab/recorder.js +++ b/apps/remix-ide/src/app/tabs/runTab/recorder.js @@ -1,5 +1,5 @@ var yo = require('yo-yo') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var EventManager = remixLib.EventManager var csjs = require('csjs-inject') var css = require('../styles/run-tab-styles') diff --git a/apps/remix-ide/src/app/tabs/runTab/settings.js b/apps/remix-ide/src/app/tabs/runTab/settings.js index 30333f8755..692828e25e 100644 --- a/apps/remix-ide/src/app/tabs/runTab/settings.js +++ b/apps/remix-ide/src/app/tabs/runTab/settings.js @@ -1,6 +1,6 @@ const $ = require('jquery') const yo = require('yo-yo') -const remixLib = require('remix-lib') +const remixLib = require('@remix-project/remix-lib') const EventManager = remixLib.EventManager const css = require('../styles/run-tab-styles') const copyToClipboard = require('../../ui/copy-to-clipboard') diff --git a/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js b/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js index e21b03c0f5..7a411f3a10 100644 --- a/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js +++ b/apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js @@ -2,7 +2,7 @@ var StaticAnalysisRunner = require('remix-analyzer').CodeAnalysis var yo = require('yo-yo') var $ = require('jquery') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var utils = remixLib.util var css = require('./styles/staticAnalysisView-styles') var Renderer = require('../../ui/renderer') diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index 96c24a2b97..4e8e32e055 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -2,7 +2,7 @@ var yo = require('yo-yo') var async = require('async') var tooltip = require('../ui/tooltip') var css = require('./styles/test-tab-styles') -var remixTests = require('remix-tests') +var remixTests = require('@remix-project/remix-tests') import { ViewPlugin } from '@remixproject/engine' import { canUseWorker, urlFromVersion } from '../compiler/compiler-utils' diff --git a/apps/remix-ide/src/app/udapp/make-udapp.js b/apps/remix-ide/src/app/udapp/make-udapp.js index a5d3176edc..b7f8dff5b2 100644 --- a/apps/remix-ide/src/app/udapp/make-udapp.js +++ b/apps/remix-ide/src/app/udapp/make-udapp.js @@ -1,5 +1,5 @@ var registry = require('../../global/registry') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var yo = require('yo-yo') var EventsDecoder = remixLib.execution.EventsDecoder var TransactionReceiptResolver = require('../../lib/transactionReceiptResolver') diff --git a/apps/remix-ide/src/app/ui/auto-complete-popup.js b/apps/remix-ide/src/app/ui/auto-complete-popup.js index 9a472c503d..92445bc30c 100644 --- a/apps/remix-ide/src/app/ui/auto-complete-popup.js +++ b/apps/remix-ide/src/app/ui/auto-complete-popup.js @@ -1,5 +1,5 @@ var yo = require('yo-yo') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var EventManager = remixLib.EventManager var Commands = require('../../lib/commands') diff --git a/apps/remix-ide/src/app/ui/multiParamManager.js b/apps/remix-ide/src/app/ui/multiParamManager.js index 3fb87ec011..221578add8 100644 --- a/apps/remix-ide/src/app/ui/multiParamManager.js +++ b/apps/remix-ide/src/app/ui/multiParamManager.js @@ -3,7 +3,7 @@ var yo = require('yo-yo') var css = require('../../universal-dapp-styles') var copyToClipboard = require('./copy-to-clipboard') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var txFormat = remixLib.execution.txFormat class MultiParamManager { diff --git a/apps/remix-ide/src/app/ui/sendTxCallbacks.js b/apps/remix-ide/src/app/ui/sendTxCallbacks.js index b531ad20c0..9f30937c95 100644 --- a/apps/remix-ide/src/app/ui/sendTxCallbacks.js +++ b/apps/remix-ide/src/app/ui/sendTxCallbacks.js @@ -1,5 +1,5 @@ const yo = require('yo-yo') -const remixLib = require('remix-lib') +const remixLib = require('@remix-project/remix-lib') const confirmDialog = require('./confirmDialog') const modalCustom = require('./modal-dialog-custom') const modalDialog = require('./modaldialog') diff --git a/apps/remix-ide/src/app/ui/txLogger.js b/apps/remix-ide/src/app/ui/txLogger.js index 3af548f78a..bcb8fb8427 100644 --- a/apps/remix-ide/src/app/ui/txLogger.js +++ b/apps/remix-ide/src/app/ui/txLogger.js @@ -4,7 +4,7 @@ var copyToClipboard = require('./copy-to-clipboard') // -------------- styling ---------------------- var csjs = require('csjs-inject') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var EventManager = require('../../lib/events') var helper = require('../../lib/helper') diff --git a/apps/remix-ide/src/app/ui/universal-dapp-ui.js b/apps/remix-ide/src/app/ui/universal-dapp-ui.js index c56f6f4650..ca4cc28482 100644 --- a/apps/remix-ide/src/app/ui/universal-dapp-ui.js +++ b/apps/remix-ide/src/app/ui/universal-dapp-ui.js @@ -9,7 +9,7 @@ var helper = require('../../lib/helper') var copyToClipboard = require('./copy-to-clipboard') var css = require('../../universal-dapp-styles') var MultiParamManager = require('./multiParamManager') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var txFormat = remixLib.execution.txFormat const txHelper = remixLib.execution.txHelper var TreeView = require('./TreeView') diff --git a/apps/remix-ide/src/blockchain/blockchain.js b/apps/remix-ide/src/blockchain/blockchain.js index 7e71f57000..81b4a37c3c 100644 --- a/apps/remix-ide/src/blockchain/blockchain.js +++ b/apps/remix-ide/src/blockchain/blockchain.js @@ -1,4 +1,4 @@ -const remixLib = require('remix-lib') +const remixLib = require('@remix-project/remix-lib') const txFormat = remixLib.execution.txFormat const txExecution = remixLib.execution.txExecution const typeConversion = remixLib.execution.typeConversion diff --git a/apps/remix-ide/src/lib/cmdInterpreterAPI.js b/apps/remix-ide/src/lib/cmdInterpreterAPI.js index 290e40d573..c4f1ddc451 100644 --- a/apps/remix-ide/src/lib/cmdInterpreterAPI.js +++ b/apps/remix-ide/src/lib/cmdInterpreterAPI.js @@ -1,7 +1,7 @@ 'use strict' var yo = require('yo-yo') var async = require('async') -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var EventManager = require('../lib/events') var CompilerImport = require('../app/compiler/compiler-imports') diff --git a/apps/remix-ide/src/lib/events.js b/apps/remix-ide/src/lib/events.js index 882da1893a..b5c723e220 100644 --- a/apps/remix-ide/src/lib/events.js +++ b/apps/remix-ide/src/lib/events.js @@ -1,4 +1,4 @@ -var remixLib = require('remix-lib') +var remixLib = require('@remix-project/remix-lib') var EventManager = remixLib.EventManager module.exports = EventManager diff --git a/apps/remix-ide/src/lib/offsetToLineColumnConverter.js b/apps/remix-ide/src/lib/offsetToLineColumnConverter.js index ed76c7c3b9..001dcbcbe2 100644 --- a/apps/remix-ide/src/lib/offsetToLineColumnConverter.js +++ b/apps/remix-ide/src/lib/offsetToLineColumnConverter.js @@ -1,5 +1,5 @@ 'use strict' -var SourceMappingDecoder = require('remix-lib').SourceMappingDecoder +var SourceMappingDecoder = require('@remix-project/remix-lib').SourceMappingDecoder import { Plugin } from '@remixproject/engine' import * as packageJson from '../../package.json' diff --git a/apps/remix-ide/src/migrateFileSystem.js b/apps/remix-ide/src/migrateFileSystem.js index 4e3cee7dcc..401b0ad0a2 100644 --- a/apps/remix-ide/src/migrateFileSystem.js +++ b/apps/remix-ide/src/migrateFileSystem.js @@ -1,5 +1,5 @@ -import { Storage } from 'remix-lib' +import { Storage } from '@remix-project/remix-lib' /* Migrating the files to the BrowserFS storage instead or raw localstorage diff --git a/package.json b/package.json new file mode 100644 index 0000000000..1167f3c568 --- /dev/null +++ b/package.json @@ -0,0 +1,254 @@ +{ + "name": "remix-project", + "version": "0.0.0", + "license": "MIT", + "description": "Ethereum Remix Monorepo", + "keywords": [ + "ethereum", + "solidity", + "compiler" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/ethereum/remix-project.git" + }, + "author": "@yann300", + "bugs": { + "url": "https://github.com/ethereum/remix-project/issues" + }, + "homepage": "https://github.com/ethereum/remix-project#readme", + "bin": { + "remix-ide": "./apps/remix-ide/bin/remix-ide" + }, + "scripts": { + "nx": "nx", + "start": "nx start", + "serve": "nx serve", + "build": "nx build", + "build:libs": "nx run-many --target=build --parallel=false --with-deps=true --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver", + "test": "nx test", + "test:libs": "nx run-many --target=test --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver", + "lint": "nx lint", + "lint:libs": "nx run-many --target=lint --projects=remix-analyzer,remix-astwalker,remix-debug,remix-lib,remix-simulator,remix-solidity,remix-tests,remix-url-resolver", + "e2e": "nx e2e", + "affected:apps": "nx affected:apps", + "affected:libs": "nx affected:libs", + "affected:build": "nx affected:build", + "affected:e2e": "nx affected:e2e", + "affected:test": "nx affected:test", + "affected:lint": "nx affected:lint", + "affected:dep-graph": "nx affected:dep-graph", + "affected": "nx affected", + "format": "nx format:write", + "format:write": "nx format:write", + "format:check": "nx format:check", + "update": "nx migrate latest", + "workspace-schematic": "nx workspace-schematic", + "dep-graph": "nx dep-graph", + "help": "nx help", + "setupremix": "npm run linkremixdebug && npm run linkremixlib && npm run linkremixsolidity && npm run linkremixanalyzer && npm run linkremixtests && npm run linkremixsimulator", + "pullremix": "git clone https://github.com/ethereum/remix", + "linkremixlib": "cd node_modules && rm -rf remix-lib && ln -s ../../remix/remix-lib remix-lib && cd ..", + "linkremixsolidity": "cd node_modules && rm -rf remix-solidity && ln -s ../../remix/remix-solidity remix-solidity && cd ..", + "linkremixtests": "cd node_modules && rm -rf remix-tests && ln -s ../../remix/remix-tests remix-tests && cd ..", + "linkremixdebug": "cd node_modules && rm -rf remix-debug && ln -s ../../remix/remix-debug remix-debug && cd ..", + "linkremixanalyzer": "cd node_modules && rm -rf remix-analyzer && ln -s ../../remix/remix-analyzer remix-analyzer && cd ..", + "linkremixsimulator": "cd node_modules && rm -rf remix-simulator && ln -s ../../remix/remix-simulator remix-simulator && cd ..", + "build_debugger": "browserify apps/remix-ide/src/app/debugger/remix-debugger/index.js -o apps/remix-ide/src/app/debugger/remix-debugger/build/app.js", + "browsertest": "sleep 5 && npm run nightwatch_local", + "csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='apps/remix-ide/assets/css/font-awesome.min.css' apps/remix-ide/assets/css/", + "downloadsolc_root": "wget --no-check-certificate https://solc-bin.ethereum.org/bin/soljson-v0.6.6+commit.6c089d02.js -O soljson.js", + "make-mock-compiler": "node apps/remix-ide/ci/makeMockCompiler.js", + "minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false", + "nightwatch_parallel": "nightwatch -e chrome,firefox --config apps/remix-ide/nightwatch.js", + "nightwatch_local_firefox": "nightwatch --config apps/remix-ide/nightwatch.js --env firefox", + "nightwatch_local_chrome": "nightwatch --config apps/remix-ide/nightwatch.js --env chrome", + "nightwatch_local_ballot": "nightwatch ./apps/remix-ide/test-browser/tests/ballot.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_libraryDeployment": "nightwatch ./apps/remix-ide/test-browser/tests/libraryDeployment.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_solidityImport": "nightwatch ./apps/remix-ide/test-browser/tests/solidityImport.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_recorder": "nightwatch ./apps/remix-ide/test-browser/tests/recorder.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_transactionExecution": "nightwatch ./apps/remix-ide/test-browser/tests/transactionExecution.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_staticAnalysis": "nightwatch ./apps/remix-ide/test-browser/tests/staticAnalysis.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_signingMessage": "nightwatch ./apps/remix-ide/test-browser/tests/signingMessage.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_specialFunctions": "nightwatch ./apps/remix-ide/test-browser/tests/specialFunctions.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_solidityUnitTests": "nightwatch ./apps/remix-ide/test-browser/tests/solidityUnittests.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_remixd": "nightwatch ./apps/remix-ide/test-browser/tests/remixd.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_terminal": "nightwatch ./apps/remix-ide/test-browser/tests/terminal.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_gist": "nightwatch ./apps/remix-ide/test-browser/tests/gist.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_workspace": "nightwatch ./apps/remix-ide/test-browser/tests/workspace.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_defaultLayout": "nightwatch ./apps/remix-ide/test-browser/tests/defaultLayout.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_pluginManager": "nightwatch ./apps/remix-ide/test-browser/tests/pluginManager.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_publishContract": "nightwatch ./apps/remix-ide/test-browser/tests/publishContract.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_generalSettings": "nightwatch ./apps/remix-ide/test-browser/tests/generalSettings.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_fileExplorer": "nightwatch ./apps/remix-ide/test-browser/tests/fileExplorer.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_debugger": "nightwatch ./apps/remix-ide/test-browser/tests/debugger.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_editor": "nightwatch ./apps/remix-ide/test-browser/tests/editor.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_runAndDeploy": "nightwatch ./apps/remix-ide/test-browser/tests/runAndDeploy.js --config apps/remix-ide/nightwatch.js --env chrome-runAndDeploy ", + "onchange": "onchange apps/remix-ide/build/app.js -- npm-run-all lint", + "prepublish": "mkdirp build; npm-run-all -ls downloadsolc_root build", + "remixd": "remixd -s ./apps/remix-ide/contracts --remix-ide http://127.0.0.1:4200", + "selenium": "selenium-standalone start", + "selenium-install": "selenium-standalone install", + "sourcemap": "exorcist --root ../ apps/remix-ide/build/app.js.map > apps/remix-ide/build/app.js", + "test-browser": "npm-run-all -lpr selenium downloadsolc_root make-mock-compiler serve browsertest", + "watch": "watchify apps/remix-ide/src/index.js -dv -p browserify-reload -o apps/remix-ide/build/app.js --exclude solc", + "reinstall": "rm ./node-modules/ -rf; rm package-lock.json; rm ./build/ -rf; npm install; npm run build", + "ganache-cli": "npx ganache-cli" + }, + "browserify": { + "transform": [ + [ + "babelify", + { + "sourceMapsAbsolute": false, + "sourceMaps": true, + "plugins": [ + [ + "module:fast-async", + { + "runtimePattern": null, + "compiler": { + "es7": true, + "noRuntime": true, + "promises": true, + "wrapAwait": true + } + } + ], + [ + "module:babel-plugin-yo-yoify" + ], + [ + "module:@babel/plugin-transform-object-assign" + ] + ], + "presets": [ + "@babel/preset-env" + ] + } + ] + ] + }, + "dependencies": { + "@remixproject/engine": "^0.2.3", + "@types/tape": "^4.2.33", + "ansi-gray": "^0.1.1", + "change-case": "^4.1.1", + "color-support": "^1.1.3", + "ethereumjs-block": "^2.2.2", + "ethereumjs-tx": "^2.1.2", + "ethereumjs-vm": "4.1.3", + "http-server": "^0.11.1", + "npm-install-version": "^6.0.2", + "time-stamp": "^2.2.0", + "winston": "^3.3.3" + }, + "devDependencies": { + "@babel/core": "^7.4.5", + "@babel/plugin-transform-modules-amd": "^7.10.4", + "@babel/plugin-transform-modules-commonjs": "^7.10.4", + "@babel/plugin-transform-object-assign": "^7.2.0", + "@babel/plugin-transform-runtime": "^7.10.4", + "@babel/polyfill": "^7.4.4", + "@babel/preset-env": "^7.10.4", + "@babel/preset-es2015": "^7.0.0-beta.53", + "@babel/preset-es2017": "latest", + "@babel/preset-stage-0": "^7.0.0", + "@babel/register": "^7.4.4", + "@fortawesome/fontawesome-free": "^5.8.1", + "@nrwl/cypress": "9.2.4", + "@nrwl/eslint-plugin-nx": "^9.4.4", + "@nrwl/jest": "9.4.5", + "@nrwl/linter": "^9.3.0", + "@nrwl/node": "^9.4.5", + "@nrwl/react": "9.2.4", + "@nrwl/web": "9.2.4", + "@nrwl/workspace": "9.2.4", + "@resolver-engine/imports": "^0.3.0", + "@types/chai": "^4.2.11", + "@types/mocha": "^7.0.2", + "@types/node": "~8.9.4", + "@types/react": "16.9.17", + "@types/react-dom": "16.9.4", + "@types/react-router-dom": "5.1.3", + "@typescript-eslint/eslint-plugin": "^3.3.0", + "@typescript-eslint/parser": "^3.3.0", + "ace-mode-move": "0.0.1", + "ace-mode-solidity": "^0.1.0", + "ace-mode-zokrates": "^1.0.0", + "async": "^2.1.2", + "babel-eslint": "^10.0.0", + "babel-plugin-add-module-exports": "^1.0.2", + "babel-plugin-fast-async": "^6.1.2", + "babel-plugin-module-resolver": "^4.0.0", + "babel-plugin-transform-object-rest-spread": "^6.26.0", + "babel-plugin-yo-yoify": "^2.0.0", + "babel-preset-env": "^1.7.0", + "babel-preset-typescript": "^7.0.0-alpha.19", + "babelify": "^10.0.0", + "brace": "^0.8.0", + "browserify": "^16.2.3", + "browserify-reload": "^1.0.3", + "component-type": "^1.2.1", + "copy-text-to-clipboard": "^1.0.4", + "csjs-inject": "^1.0.1", + "csslint": "^1.0.2", + "cypress": "^4.1.0", + "deep-equal": "^1.0.1", + "dotenv": "^8.2.0", + "eslint": "6.8.0", + "eslint-config-prettier": "^6.11.0", + "ethereumjs-util": "^6.2.0", + "ethers": "^4.0.27", + "events": "^3.0.0", + "execr": "^1.0.1", + "exorcist": "^0.4.0", + "exports-loader": "^1.1.0", + "fast-async": "^7.0.6", + "fast-levenshtein": "^2.0.6", + "ganache-cli": "^6.8.1", + "gists": "^1.0.1", + "ipfs-mini": "^1.1.5", + "is-electron": "^2.2.0", + "javascript-serialize": "^1.6.1", + "jest": "25.2.3", + "jquery": "^3.3.1", + "js-base64": "^2.1.9", + "js-beautify": "1.6.14", + "minixhr": "^3.2.2", + "mkdirp": "^0.5.1", + "mocha": "^8.0.1", + "nanohtml": "^1.6.3", + "nightwatch": "^1.3.5", + "notify-error": "^1.2.0", + "npm-link-local": "^1.1.0", + "npm-merge-driver": "^2.3.5", + "npm-run-all": "^4.0.2", + "nyc": "^13.3.0", + "onchange": "^3.2.1", + "prettier": "1.19.1", + "remix-tabs": "1.0.48", + "remixd": "0.1.8-alpha.16", + "request": "^2.83.0", + "rimraf": "^2.6.1", + "selenium-standalone": "^6.17.0", + "semver": "^6.1.2", + "solc": "^0.6.0", + "swarmgw": "^0.3.1", + "tap-spec": "^5.0.0", + "tape": "^4.13.3", + "ts-jest": "25.2.1", + "ts-node": "~7.0.0", + "tslint": "~6.0.0", + "typescript": "~3.8.3", + "uglify-js": "^2.8.16", + "vm-browserify": "0.0.4", + "watchify": "^3.9.0", + "web3": "1.2.4", + "webworkify": "^1.2.1", + "worker-loader": "^2.0.0", + "yo-yo": "github:ioedeveloper/yo-yo", + "yo-yoify": "^3.7.3", + "webworkify-webpack": "^2.1.5" + } + } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 654d950ed9..5416aac1fa 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,7 @@ "@remix-project/remix-analyzer": ["libs/remix-analyzer/index.ts"], "@remix-project/remix-astwalker": ["libs/remix-astwalker/src/index.ts"], "@remix-project/remix-debug": ["libs/remix-debug/index.js"], - "@remix-project/remix-lib": ["libs/remix-lib/index.js"], + "@remix-project/remix-lib": ["dist/libs/remix-lib/index.js"], "@remix-project/remix-simulator": ["libs/remix-simulator/index.js"], "@remix-project/remix-solidity": ["dist/libs/remix-solidity/index.js"], "@remix-project/remix-tests": ["libs/remix-tests/src/index.ts"],