Jelajahi Sumber

Pioneer - set as workspace

Leszek Wiesner 4 tahun lalu
induk
melakukan
b6d5956482
4 mengubah file dengan 989 tambahan dan 140 penghapusan
  1. 4 8
      .github/workflows/pioneer.yml
  2. 3 1
      package.json
  3. 12 4
      pioneer/tsconfig.json
  4. 970 127
      yarn.lock

+ 4 - 8
.github/workflows/pioneer.yml

@@ -16,9 +16,8 @@ jobs:
         node-version: ${{ matrix.node-version }}
     - name: build
       run: |
-        cd pioneer
         yarn install --frozen-lockfile
-        yarn build
+        yarn workspace pioneer build
 
   pioneer_build_osx:
     name: MacOS Build
@@ -34,9 +33,8 @@ jobs:
         node-version: ${{ matrix.node-version }}
     - name: build
       run: |
-        cd pioneer
         yarn install --frozen-lockfile --network-timeout 120000
-        yarn build
+        yarn workspace pioneer build
 
   pioneer_lint_ubuntu:
     name: Ubuntu Linting
@@ -52,9 +50,8 @@ jobs:
         node-version: ${{ matrix.node-version }}
     - name: lint
       run: |
-        cd pioneer
         yarn install --frozen-lockfile
-        yarn lint
+        yarn workspace pioneer lint
 
   pioneer_lint_osx:
     name: MacOS Linting
@@ -70,6 +67,5 @@ jobs:
         node-version: ${{ matrix.node-version }}
     - name: lint
       run: |
-        cd pioneer
         yarn install --frozen-lockfile --network-timeout 120000
-        yarn lint
+        yarn workspace pioneer lint

+ 3 - 1
package.json

@@ -18,7 +18,9 @@
     "storage-node",
     "storage-node/packages/*",
     "devops/eslint-config",
-    "devops/prettier-config"
+    "devops/prettier-config",
+    "pioneer",
+    "pioneer/packages/*"
   ],
   "resolutions": {
     "@polkadot/api": "^1.26.1",

+ 12 - 4
pioneer/tsconfig.json

@@ -4,7 +4,16 @@
     "build/**/*",
     "**/build/**/*",
     "packages/old-apps/**",
-    "packages/joy-*/**"
+    "packages/joy-members/**/*",
+    "packages/joy-election/**/*",
+    "packages/joy-forum/**/*",
+    "packages/joy-help/**/*",
+    "packages/joy-media/**/*",
+    "packages/joy-pages/**/*",
+    "packages/joy-proposals/**/*",
+    "packages/joy-roles/**/*",
+    "packages/joy-settings/**/*",
+    "packages/joy-utils/**/*",
   ],
   "compilerOptions": {
     "jsx": "react",
@@ -97,9 +106,8 @@
     },
     "skipLibCheck": true,
     "typeRoots": [
-      // TODO: Change to ../node_modules at later stage
-      "node_modules/@polkadot/ts",
-      "node_modules/@types",
+      "../node_modules/@polkadot/ts",
+      "../node_modules/@types",
       "src/@types"
     ]
   }

File diff ditekan karena terlalu besar
+ 970 - 127
yarn.lock


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini