@junobuild/cli 0.2.0 → 0.2.2
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/dist/index.js +607 -606
- package/package.json +22 -20
- package/templates/eject/javascript/index.mjs +15 -0
- package/templates/eject/{src → rust/src}/satellite/src/lib.rs +1 -0
- package/templates/eject/typescript/index.ts +15 -0
- package/templates/eject/typescript/tsconfig.json +15 -0
- /package/templates/eject/{Cargo.toml → rust/Cargo.toml} +0 -0
- /package/templates/eject/{src → rust/src}/satellite/Cargo.toml +0 -0
- /package/templates/eject/{src → rust/src}/satellite/satellite.did +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "The Juno command-line interface",
|
|
5
5
|
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,39 +27,41 @@
|
|
|
27
27
|
"@dfinity/agent": "^2.3.0",
|
|
28
28
|
"@dfinity/auth-client": "^2.3.0",
|
|
29
29
|
"@dfinity/candid": "^2.3.0",
|
|
30
|
-
"@dfinity/ic-management": "^6.0.
|
|
30
|
+
"@dfinity/ic-management": "^6.0.6",
|
|
31
31
|
"@dfinity/identity": "^2.3.0",
|
|
32
32
|
"@dfinity/principal": "^2.3.0",
|
|
33
|
-
"@junobuild/admin": "^0.1.
|
|
34
|
-
"@junobuild/cli-tools": "^0.1.
|
|
35
|
-
"@junobuild/config-loader": "^0.
|
|
36
|
-
"@junobuild/core": "^0.1.
|
|
37
|
-
"@junobuild/did-tools": "^0.
|
|
38
|
-
"@junobuild/utils": "^0.1.
|
|
33
|
+
"@junobuild/admin": "^0.1.6",
|
|
34
|
+
"@junobuild/cli-tools": "^0.1.6",
|
|
35
|
+
"@junobuild/config-loader": "^0.2.0",
|
|
36
|
+
"@junobuild/core": "^0.1.9",
|
|
37
|
+
"@junobuild/did-tools": "^0.2.0",
|
|
38
|
+
"@junobuild/utils": "^0.1.1",
|
|
39
|
+
"chokidar": "^4.0.3",
|
|
39
40
|
"conf": "^13.1.0",
|
|
40
41
|
"open": "^10.1.0",
|
|
41
42
|
"ora": "^8.2.0",
|
|
42
|
-
"portfinder": "^1.0.
|
|
43
|
+
"portfinder": "^1.0.35",
|
|
43
44
|
"prompts": "^2.4.2",
|
|
44
45
|
"semver": "^7.7.1",
|
|
45
46
|
"terminal-link": "^3.0.0"
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
|
-
"@eslint/eslintrc": "^3.
|
|
49
|
-
"@eslint/js": "^9.
|
|
50
|
-
"@junobuild/config": "^0.1.
|
|
51
|
-
"@
|
|
49
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
50
|
+
"@eslint/js": "^9.22.0",
|
|
51
|
+
"@junobuild/config": "^0.1.3",
|
|
52
|
+
"@junobuild/functions": "^0.0.12",
|
|
53
|
+
"@types/node": "^22.13.10",
|
|
52
54
|
"@types/prompts": "^2.4.9",
|
|
53
55
|
"@types/semver": "^7.5.8",
|
|
54
56
|
"dotenv": "^16.4.7",
|
|
55
|
-
"esbuild": "^0.25.
|
|
56
|
-
"eslint": "^9.
|
|
57
|
-
"eslint-config-love": "^
|
|
58
|
-
"eslint-config-prettier": "^10.
|
|
59
|
-
"globals": "^
|
|
60
|
-
"prettier": "^3.5.
|
|
57
|
+
"esbuild": "^0.25.1",
|
|
58
|
+
"eslint": "^9.22.0",
|
|
59
|
+
"eslint-config-love": "^119.0.0",
|
|
60
|
+
"eslint-config-prettier": "^10.1.1",
|
|
61
|
+
"globals": "^16.0.0",
|
|
62
|
+
"prettier": "^3.5.3",
|
|
61
63
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
62
|
-
"typescript": "^5.
|
|
64
|
+
"typescript": "^5.8.2"
|
|
63
65
|
},
|
|
64
66
|
"repository": {
|
|
65
67
|
"type": "git",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {defineAssert, defineHook} from '@junobuild/functions';
|
|
2
|
+
|
|
3
|
+
// All the available hooks and assertions for your Datastore and Storage are scaffolded by default in this module.
|
|
4
|
+
// However, if you don’t have to implement all of them, for example to improve readability or reduce unnecessary logic,
|
|
5
|
+
// you can selectively delete the features you do not need.
|
|
6
|
+
|
|
7
|
+
export const assertSetDoc = defineAssert({
|
|
8
|
+
collections: [],
|
|
9
|
+
assert: (context) => {}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const onSetDoc = defineHook({
|
|
13
|
+
collections: [],
|
|
14
|
+
run: async (context) => {}
|
|
15
|
+
});
|
|
@@ -68,6 +68,7 @@ async fn on_delete_many_assets(_context: OnDeleteManyAssetsContext) -> Result<()
|
|
|
68
68
|
async fn on_delete_filtered_assets(_context: OnDeleteFilteredAssetsContext) -> Result<(), String> {
|
|
69
69
|
Ok(())
|
|
70
70
|
}
|
|
71
|
+
|
|
71
72
|
#[assert_set_doc]
|
|
72
73
|
fn assert_set_doc(_context: AssertSetDocContext) -> Result<(), String> {
|
|
73
74
|
Ok(())
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {type AssertSetDoc, defineAssert, defineHook, type OnSetDoc} from '@junobuild/functions';
|
|
2
|
+
|
|
3
|
+
// All the available hooks and assertions for your Datastore and Storage are scaffolded by default in this module.
|
|
4
|
+
// However, if you don’t have to implement all of them, for example to improve readability or reduce unnecessary logic,
|
|
5
|
+
// you can selectively delete the features you do not need.
|
|
6
|
+
|
|
7
|
+
export const assertSetDoc = defineAssert<AssertSetDoc>({
|
|
8
|
+
collections: [],
|
|
9
|
+
assert: (context) => {}
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const onSetDoc = defineHook<OnSetDoc>({
|
|
13
|
+
collections: [],
|
|
14
|
+
run: async (context) => {}
|
|
15
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"moduleDetection": "force",
|
|
4
|
+
"module": "ES2020",
|
|
5
|
+
"target": "ES2020",
|
|
6
|
+
"lib": ["ES2020", "dom"],
|
|
7
|
+
"strict": true,
|
|
8
|
+
"noImplicitAny": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"moduleResolution": "bundler",
|
|
12
|
+
"outDir": "../../target/deploy"
|
|
13
|
+
},
|
|
14
|
+
"include": ["**/*.ts"]
|
|
15
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|