Skip to content
Merged
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
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

47 changes: 0 additions & 47 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
with:
lookup-only: true
path: '**/node_modules'
key: bun-${{ hashFiles('bun.lockb') }}
key: bun-${{ hashFiles('bun.lockb','bun.lock') }}

- name: Install packages
run: bun install --frozen-lockfile
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ runs:
with:
lookup-only: true
path: '**/node_modules'
key: bun-${{ hashFiles('bun.lockb') }}
key: bun-${{ hashFiles('bun.lockb','bun.lock') }}

- name: Install packages
run: bun install --frozen-lockfile
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
ANDROID_SDK_VERSION: 34
FLUTTER_VERSION: 3.19.3
JDK_VERSION: 17.0.11
JDK_DISTRO: ms
JAVA_OPTIONS: '-Xmx3g'
timeout-minutes: 120
steps:
Expand All @@ -36,7 +37,7 @@ jobs:

# Connect your workspace on nx.app and uncomment this to enable task distribution.
# The "--stop-agents-after" is optional, but allows idle agents to shut down once the "e2e" targets have been requested
- run: bunx nx-cloud start-ci-run --distribute-on=".nx/workflows/distribution-config.yaml" --stop-agents-after="e2e-ci" --with-env-vars="ANDROID_SDK_VERSION,FLUTTER_VERSION,JDK_VERSION"
- run: bunx nx-cloud start-ci-run --distribute-on=".nx/workflows/distribution-config.yaml" --stop-agents-after="e2e-ci" --with-env-vars="ANDROID_SDK_VERSION,FLUTTER_VERSION,JDK_VERSION,JDK_DISTRO,JAVA_OPTIONS"

# This line is needed for nx affected to work when CI is running on a PR
- run: git branch --track develop origin/develop || exit 0
Expand Down
2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"*.ts": [
"bunx nx affected:lint --fix --files"
"bunx nx affected:lint --files"
],
"*": [
"bunx nx format:write --files"
Expand Down
11 changes: 6 additions & 5 deletions .nx/workflows/agents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ launch-templates:
- name: Restore Node Modules Cache
uses: 'nrwl/nx-cloud-workflows/v4/workflow-steps/cache/main.yaml'
inputs:
key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|bun.lock|bun.lockb'
key: 'package-lock.json|yarn.lock|pnpm-lock.yaml|bun.lockb|bun.lock'
paths: 'node_modules'
base-branch: 'develop'

Expand Down Expand Up @@ -54,7 +54,6 @@ launch-templates:
- name: Check bun
script: |
bun --version
echo "bunx=`which bunx`"

- name: Install Node Modules (with Bun)
script: bun install --frozen-lockfile --ignore-scripts
Expand Down Expand Up @@ -94,17 +93,19 @@ launch-templates:
source $HOME/.sdkman/bin/sdkman-init.sh
sdk version

jdkVersion="${JDK_VERSION:-21.0.3}"
jdkVersion="${JDK_VERSION:-21.0.6}"
jdkDistro="${JDK_DISTRO:-ms}"
javaVersion="${jdkVersion}-${jdkDistro}"
JAVA_HOME="$HOME/.sdkman/candidates/java/$javaVersion"

if [ ! -d $JAVA_HOME ]; then
echo "⌛️ Installing Java v$javaVersion.."
sdk install java $javaVersion
yes | sdk install java $javaVersion
sdk use java $javaVersion
else
echo "⏭️ Java v$javaVersion already installed. Skipping it"
echo "⏭️ Java v$javaVersion already installed. Making sure it is used"
sdk use java $javaVersion

fi

echo "JAVA_HOME=$JAVA_HOME" >> $NX_CLOUD_ENV
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

node_modules
/package.json
/pnpm-lock.yaml
/bun.lock

packages/**/CHANGELOG.md

Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 2 additions & 0 deletions bunfig.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install]
saveTextLockfile = false
18 changes: 0 additions & 18 deletions e2e/nx-flutter-e2e/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions e2e/nx-flutter-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '../../eslint.config.mjs';

