Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exporting typings with the lib #7

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode/
node_modules/
package-lock.json
package-lock.json
.idea
dist
7 changes: 7 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
.gitignore
tsm.iml
tsconfig.json
node_modules
src
test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
tsm: A Typescript vector and matrix math library
=================================================

This is new packaging of the library for node + TypeScript.

tsm is a a collection of vector, matrix and quaternion classes written in Typescript.

The library's design is influenced by both [gl-matrix](https://github.com/toji/gl-matrix) and [glm](https://github.com/g-truc/glm).
Expand Down
2 changes: 0 additions & 2 deletions dist/tsm.js

This file was deleted.

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{
"name": "tsm",
"version": "0.8.0",
"description": "A TypeScript vector and matrix math library",
"name": "@tlaukkan/tsm",
"version": "0.8.4",
"description": "A node version of the TypeScript vector and matrix math library.",
"author": "Matthias Ferch",
"module": "src/tsm.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"test": "mocha -r ts-node/register test/**/*.spec.ts",
"lint": "tslint src/*.ts -t verbose",
"build": "webpack",
"watch": "webpack --watch"
"build": "tsc",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.5",
"chai": "^4.1.2",
"mocha": "^5.2.0",
"ts-loader": "^5.1.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.0.3",
"webpack": "^4.18.0",
"webpack-cli": "^3.1.0"
"typescript": "^3.0.3"
},
"dependencies": {}
}
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export { default as mat2 } from './mat2'
export { default as mat3 } from './mat3'
export { default as mat4 } from './mat4'
export { default as quat } from './quat'
export { default as vec2 } from './vec2'
export { default as vec3 } from './vec3'
export { default as vec4 } from './vec4'
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"./test/**/*.spec.ts"
],
"compilerOptions": {
"declaration": true,
"outDir": "./dist/",
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"sourceMap": true
}
}
23 changes: 0 additions & 23 deletions webpack.config.js

This file was deleted.