File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33name : frontend
44
5- build :
6- steps :
7- - type : pre-built
8- url : https://github.com/dfinity/sdk/raw/89243f2268b6d0ec77d589b7b1b27af931f70edd/src/distributed/assetstorage.wasm.gz
9- sha256 : b312a16c3179cf8384afa852e468c1333b7439d4c5a39f26df69b12320f629f8
10-
5+ recipe :
6+ # https://github.com/dfinity/icp-cli-recipes/blob/main/recipes/asset-canister/README.md
7+ type : " @dfinity/asset-canister@v2.1.0"
8+ configuration :
9+ build :
1110 # Install the dependencies
1211 # Eventually you might want to use `npm ci` to lock your dependencies
13- - type : script
14- command : npm install
15-
12+ - npm install
1613 # Generate the bindings from backend.did file in the backend canister
1714 # You could choose to run this once manually and checkin the generated code
1815 # instead of running it every single time
19- - type : script
20- command : npm run generate --prefix app
21-
22- - type : script
23- command : npm run build
24-
25- sync :
26- steps :
27- - type : assets
28- dirs :
29- - app/dist
16+ - npm run generate --prefix app
17+ - npm run build
18+ dir : app/dist
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ canisters:
1717 type : " @dfinity/asset-canister@<version>"
1818 configuration :
1919 build :
20+ - npm install
2021 - npm run build
2122 dir : dist
2223` ` `
@@ -58,10 +59,6 @@ canisters:
5859# # Run It
5960
6061` ` ` bash
61- # Install dependencies:
62- # Vite is required for this example to bundle assets
63- npm ci
64-
6562# Start a local network
6663icp network start -d
6764
Original file line number Diff line number Diff line change 11[template ]
22exclude = [" public/logo.png" ]
3-
Original file line number Diff line number Diff line change @@ -6,5 +6,8 @@ canisters:
66 type : " @dfinity/asset-canister@v2.1.0"
77 configuration :
88 build :
9+ # Install the dependencies
10+ # Eventually you might want to use `npm ci` to lock your dependencies
11+ - npm install
912 - npm run build
1013 dir : dist
You can’t perform that action at this time.
0 commit comments