This repository has been archived by the owner on Oct 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'instructions' of https://github.com/willemneal/near-shell…
… into staging
- Loading branch information
Showing
8 changed files
with
11,013 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
//@nearfile | ||
// Basic data model | ||
export class Greeter { | ||
text: string; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
const gulp = require("gulp"); | ||
const nearUtils = require("near-shell/gulp-utils"); | ||
|
||
|
||
function build_bindings(done){ | ||
nearUtils.generateBindings("main.ts", "../out/main.near.ts", done); | ||
} | ||
|
||
function build_model(done){ | ||
nearUtils.generateBindings("model.ts", "../out/model.near.ts", done); | ||
} | ||
|
||
function build_wasm(done){ | ||
nearUtils.compile("../out/main.near.ts", "../out/main.wasm", done); | ||
nearUtils.compile("./assembly/main.ts", "./out/main.wasm", done); | ||
}; | ||
|
||
const build = gulp.series(build_model, build_bindings, build_wasm); | ||
const build = gulp.series(build_wasm); | ||
|
||
|
||
exports.default = build; |
Oops, something went wrong.