Skip to content

Commit e5f0943

Browse files
authored
Merge pull request #330 from rvanasa/ryan/dev-env
feat: add `npm run mops` command and set up formatter for VS Code
1 parent a67be5a commit e5f0943

22 files changed

Lines changed: 4157 additions & 1113 deletions

File tree

.github/workflows/setup-mops.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: mops test with ZenVoich/setup-mops
1+
name: mops test with dfinity/setup-mops
22

33
on:
44
push:
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12-
name: Test with ZenVoich/setup-mops
12+
name: Test with dfinity/setup-mops
1313

1414
steps:
1515
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules
22
dist
33
.dfx
4-
.vscode
54
.mops
6-
.DS_Store
5+
.DS_Store

.husky/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# npm run lint && npm run test && (cd cli && npm run check)
2-
node .husky/pre-commit.js
1+
npm run precommit

.husky/pre-commit.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"recommendations": [
3+
"dfinity-foundation.vscode-motoko",
4+
"esbenp.prettier-vscode",
5+
"dbaeumer.vscode-eslint",
6+
"rvest.vs-code-prettier-eslint"
7+
]
8+
}

backend/main/verifyPackageRepository.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module {
1818
};
1919

2020
if (not Text.startsWith(repositoryUrl, #text("https://github.com/"))) {
21-
return #err("Currently only github repositories are supported.\nPlease create an issue at https://github.com/ZenVoich/mops/issues if you want to add support for other repositories.");
21+
return #err("Currently only github repositories are supported.\nPlease create an issue at https://github.com/dfinity/mops/issues if you want to add support for other repositories.");
2222
};
2323

2424
let urlPath = Iter.toArray(Text.split(repositoryUrl, #text("https://github.com/")))[1];

blog/blog/2024-07-30/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ Added a common nav bar to all subdomains for easier navigation.
4545

4646
(by [@ZenVoich](https://github.com/ZenVoich))
4747

48-
New version `1.3.1` of [`setup-mops`](https://github.com/ZenVoich/setup-mops) action is released.
48+
New version `1.3.1` of [`setup-mops`](https://github.com/dfinity/setup-mops) action is released.
4949

5050
The action is updated to use the on-chain storage to install Mops, which gave a **2x** speedup to the installation process (from ~20s to ~10s).
5151

5252
If you are using the action in this way:
5353

5454
```yaml
55-
- uses: ZenVoich/setup-mops@v1
55+
- uses: dfinity/setup-mops@v1
5656
```
5757
5858
no changes are required from your side.

blog/blog/2024-09-13/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Now you can search packages by the owner principal id. Just click on the owner p
5050

5151
## GitHub Action update
5252

53-
New version `1.4.0` of [`setup-mops`](https://github.com/ZenVoich/setup-mops) action is released.
53+
New version `1.4.0` of [`setup-mops`](https://github.com/dfinity/setup-mops) action is released.
5454

5555
- Add caching for macOS
5656
- Use node v22
@@ -66,7 +66,7 @@ docker build . --build-arg COMMIT_HASH=<commit_hash> --build-arg MOPS_VERSION=<m
6666
docker run --rm --env SHASUM=<build_hash> mops
6767
```
6868

69-
[Documentation](https://github.com/ZenVoich/mops/blob/main/cli/DEVELOPMENT.md#verify-build).
69+
[Documentation](https://github.com/dfinity/mops/blob/main/cli/DEVELOPMENT.md#verify-build).
7070

7171

7272
## Package Registry site updates

blog/blog/authors.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
dfinity:
2+
name: DFINITY
3+
title: Mops Maintainer
4+
url: https://dfinity.org
5+
image_url: https://github.com/dfinity.png
16
zen:
27
name: Zen Voich
3-
title: Mops Maintainer
8+
title: Original Mops Author
49
url: https://github.com/ZenVoich
5-
image_url: https://github.com/ZenVoich.png
10+
image_url: https://github.com/ZenVoich.png

blog/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const config = {
7575
items: [
7676
{
7777
label: 'GitHub',
78-
href: 'https://github.com/ZenVoich/mops',
78+
href: 'https://github.com/dfinity/mops',
7979
},
8080
{
8181
label: 'Twitter',

0 commit comments

Comments
 (0)