-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix wasm-pack build error * Added sample apps for nodejs and web --------- Co-authored-by: Artemkaaas <[email protected]>
- Loading branch information
1 parent
1875bf0
commit e71400f
Showing
15 changed files
with
4,265 additions
and
50 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/node_modules |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "cesride-wasm-demo", | ||
"version": "0.1.0", | ||
"description": "JS demo for cesride wasm bindings", | ||
"scripts": { | ||
"start": "ts-node src/main.ts", | ||
"check": "tslint -c tslint.json 'src/**/*.ts'" | ||
}, | ||
"author": "", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"cesride-wasm": "file:../../pkg", | ||
"typescript": "^4.5.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^16.11.10", | ||
"ts-node": "^10.4.0", | ||
"tslint": "^6.1.3" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Dater } from "cesride-wasm"; | ||
|
||
function main() { | ||
const date = Dater.new_with_dts("2020-08-22T17:50:09.988921+00:00"); | ||
console.log("<p>Date:</p>"); | ||
console.log("dts: " + date.dts() + "<br/>"); | ||
console.log("dtsb: " + date.dtsb() + "<br/>"); | ||
console.log("code: " + date.code() + "<br/>"); | ||
console.log("size: " + date.size() + "<br/>"); | ||
console.log("raw: " + date.raw() + "<br/>"); | ||
console.log("qb64: " + date.qb64() + "<br/>"); | ||
console.log("qb64b: " + date.qb64b() + "<br/>"); | ||
console.log("qb2: " + date.qb2() + "<br/>"); | ||
} | ||
|
||
main() |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"defaultSeverity": "error", | ||
"extends": [ | ||
"tslint:recommended" | ||
], | ||
"jsRules": {}, | ||
"rules": { | ||
"no-console": false, | ||
"max-classes-per-file": false | ||
}, | ||
"rulesDirectory": [] | ||
} |
Oops, something went wrong.