Skip to content

Commit

Permalink
style: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hallisonbrancalhao committed Apr 25, 2024
1 parent bffb3c2 commit 69472f8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: CI

on:
push:
branches:
# Change this if your primary branch is not main
- main
pull_request:

# Needed for nx-set-shas when run on the main branch
permissions:
actions: read
contents: read
Expand All @@ -17,17 +18,18 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Cache node_modules
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
# This line enables distribution
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e-ci" targets have been requested
# - run: npx nx-cloud start-ci-run --distribute-on="5 linux-medium-js" --stop-agents-after="e2e-ci"
- run: npm ci
- uses: nrwl/nx-set-shas@v4

- run: git branch --track main origin/main
if: ${{ github.event_name == 'pull_request' }}
- uses: nrwl/nx-set-shas@v3

# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track main origin/main
- run: npx nx-cloud record -- nx format:check
- run: npx nx affected -t lint test build
- run: npx nx affected -t lint test build e2e-ci
1 change: 0 additions & 1 deletion apps/web/tsconfig.editor.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src/**/*.ts"],
"composite": true,
"compilerOptions": {},
"exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"]
}
2 changes: 1 addition & 1 deletion libs/collection/api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from './lib/public-api';
export * from './public-api';
2 changes: 0 additions & 2 deletions libs/collection/api/src/lib/public-api.ts

This file was deleted.

3 changes: 3 additions & 0 deletions libs/collection/api/src/public-api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Exportar apenas o que eu quero que outros usem
export { dataAccess } from '@nx-cleanarch-spotify/data-access';
export { domain } from '@nx-cleanarch-spotify/domain';
1 change: 0 additions & 1 deletion libs/collection/api/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"extends": "./tsconfig.json",
"composite": true,
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
Expand Down
1 change: 1 addition & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"defaultBase": "main",
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"production": [
Expand Down

0 comments on commit 69472f8

Please sign in to comment.