export default [...baseConfig];
3 changes: 2 additions & 1 deletion e2e/nx-flutter-e2e/tests/create-nx-flutter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ describe('create-nx-flutter', () => {

beforeEach(() => {
// Cleanup the test project
projectDirectory &&
if (projectDirectory) {
rmSync(projectDirectory, {
recursive: true,
force: true,
});
}
});

it.each`
Expand Down
18 changes: 0 additions & 18 deletions e2e/nx-ktor-e2e/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions e2e/nx-ktor-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '../../eslint.config.mjs';

export default [...baseConfig];
3 changes: 2 additions & 1 deletion e2e/nx-ktor-e2e/tests/create-nx-ktor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ describe('create-nx-ktor', () => {

beforeEach(() => {
// Cleanup the test project
projectDirectory &&
if (projectDirectory) {
rmSync(projectDirectory, {
recursive: true,
force: true,
});
}
});

it.each`
Expand Down
6 changes: 3 additions & 3 deletions e2e/nx-ktor-e2e/tests/nx-ktor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ describe('nx-ktor e2e', () => {
);
expect(() =>
checkFilesExist(
`${directory}/gradlew`,
`${directory}/build.gradle.kts`
//`${directory}/src/main/kotlin/example/com/Application.kt` FIXME: bug in the generator, the package is not being created
`${projectDirectory}/${directory}/gradlew`,
`${projectDirectory}/${directory}/build.gradle.kts`
//`${projectDirectory}/${directory}/src/main/kotlin/example/com/Application.kt` FIXME: bug in the generator, the package is not being created
)
).not.toThrow();

Expand Down
18 changes: 0 additions & 18 deletions e2e/nx-melos-e2e/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions e2e/nx-melos-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '../../eslint.config.mjs';

export default [...baseConfig];
2 changes: 1 addition & 1 deletion e2e/nx-melos-e2e/tests/nx-melos.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('nx-melos e2e', () => {
const scripts = [
{
name: 'melos-bootstrap',
output: `Successfully ran target melos-bootstrap for project @test-project/source`,
output: `Successfully ran target melos-bootstrap for project @test-project-melos/source`,
},
];

Expand Down
18 changes: 0 additions & 18 deletions e2e/nx-micronaut-e2e/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions e2e/nx-micronaut-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '../../eslint.config.mjs';

export default [...baseConfig];
3 changes: 2 additions & 1 deletion e2e/nx-micronaut-e2e/tests/create-nx-micronaut.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ describe('create-nx-micronaut', () => {

beforeEach(() => {
// Cleanup the test project
projectDirectory &&
if (projectDirectory) {
rmSync(projectDirectory, {
recursive: true,
force: true,
});
}
});

it.each`
Expand Down
18 changes: 0 additions & 18 deletions e2e/nx-quarkus-e2e/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions e2e/nx-quarkus-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '../../eslint.config.mjs';

export default [...baseConfig];
3 changes: 2 additions & 1 deletion e2e/nx-quarkus-e2e/tests/create-nx-quarkus.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ describe('create-nx-quarkus', () => {

beforeEach(() => {
// Cleanup the test project
projectDirectory &&
if (projectDirectory) {
rmSync(projectDirectory, {
recursive: true,
force: true,
});
}
});

it.each`
Expand Down
18 changes: 0 additions & 18 deletions e2e/nx-spring-boot-e2e/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions e2e/nx-spring-boot-e2e/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '../../eslint.config.mjs';

export default [...baseConfig];
3 changes: 2 additions & 1 deletion e2e/nx-spring-boot-e2e/tests/create-nx-spring-boot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ describe('create-nx-spring-boot', () => {

beforeEach(() => {
// Cleanup the test project
projectDirectory &&
if (projectDirectory) {
rmSync(projectDirectory, {
recursive: true,
force: true,
});
}
});

it.each`
Expand Down
18 changes: 0 additions & 18 deletions e2e/smoke/.eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions e2e/smoke/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import baseConfig from '../../eslint.config.mjs';

export default [...baseConfig];
Loading
Loading