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

[v2/build-system] Implement NX build system #67

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
.idea
*.log
tmp/

hash
dist/
node_modules/
7 changes: 7 additions & 0 deletions ingest/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh

cargo build --release

mkdir -p ../dist/

cp target/debug/lightspeed-ingest ../dist
28 changes: 28 additions & 0 deletions ingest/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "ingest",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "./ingest",
"targets": {
"build": {
"executor": "nx:run-commands",
"options": {
"cwd": "ingest/",
"command": "./build.sh"
}
},
"serve": {
"executor": "nx:run-commands",
"options": {
"command": "./dist/ingest"
}
},
"test": {
"executor": "@nx-go/nx-go:test"
},
"lint": {
"executor": "@nx-go/nx-go:lint"
}
},
"tags": []
}
23 changes: 23 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"implicitDependencies": {
"go.mod": "*"
},
"tasksRunnerOptions": {
"default": {
"runner": "@nrwl/nx-cloud",
"options": {
"cacheableOperations": [],
"accessToken": "YmFmYjFmNjktOTI1NS00MzQzLTg2NWItNjJiMDZiY2Q1YTdkfHJlYWQtd3JpdGU="
}
}
},
"targets": {
"foo": {
"executor": "nx:run-commands",
"options": {
"command": "echo foo",
}
}

}
}
Loading