Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use npm in favor of yarn #63

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
with:
node-version: 18
- name: install dependencies
run: yarn
run: npm ci
- name: build
run: yarn make
run: npm run make

build_on_mac:
runs-on: macos-latest
Expand All @@ -25,9 +25,9 @@ jobs:
with:
node-version: 18
- name: install dependencies
run: yarn
run: npm ci
- name: build
run: yarn make
run: npm run make

build_on_win:
runs-on: windows-latest
Expand All @@ -37,6 +37,6 @@ jobs:
with:
node-version: 18
- name: install dependencies
run: yarn
run: npm ci
- name: build
run: yarn make
run: npm run make
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
Expand Down Expand Up @@ -54,10 +52,6 @@ typings/
# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity
yarn.lock

# dotenv environment variables file
.env
.env.test
Expand Down Expand Up @@ -95,5 +89,3 @@ out/
# Ollama
blobs/
manifests/

package-lock.json
12 changes: 0 additions & 12 deletions .setup/error-with-remedy.mjs

This file was deleted.

23 changes: 0 additions & 23 deletions .setup/format.mjs

This file was deleted.

21 changes: 0 additions & 21 deletions .setup/log.mjs

This file was deleted.

13 changes: 0 additions & 13 deletions .setup/macos/python-path.mjs

This file was deleted.

27 changes: 0 additions & 27 deletions .setup/macos/validate-executable.mjs

This file was deleted.

53 changes: 0 additions & 53 deletions .setup/macos/validate-setup.mjs

This file was deleted.

20 changes: 0 additions & 20 deletions .setup/yarn-preinstall-system-validation.mjs

This file was deleted.

76 changes: 20 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,34 @@
# Morhpheus Node Setup

Morhpheus Node Setup
## Prerequisites

- Node.js: https://nodejs.org/en/download

## Running development environment

Windows OS Systems
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing README only mentions Windows when the instructions are similar for all operating systems. These changes generalize the README so it's apparent that Morpheus works for more than only Windows.

1. Install dependencies
In the root directory of the Morpheus client local repository, type the following command: `npm install`

Prerequisites
2. Run the Morpheus client app
Then type the following command: `npm run start`

Node.js for Windows
Follow the instructions listed here for Node.js setup:
• https://phoenixnap.com/kb/install-node-js-npm-on-windows
## Building executable app

Yarn for Windows
Follow the instructions listed here for Yarn Package Manager setup:
• https://phoenixnap.com/kb/yarn-windows
1. Install dependencies
In the root directory of the Morpheus client local repository, type the following command: `npm install`

1. Create Project Directory
Open a Windows command prompt and create a project folder and put your command line at that directory

I.e. Presume the starting directory is: C:\projects
2. Build the Morpheus client app
Then type the following command: `npm run make`

mkdir c:\projects
3. Application runtime and testing
Upon successful build, find the Morpheus client app executable for your operating system in the following directory:

cd /d c:\projects

2. Morpheus client Workspace Setup
From a command line at the project directory (created in #1), type:
`<PATH_TO_LOCAL_MORPHEUS_CLIENT_REPO>/out`

git clone https://github.com/MorpheusAIs/Lite-Client.git
## Notes

3. Project Environment Setup
Set up the modules and components using the Yarn Package Manager
• Additional run, test, and build scripts are located in the `package.json` configuration file in the root directory of the Morpheus client repo

Navigate to the command line of the Morpheus client local repository, then type the following command:

yarn

This will set up all node modules needed.

4. Build the Morpheus Client App
From a command line at the root directory of the local Morpheus Client repo, build the client executable, type:

yarn make


6. Application Runtime and Testing
Upon successful build, run the Morpheus client app by clicking the following executable or start from the command line:

<PATH-TO-LOCAL-MORPHEUS-CLIENT-REPO>\Lite-Client-main\out\morpheus-win32-x64.exe



NOTES

• Additional Run, Test, and Build scripts are located in the package.json configuration file in the root directory of the Morpheus client repo

• Please visit https://mor.software/ to sign up as a developer to be rewarded for your merged contributions. Submit an MRC to get support for feature and improvement ideas.

• https://mor.software/ is also the place to build, submit, deploy, and manage all of your Smart Agents.

• Be sure to complete these steps from an account with administrative access to the host machine

• The initial start of the application may take extended time to start due to the initial configuration and run of the application



### Windows installer instructions (Doc format)
[Google Doc](https://docs.google.com/document/d/1YjGAlTzglct8aNEqZAUeYD7SAmOETtmv/edit?usp=sharing&ouid=118042204753952761929&rtpof=true&sd=true)
• Please visit https://mor.software/ to sign up as a developer to be rewarded for your merged contributions. Submit an MRC to get support for feature and improvement ideas.

• https://mor.software/ is also the place to build, submit, deploy, and manage all of your Smart Agents.
Loading
Loading