Undo webpack config

pull/9/head
ioedeveloper 4 years ago
parent 0064a96098
commit 0356ab82ff
  1. 0
      apps/remix-ide/assets/css/font-awesome.min.css
  2. 0
      apps/remix-ide/assets/css/pygment_trac.css
  3. 0
      apps/remix-ide/assets/fonts/FontAwesome.otf
  4. 0
      apps/remix-ide/assets/fonts/fontawesome-webfont.eot
  5. 0
      apps/remix-ide/assets/fonts/fontawesome-webfont.svg
  6. 0
      apps/remix-ide/assets/fonts/fontawesome-webfont.ttf
  7. 0
      apps/remix-ide/assets/fonts/fontawesome-webfont.woff
  8. 0
      apps/remix-ide/assets/fonts/fontawesome-webfont.woff2
  9. 0
      apps/remix-ide/assets/img/debuggerLogo.webp
  10. 0
      apps/remix-ide/assets/img/gasStation_50.png
  11. 0
      apps/remix-ide/assets/img/hexagon-remix-greengrey-texture.png
  12. 0
      apps/remix-ide/assets/img/homeStickers.png
  13. 0
      apps/remix-ide/assets/img/moreLogo.webp
  14. 0
      apps/remix-ide/assets/img/mythxLogo.webp
  15. 0
      apps/remix-ide/assets/img/pipelineLogo.webp
  16. 0
      apps/remix-ide/assets/img/sleepingRemiCroped.webp
  17. 0
      apps/remix-ide/assets/img/solidityLogo.webp
  18. 0
      apps/remix-ide/assets/img/sourceVerifyLogo.webp
  19. 0
      apps/remix-ide/assets/img/vyperLogo.webp
  20. 0
      apps/remix-ide/assets/img/workshopLogo.webp
  21. 0
      apps/remix-ide/assets/js/0.7.7/app.js
  22. 0
      apps/remix-ide/assets/js/browserfs.min.js
  23. 23
      apps/remix-ide/babel.config.js
  24. 2
      apps/remix-ide/src/app/tabs/staticanalysis/staticAnalysisView.js
  25. 92
      apps/remix-ide/src/index.html
  26. 9
      apps/remix-ide/tsconfig.app.json
  27. 15
      apps/remix-ide/tsconfig.json
  28. 15
      apps/remix-ide/tsconfig.spec.json
  29. 26
      apps/remix-ide/webpack.config.js
  30. 7
      nx.json
  31. 91
      package-lock.json
  32. 9
      package.json
  33. 164
      workspace.json

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 960 B

After

Width:  |  Height:  |  Size: 960 B

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Before

Width:  |  Height:  |  Size: 668 B

After

Width:  |  Height:  |  Size: 668 B

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -1,23 +0,0 @@
module.exports = {
"extends": "../../babel.config.js",
"plugins": [
[
"module:fast-async",
{
"runtimePattern": null,
"compiler": {
"es7": true,
"noRuntime": true,
"promises": true,
"wrapAwait": true
}
}
],
["module:babel-plugin-yo-yoify"],
["@babel/plugin-transform-object-assign"],
["@babel/plugin-transform-modules-amd"]
],
"presets": [
"@babel/preset-env"
]
}

@ -1,5 +1,5 @@
'use strict'
var StaticAnalysisRunner = require('remix-analyzer').CodeAnalysis
var StaticAnalysisRunner = require('@remix-project/remix-analyzer').CodeAnalysis
var yo = require('yo-yo')
var $ = require('jquery')
var remixLib = require('remix-lib')

@ -1,92 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--
The MIT License (MIT)
Copyright (c) 2014, 2015, the individual contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Remix - Ethereum IDE</title>
<link rel="stylesheet" href="assets/css/pygment_trac.css">
<link rel="icon" type="x-icon" href="icon.png">
<script src="assets/js/browserfs.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
<script>
function urlParams () {
var qs = window.location.hash.substr(1)
if (window.location.search.length > 0) {
// use legacy query params instead of hash
window.location.hash = window.location.search.substr(1)
window.location.search = ''
}
var params = {}
var parts = qs.split('&')
for (var x in parts) {
var keyValue = parts[x].split('=')
if (keyValue[0] !== '') {
params[keyValue[0]] = keyValue[1]
}
}
return params
}
const defaultVersion = '0.8.0'
let versionToLoad = urlParams().appVersion ? urlParams().appVersion : defaultVersion
let assets = {
'0.8.0': ['https://use.fontawesome.com/releases/v5.8.1/css/all.css', 'assets/css/pygment_trac.css'],
'0.7.7': ['assets/css/font-awesome.min.css', 'assets/css/pygment_trac.css']
}
let versions = {
'0.7.7': 'assets/js/0.7.7/app.js', // commit 7b5c7ae3de935e0ccc32eadfd83bf7349478491e
'0.8.0': 'main.js'
}
for (let k in assets[versionToLoad]) {
let app = document.createElement('link')
app.setAttribute('rel', 'stylesheet')
app.setAttribute('href', assets[versionToLoad][k])
if (assets[versionToLoad][k] === 'https://use.fontawesome.com/releases/v5.8.1/css/all.css') {
app.setAttribute('integrity', 'sha384-50oBUHEmvpQ+1lW4y57PTFmhCaXp0ML5d60M1M7uH2+nqUivzIebhndOJK28anvf')
app.setAttribute('crossorigin', 'anonymous')
}
document.head.appendChild(app)
}
window.onload = () => {
BrowserFS.install(window)
BrowserFS.configure({
fs: "LocalStorage"
}, function(e) {
if (e) console.log(e)
let app = document.createElement('script')
app.setAttribute('src', versions[versionToLoad])
document.body.appendChild(app)
window.remixFileSystem = require('fs')
})
}
</script>
</body>
</html>

@ -1,9 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node"]
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx"],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}

@ -1,15 +0,0 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"types": ["node", "jest"]
},
"files": [
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",
"../../node_modules/@nrwl/react/typings/image.d.ts"
],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}

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

@ -1,26 +0,0 @@
const babelWebpack = require('@nrwl/react/plugins/webpack')
const nodeExternals = require('webpack-node-externals')
module.exports = config => {
const babelWebpackConfig = babelWebpack(config)
const { entry, devtool, mode, output, module, resolve, performance, plugins, watch } = babelWebpackConfig
console.log('babelWebpackConfig: ', Object.keys(babelWebpackConfig))
return {
...babelWebpackConfig,
module: {
rules: [
{
test: /\.m?js$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel-loader'
}
]
},
target: 'node',
externals: [nodeExternals({
modulesFromFile: true
})]
}
}

@ -59,13 +59,6 @@
"remix-solidity",
"remix-tests"
]
},
"remix-ide-js": {
"tags": []
},
"remix-ide-js-e2e": {
"tags": [],
"implicitDependencies": ["remix-ide-js"]
}
}
}

91
package-lock.json generated

@ -9449,6 +9449,73 @@
}
}
},
"babel-plugin-module-resolver": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/babel-plugin-module-resolver/-/babel-plugin-module-resolver-4.0.0.tgz",
"integrity": "sha512-3pdEq3PXALilSJ6dnC4wMWr0AZixHRM4utpdpBR9g5QG7B7JwWyukQv7a9hVxkbGFl+nQbrHDqqQOIBtTXTP/Q==",
"dev": true,
"requires": {
"find-babel-config": "^1.2.0",
"glob": "^7.1.6",
"pkg-up": "^3.1.0",
"reselect": "^4.0.0",
"resolve": "^1.13.1"
},
"dependencies": {
"find-up": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
"integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
"dev": true,
"requires": {
"locate-path": "^3.0.0"
}
},
"locate-path": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
"integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
"dev": true,
"requires": {
"p-locate": "^3.0.0",
"path-exists": "^3.0.0"
}
},
"p-limit": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",
"integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",
"dev": true,
"requires": {
"p-try": "^2.0.0"
}
},
"p-locate": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
"integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
"dev": true,
"requires": {
"p-limit": "^2.0.0"
}
},
"p-try": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
"integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
"dev": true
},
"pkg-up": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-3.1.0.tgz",
"integrity": "sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==",
"dev": true,
"requires": {
"find-up": "^3.0.0"
}
}
}
},
"babel-plugin-styled-components": {
"version": "1.10.7",
"resolved": "https://registry.npmjs.org/babel-plugin-styled-components/-/babel-plugin-styled-components-1.10.7.tgz",
@ -16008,6 +16075,24 @@
}
}
},
"find-babel-config": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/find-babel-config/-/find-babel-config-1.2.0.tgz",
"integrity": "sha512-jB2CHJeqy6a820ssiqwrKMeyC6nNdmrcgkKWJWmpoxpE8RKciYJXCcXRq1h2AzCo5I5BJeN2tkGEO3hLTuePRA==",
"dev": true,
"requires": {
"json5": "^0.5.1",
"path-exists": "^3.0.0"
},
"dependencies": {
"json5": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz",
"integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=",
"dev": true
}
}
},
"find-cache-dir": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz",
@ -30627,6 +30712,12 @@
"resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
"integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8="
},
"reselect": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/reselect/-/reselect-4.0.0.tgz",
"integrity": "sha512-qUgANli03jjAyGlnbYVAV5vvnOmJnODyABz51RdBN7M4WaVu8mecZWgyQNkG8Yqe3KRGRt0l4K4B3XVEULC4CA==",
"dev": true
},
"reserved-words": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/reserved-words/-/reserved-words-0.1.2.tgz",

@ -103,6 +103,14 @@
"sourceMapsAbsolute": false,
"sourceMaps": true,
"plugins": [
[
"module:module-resolver", {
"root": ["."],
"alias": {
"@remix-project/remix-analyzer": "libs/remix-analyzer/index.ts"
}
}
],
[
"module:fast-async",
{
@ -179,6 +187,7 @@
"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",

@ -8,43 +8,13 @@
"schematics": {},
"architect": {
"build": {
"builder": "@nrwl/web:build",
"builder": "@nrwl/workspace:run-commands",
"options": {
"outputPath": "dist/apps/remix-ide",
"index": "apps/remix-ide/src/index.html",
"main": "apps/remix-ide/src/index.js",
"polyfills": "apps/remix-ide/src/polyfills.js",
"tsConfig": "apps/remix-ide/tsconfig.app.json",
"assets": [
"apps/remix-ide/src/assets"
],
"styles": [],
"scripts": [],
"webpackConfig": "apps/remix-ide/webpack.config.js"
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "apps/remix-ide/src/environments/environment.js",
"with": "apps/remix-ide/src/environments/environment.prod.js"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
"commands": [
{
"command": "browserify apps/remix-ide/src/index.js -o apps/remix-ide/build/app.js --exclude solc"
}
]
}
},
"start": {
@ -58,14 +28,13 @@
}
},
"serve": {
"builder": "@nrwl/web:dev-server",
"builder": "@nrwl/workspace:run-commands",
"options": {
"buildTarget": "remix-ide:build"
},
"configurations": {
"production": {
"buildTarget": "remix-ide:build:production"
}
"commands": [
{
"command": "npx http-server ./apps/remix-ide"
}
]
}
},
"lint": {
@ -408,115 +377,6 @@
}
}
}
},
"remix-ide-js": {
"root": "apps/remix-ide-js",
"sourceRoot": "apps/remix-ide-js/src",
"projectType": "application",
"schematics": {},
"architect": {
"build": {
"builder": "@nrwl/web:build",
"options": {
"outputPath": "dist/apps/remix-ide-js",
"index": "apps/remix-ide-js/src/index.html",
"main": "apps/remix-ide-js/src/main.js",
"polyfills": "apps/remix-ide-js/src/polyfills.js",
"tsConfig": "apps/remix-ide-js/tsconfig.app.json",
"assets": [
"apps/remix-ide-js/src/favicon.ico",
"apps/remix-ide-js/src/assets"
],
"styles": ["apps/remix-ide-js/src/styles.css"],
"scripts": [],
"webpackConfig": "@nrwl/react/plugins/webpack"
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "apps/remix-ide-js/src/environments/environment.js",
"with": "apps/remix-ide-js/src/environments/environment.prod.js"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
}
}
},
"serve": {
"builder": "@nrwl/web:dev-server",
"options": {
"buildTarget": "remix-ide-js:build"
},
"configurations": {
"production": {
"buildTarget": "remix-ide-js:build:production"
}
}
},
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"config": "apps/remix-ide-js/.eslintrc",
"tsConfig": [
"apps/remix-ide-js/tsconfig.app.json",
"apps/remix-ide-js/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!apps/remix-ide-js/**"]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/remix-ide-js/jest.config.js",
"tsConfig": "apps/remix-ide-js/tsconfig.spec.json",
"passWithNoTests": true
}
}
}
},
"remix-ide-js-e2e": {
"root": "apps/remix-ide-js-e2e",
"sourceRoot": "apps/remix-ide-js-e2e/src",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@nrwl/cypress:cypress",
"options": {
"cypressConfig": "apps/remix-ide-js-e2e/cypress.json",
"tsConfig": "apps/remix-ide-js-e2e/tsconfig.e2e.json",
"devServerTarget": "remix-ide-js:serve"
},
"configurations": {
"production": {
"devServerTarget": "remix-ide-js:serve:production"
}
}
},
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"config": "apps/remix-ide-js-e2e/.eslintrc",
"tsConfig": ["apps/remix-ide-js-e2e/tsconfig.e2e.json"],
"exclude": ["**/node_modules/**", "!apps/remix-ide-js-e2e/**"]
}
}
}
}
},
"cli": {

Loading…
Cancel
Save