Skip to content

Commit a76510a

Browse files
authored
Remove moonrepo (#7)
# We'd love to see more contributions Read how you can [contribute to the project](https://go.dot.industries/brease/master/CONTRIBUTING.md). > Please attach an [issue](https://go.dot.industries/brease/issues) link which your PR solves otherwise your work may be rejected.
2 parents 077036b + e3a5311 commit a76510a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+4032
-7849
lines changed

.gitignore

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
21
# moon
3-
.moon/cache
4-
.moon/docker
52
.idea
63
.env
74
.DS_Store
85
node_modules
9-
packages/brease-core/build
10-
packages/react-brease/build
11-
packages/react-brease/coverage
12-
packages/react-brease-devtools/build
13-
packages/vue-brease/build
6+
build
7+
coverage
8+
9+
# Next.js
10+
.next
11+
.turbo
12+
dist

.moon/tasks.yml

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

.moon/toolchain.yml

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

.moon/workspace.yml

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

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Add files here to ignore them from prettier formatting
2+
/dist
3+
/coverage

.prettierrc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"semi": true,
3-
"singleQuote": false,
4-
"trailingComma": "all",
5-
"pluginSearchDirs": false,
6-
"plugins": ["prettier-plugin-svelte"],
7-
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
8-
}
2+
"semi": true,
3+
"singleQuote": false,
4+
"trailingComma": "all",
5+
"pluginSearchDirs": false,
6+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
7+
}

apps/api/cache/hash_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cache
22

33
import (
44
"fmt"
5+
"github.com/goccy/go-json"
56
"testing"
67

78
"go.dot.industries/brease/models"
@@ -10,6 +11,8 @@ import (
1011

1112
var (
1213
things = []string{"a", "b", "c"}
14+
v2, _ = json.Marshal(2)
15+
v4, _ = json.Marshal(4)
1316
ruleset1 = []models.Rule{
1417
{
1518
ID: "asdf",
@@ -20,28 +23,25 @@ var (
2023
Target: "$.property2",
2124
Value: "newValue",
2225
},
26+
2327
Expression: map[string]interface{}{
2428
"and": pb.And{
2529
Expression: []*pb.Expression{
2630
{
2731
Expr: &pb.Expression_Condition{
2832
Condition: &pb.Condition{
29-
Base: &pb.Condition_Key{Key: "$.property3"},
30-
Type: "lt",
31-
Parameter: &pb.Condition_IntValue{
32-
IntValue: 2,
33-
},
33+
Base: &pb.Condition_Key{Key: "$.property3"},
34+
Type: "lt",
35+
Value: v2,
3436
},
3537
},
3638
},
3739
{
3840
Expr: &pb.Expression_Condition{
3941
Condition: &pb.Condition{
40-
Base: &pb.Condition_Key{Key: "$.property"},
41-
Type: "gt",
42-
Parameter: &pb.Condition_IntValue{
43-
IntValue: 4,
44-
},
42+
Base: &pb.Condition_Key{Key: "$.property"},
43+
Type: "gt",
44+
Value: v4,
4545
},
4646
},
4747
},

apps/api/moon.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ project:
77
name: api
88
description: Business rules engine service and go package
99

10+
workspace:
11+
inheritedTasks:
12+
exclude: ["build_types", "build_types_watch"]
13+
1014
tasks:
11-
build_types:
12-
command: noop
13-
build_types_watch:
14-
command: noop
1515
clean:
1616
command: rm -rf ./dist
1717
platform: system

babel.config.js

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

examples/next/.env.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Since the ".env" file is gitignored, you can use the ".env.example" file to
2+
# build a new ".env" file when you clone the repo. Keep this file up-to-date
3+
# when you add new variables to `.env`.
4+
5+
# This file will be committed to version control, so make sure not to have any
6+
# secrets in it. If you are cloning this repo, create a copy of this file named
7+
# ".env" and populate it with your secrets.
8+
9+
# When adding additional environment variables, the schema in "/src/env.mjs"
10+
# should be updated accordingly.
11+
12+
# Example:
13+
BREASE_TOKEN=asdfasdf

0 commit comments

Comments
 (0)