create-ton 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/cli.js +6 -4
- package/dist/template/package.json +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.10.0] - 2023-12-01
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Updated template dependencies: blueprint, sandbox, test-utils, ton, ton-core, ton-crypto to their latest @ton versions
|
|
13
|
+
|
|
14
|
+
## [0.9.0] - 2023-08-28
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
|
|
18
|
+
- Removed flag `--path`
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- The project name (asked interactively or passed in CLI non-interactively) is now resolved as a path to get the full project path, and the basename (last segment) of that path is taken as the actual project name. For example, running `create-ton .` in a directory named `test-project` will create the project in that very directory (without creating any subdirectories) with the name `test-project`
|
|
23
|
+
|
|
8
24
|
## [0.8.0] - 2023-08-28
|
|
9
25
|
|
|
10
26
|
### Added
|
package/dist/cli.js
CHANGED
|
@@ -35,13 +35,14 @@ async function main() {
|
|
|
35
35
|
const localArgs = (0, arg_1.default)({
|
|
36
36
|
'--type': String,
|
|
37
37
|
'--contractName': String,
|
|
38
|
-
'--path': String,
|
|
39
38
|
});
|
|
40
|
-
const
|
|
39
|
+
const desiredProjectName = localArgs._[0] ||
|
|
41
40
|
(await inquirer_1.default.prompt({
|
|
42
41
|
name: 'name',
|
|
43
42
|
message: 'Project name',
|
|
44
43
|
})).name.trim();
|
|
44
|
+
const projectPath = path_1.default.resolve(desiredProjectName);
|
|
45
|
+
const name = path_1.default.basename(projectPath);
|
|
45
46
|
if (name.length === 0)
|
|
46
47
|
throw new Error('Cannot initialize a project with an empty name');
|
|
47
48
|
const contractName = localArgs['--contractName'] ||
|
|
@@ -65,7 +66,6 @@ async function main() {
|
|
|
65
66
|
choices: VARIANT_CHOICES,
|
|
66
67
|
},
|
|
67
68
|
])).variant;
|
|
68
|
-
const projectPath = localArgs['--path'] || name;
|
|
69
69
|
await fs_extra_1.default.mkdir(projectPath, {
|
|
70
70
|
recursive: true,
|
|
71
71
|
});
|
|
@@ -80,6 +80,8 @@ async function main() {
|
|
|
80
80
|
await fs_extra_1.default.writeFile(path_1.default.join(projectPath, '.gitignore'), `node_modules
|
|
81
81
|
temp
|
|
82
82
|
build
|
|
83
|
+
dist
|
|
84
|
+
.DS_Store
|
|
83
85
|
`);
|
|
84
86
|
for (const file of FILES_WITH_NAME_TEMPLATE) {
|
|
85
87
|
await fs_extra_1.default.writeFile(path_1.default.join(projectPath, file), (await fs_extra_1.default.readFile(path_1.default.join(basePath, file))).toString().replace(NAME_TEMPLATE, name));
|
|
@@ -129,7 +131,7 @@ build
|
|
|
129
131
|
console.log(``);
|
|
130
132
|
console.log(`Your new project is ready, available commands:`);
|
|
131
133
|
console.log(``);
|
|
132
|
-
console.log(chalk_1.default.greenBright(` > `) + chalk_1.default.cyanBright(`cd ${
|
|
134
|
+
console.log(chalk_1.default.greenBright(` > `) + chalk_1.default.cyanBright(`cd ${desiredProjectName}`));
|
|
133
135
|
console.log(` change directory to your new project`);
|
|
134
136
|
console.log(``);
|
|
135
137
|
console.log(chalk_1.default.greenBright(` > `) + chalk_1.default.cyanBright(`npx blueprint build`));
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "blueprint run",
|
|
6
6
|
"build": "blueprint build",
|
|
7
|
-
"test": "jest"
|
|
7
|
+
"test": "jest --verbose"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@ton
|
|
11
|
-
"@ton
|
|
12
|
-
"@ton
|
|
10
|
+
"@ton/blueprint": "^0.14.2",
|
|
11
|
+
"@ton/sandbox": "^0.13.1",
|
|
12
|
+
"@ton/test-utils": "^0.4.2",
|
|
13
13
|
"@types/jest": "^29.5.0",
|
|
14
14
|
"@types/node": "^20.2.5",
|
|
15
15
|
"jest": "^29.5.0",
|
|
16
|
-
"prettier": "^
|
|
17
|
-
"ton": "
|
|
18
|
-
"ton
|
|
19
|
-
"ton
|
|
16
|
+
"prettier": "^3.1.0",
|
|
17
|
+
"@ton/ton": "^13.9.0",
|
|
18
|
+
"@ton/core": "^0.53.0",
|
|
19
|
+
"@ton/crypto": "^3.2.0",
|
|
20
20
|
"ts-jest": "^29.0.5",
|
|
21
21
|
"ts-node": "^10.9.1",
|
|
22
|
-
"typescript": "^
|
|
22
|
+
"typescript": "^5.3.2"
|
|
23
23
|
}
|
|
24
24
|
}
|