Skip to content

Commit 12f9145

Browse files
committed
Update game 1.0.2
1 parent eff27cb commit 12f9145

File tree

376 files changed

+31123
-47213
lines changed

Some content is hidden

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

376 files changed

+31123
-47213
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,29 @@ yarn nx test preset-lumberjack --watch
6565
```shell
6666
yarn nx e2e preset-lumberjack-e2e
6767
```
68-
68+
6969
```shell
7070
yarn nx g @nx/plugin:plugin preset-lumberjack --directory packages/preset-lumberjack --project-name-and-root-forma
7171
t as-provided --import-path=@create-solana-game/preset-lumberjack --publishable --e2e-test-runner jest
7272
```
7373

74+
7475
```shell
7576
yarn ts-node add-template-suffix.ts ./packages/preset-lumberjack/src/generators/preset/files/
7677
```
78+
79+
```shell
80+
npx nx run-many --targets publish --ver 1.0.2 --tag local
81+
```
82+
83+
For release
84+
```shell
85+
npx nx run-many --targets publish --ver 1.0.2 --tag latest
86+
```
87+
88+
To run with local registry
89+
```shell
90+
yarn local-registry
91+
npx create-solana-game@local <name>
92+
```
93+

add-template-suffix.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ if (!files.length) {
1919
}
2020

2121
for (const file of files) {
22+
if (file.endsWith(".meta") || file.endsWith(".png") || file.endsWith(".dll")|| file.endsWith(".unity")) {
23+
continue;
24+
}
2225
const newFile = `${file}${suffix}`;
2326
fs.renameSync(file, newFile);
2427
console.log(` - Renamed ${file} to ${newFile}`);

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "@create-solana-game/source",
33
"version": "0.0.0",
44
"license": "MIT",
5-
"scripts": {},
5+
"scripts": {
6+
"local-registry": "nx run @create-solana-game/source:local-registry"
7+
},
68
"private": true,
79
"dependencies": {
810
"@nx/devkit": "17.0.3",

packages/preset-lumberjack-e2e/tests/create-solana-game.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ import { mkdirSync, rmSync } from 'fs';
44

55
describe('create-solana-game', () => {
66
let projectDirectory: string;
7+
const cleanUp = process.env['CLEANUP'] !== 'false'
78

89
afterAll(() => {
10+
if (!cleanUp) {
11+
console.log(`Skipping cleanup of test project "${projectDirectory}"`)
12+
return
13+
}
14+
915
// Cleanup the test project
1016
rmSync(projectDirectory, {
1117
recursive: true,

packages/preset-lumberjack-e2e/tests/preset-lumberjack.spec.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { join, dirname } from 'path';
33
import { mkdirSync, rmSync } from 'fs';
44

55
describe('preset-lumberjack', () => {
6+
const cleanUp = process.env['CLEANUP'] !== 'false'
67
let projectDirectory: string;
78

89
beforeAll(() => {
@@ -19,6 +20,11 @@ describe('preset-lumberjack', () => {
1920

2021
afterAll(() => {
2122
// Cleanup the test project
23+
if (!cleanUp) {
24+
console.log(`Skipping cleanup of test project "${projectDirectory}"`)
25+
return
26+
}
27+
//return;
2228
rmSync(projectDirectory, {
2329
recursive: true,
2430
force: true,
@@ -32,6 +38,26 @@ describe('preset-lumberjack', () => {
3238
stdio: 'inherit',
3339
});
3440
});
41+
42+
/*it('should build anchor', () => {
43+
// npm ls will fail if the package is not installed properly
44+
execSync('anchor build', {
45+
cwd: join(projectDirectory, 'program'),
46+
stdio: 'inherit',
47+
});
48+
});
49+
50+
it('should install and build yarn', () => {
51+
// npm ls will fail if the package is not installed properly
52+
execSync('yarn install', {
53+
cwd: join(projectDirectory, 'app'),
54+
stdio: 'inherit',
55+
});
56+
execSync('yarn build', {
57+
cwd: join(projectDirectory, 'app'),
58+
stdio: 'inherit',
59+
});
60+
});*/
3561
});
3662

3763
/**

packages/preset-lumberjack/src/generators/preset/__snapshots__/generator.spec.ts.snap

Lines changed: 897 additions & 132 deletions
Large diffs are not rendered by default.
6 KB
Binary file not shown.

0 commit comments

Comments
 (0)