Skip to content

Commit 3243e00

Browse files
Merge pull request #271 from terminusdb/add_caching
Upgrade actions and use npm cache
2 parents 179bf84 + 4307d48 commit 3243e00

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/main_workflow.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
1717
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v2
18+
uses: actions/setup-node@v3
1919
with:
2020
node-version: 18
21+
cache: 'npm'
2122
- run: npm i --legacy-peer-deps
2223
- name : Build Documents-UI
2324
run : |
@@ -84,11 +85,12 @@ jobs:
8485
runs-on: ubuntu-latest
8586
steps:
8687
- name: Checkout
87-
uses: actions/checkout@v2
88+
uses: actions/checkout@v3
8889
- name: Use Node.js ${{ matrix.node-version }}
89-
uses: actions/setup-node@v2
90+
uses: actions/setup-node@v3
9091
with:
9192
node-version: 18
93+
cache: 'npm'
9294
- run: npm i --legacy-peer-deps
9395
- name : Build Documents-UI
9496
run : |
@@ -127,7 +129,7 @@ jobs:
127129
- name: Checkout
128130
uses: actions/checkout@v3
129131
- name: Use Node.js ${{ matrix.node-version }}
130-
uses: actions/setup-node@v2
132+
uses: actions/setup-node@v3
131133
with:
132134
node-version: 18
133135
registry-url: 'https://registry.npmjs.org'

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# terminusdb-dashboard
2+
23
Dashboard for TerminusDB. Monorepo for the TerminusDB dashboard components. Please see the individual packages for more
34
details. The main dashboard package can be found in `packages/tdb-dashboard`.
45

56
## Setting up terminusdb-dashboard
67

78
**Clone the repository**
9+
810
```sh
911
git clone https://github.com/terminusdb/terminusdb-dashboard.git
1012
```
1113

1214
**Install all the dependencies**
15+
1316
```sh
1417
cd terminusdb-dashboard
1518
npm install

packages/tdb-dashboard/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = (env, argv) => ({
5050
test: /\.js$/,
5151
exclude: /node_modules/,
5252
use: {
53-
loader:"babel-loader",
53+
loader:"babel-loader?cacheDirectory",
5454
options:{
5555
presets: [
5656
["@babel/preset-env"],

0 commit comments

Comments
 (0)