hot module replacement

pull/3397/head
filip mertens 2 years ago
parent ab8ccf2e75
commit 782db11c89
  1. 2
      apps/remix-ide/.babelrc
  2. 9
      apps/remix-ide/project.json
  3. 1
      apps/remix-ide/src/app.js
  4. 1
      apps/remix-ide/tsconfig.app.json
  5. 2
      babel.config.js
  6. 1
      libs/remix-core-plugin/package.json
  7. 5
      libs/remix-core-plugin/tsconfig.lib.json
  8. 1
      libs/remix-ui/home-tab/src/lib/components/homeTabTitle.tsx
  9. 1
      libs/remix-ws-templates/package.json
  10. 2
      libs/remixd/tsconfig.lib.json
  11. 3
      package.json

@ -1,5 +1,5 @@
{ {
"presets": ["@babel/preset-env", ["@babel/preset-react", "presets": ["@babel/preset-env", ["@nrwl/react/babel",
{"runtime": "automatic"} {"runtime": "automatic"}
]], ]],
"plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-runtime", "@babel/plugin-proposal-nullish-coalescing-operator"], "plugins": ["@babel/plugin-proposal-class-properties", "@babel/plugin-transform-runtime", "@babel/plugin-proposal-nullish-coalescing-operator"],

@ -48,15 +48,18 @@
"defaultConfiguration": "development", "defaultConfiguration": "development",
"options": { "options": {
"buildTarget": "remix-ide:build", "buildTarget": "remix-ide:build",
"watch": true,
"liveReload": true,
"hmr": false
}, },
"configurations": { "configurations": {
"development": { "development": {
"buildTarget": "remix-ide:build:development", "buildTarget": "remix-ide:build:development",
"port": 8080 "port": 8080
}, },
"hot":{
"buildTarget": "remix-ide:build:development",
"port": 8080,
"hmr": true
},
"production": { "production": {
"buildTarget": "remix-ide:build:production", "buildTarget": "remix-ide:build:production",
"port": 8080 "port": 8080

@ -247,7 +247,6 @@ class AppComponent {
const codeParser = new CodeParser(new AstWalker()) const codeParser = new CodeParser(new AstWalker())
this.notification = new NotificationPlugin() this.notification = new NotificationPlugin()
const configPlugin = new ConfigPlugin() const configPlugin = new ConfigPlugin()

@ -3,7 +3,6 @@
"compilerOptions": { "compilerOptions": {
"outDir": "../../dist/out-tsc", "outDir": "../../dist/out-tsc",
"types": ["node"], "types": ["node"],
"module": "es2020"
}, },
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "./src/assets/**/*"], "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "./src/assets/**/*"],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"] "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]

@ -1,5 +1,5 @@
module.exports = { module.exports = {
"presets": ["@babel/preset-typescript", "@babel/preset-env", "@babel/preset-react"], "presets": ["@babel/preset-typescript", "@babel/preset-env", "@nrwl/react/babel"],
"plugins": [ "plugins": [
"babel-plugin-replace-ts-export-assignment", "babel-plugin-replace-ts-export-assignment",
"@babel/plugin-transform-modules-commonjs", "@babel/plugin-transform-modules-commonjs",

@ -3,7 +3,6 @@
"version": "0.0.1", "version": "0.0.1",
"description": "This library was generated with [Nx](https://nx.dev).", "description": "This library was generated with [Nx](https://nx.dev).",
"main": "src/index.js", "main": "src/index.js",
"type": "module",
"author": "Remix Team", "author": "Remix Team",
"license": "ISC" "license": "ISC"
} }

@ -1,11 +1,6 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"module": "commonjs",
"outDir": "../../dist/out-tsc",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"declaration": true,
"types": ["node"] "types": ["node"]
}, },
"exclude": [ "exclude": [

@ -52,7 +52,6 @@ function HomeTabTitle() {
return ( return (
<div className="px-2 pb-2 pt-2 d-flex flex-column border-bottom" id="hTTitleSection"> <div className="px-2 pb-2 pt-2 d-flex flex-column border-bottom" id="hTTitleSection">
<div className="d-flex py-2 justify-content-between"> <div className="d-flex py-2 justify-content-between">
<div className='d-flex justify-content-start'> <div className='d-flex justify-content-start'>
<span className="h-80 text-uppercase" style={{ fontSize: 'xx-large', fontFamily: "Noah, sans-serif" }}>Remix</span> <span className="h-80 text-uppercase" style={{ fontSize: 'xx-large', fontFamily: "Noah, sans-serif" }}>Remix</span>

@ -4,7 +4,6 @@
"description": "Create a Remix IDE workspace using different templates", "description": "Create a Remix IDE workspace using different templates",
"main": "src/index.js", "main": "src/index.js",
"types": "src/index.d.ts", "types": "src/index.d.ts",
"type": "module",
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },

@ -1,7 +1,7 @@
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
"target": "es6", "target": "ES6",
"module": "commonjs", "module": "commonjs",
"outDir": "../../dist/out-tsc", "outDir": "../../dist/out-tsc",
"declaration": true, "declaration": true,

@ -28,6 +28,7 @@
"nx": "nx", "nx": "nx",
"start": "nx start", "start": "nx start",
"serve": "nx serve remix-ide --configuration=development", "serve": "nx serve remix-ide --configuration=development",
"hot": "nx serve remix-ide --configuration=hot",
"build": "nx build", "build": "nx build",
"test": "nx test", "test": "nx test",
"lint": "nx lint", "lint": "nx lint",
@ -234,6 +235,7 @@
"@nrwl/web": "15.7.1", "@nrwl/web": "15.7.1",
"@nrwl/webpack": "15.7.1", "@nrwl/webpack": "15.7.1",
"@nrwl/workspace": "^15.7.1", "@nrwl/workspace": "^15.7.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@svgr/webpack": "^6.5.1", "@svgr/webpack": "^6.5.1",
"@testing-library/react": "13.4.0", "@testing-library/react": "13.4.0",
"@types/axios": "^0.14.0", "@types/axios": "^0.14.0",
@ -332,6 +334,7 @@
"onchange": "^3.2.1", "onchange": "^3.2.1",
"os-browserify": "^0.3.0", "os-browserify": "^0.3.0",
"process": "^0.11.10", "process": "^0.11.10",
"react-refresh": "^0.14.0",
"react-test-renderer": "^17.0.2", "react-test-renderer": "^17.0.2",
"request": "^2.83.0", "request": "^2.83.0",
"rimraf": "^2.6.1", "rimraf": "^2.6.1",

Loading…
Cancel
Save