Skip to content

Commit 4440d1e

Browse files
committed
Feature(runtime): Prepare for publish
1 parent 603a776 commit 4440d1e

5 files changed

Lines changed: 42 additions & 1 deletion

File tree

packages/runtime/.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@ cmake_install.cmake
44
CMakeCache.txt
55
hlvm-runtime.cbp
66
libhlvm-runtime.a
7-
Makefile
7+
Makefile
8+
index.js
9+
index.js.map

packages/runtime/.npmignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CMakeFiles
2+
cmake-build-debug
3+
cmake_install.cmake
4+
CMakeCache.txt
5+
hlvm-runtime.cbp
6+
libhlvm-runtime.a
7+
Makefile
8+
index.ts

packages/runtime/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
import * as path from "path";
3+
4+
export const RUNTIME_ARCHIVE_FILE = path.join(__dirname, 'libhlvm-runtime.a');

packages/runtime/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "@static-script/runtime",
3+
"version": "0.1.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"build": "tsc",
8+
"prepublish": "npm run build"
9+
},
10+
"author": "Dmitry Patsura <talk@dmtry.me>",
11+
"license": "MIT",
12+
"devDependencies": {
13+
"@types/node": "^10.12.5",
14+
"typescript": "^3.1.6"
15+
}
16+
}

packages/runtime/tsconfig.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"module": "commonjs",
4+
"noUnusedLocals": true,
5+
"pretty": true,
6+
"strictNullChecks": true,
7+
"target": "es2018",
8+
"lib": ["es2018" ],
9+
"sourceMap": true
10+
}
11+
}

0 commit comments

Comments
 (0)