Skip to content
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
1,114 changes: 1,114 additions & 0 deletions Reflect.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./src/index";
16 changes: 4 additions & 12 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
var json_convert_1 = require("./src/json2typescript/json-convert");
exports.JsonConvert = json_convert_1.JsonConvert;
var json_convert_enums_1 = require("./src/json2typescript/json-convert-enums");
exports.ValueCheckingMode = json_convert_enums_1.ValueCheckingMode;
exports.OperationMode = json_convert_enums_1.OperationMode;
var json_convert_decorators_1 = require("./src/json2typescript/json-convert-decorators");
exports.JsonObject = json_convert_decorators_1.JsonObject;
exports.JsonProperty = json_convert_decorators_1.JsonProperty;
exports.JsonConverter = json_convert_decorators_1.JsonConverter;
var any_1 = require("./src/json2typescript/any");
exports.Any = any_1.Any;
//# sourceMappingURL=/Users/andreas/Documents/GIT/appvision@git.appvision.ch/unibasel/json2typescript/index.js.map
__export(require("./src/index"));
1 change: 0 additions & 1 deletion index.js.map

This file was deleted.

5 changes: 0 additions & 5 deletions index.ts

This file was deleted.

3 changes: 3 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = function (config) {
'test/**/*.ts',
'src/**/*.ts'
],
exclude: [
'./**/*.d.ts'
],
preprocessors: {
'src/**/*.ts': ['karma-typescript'],
'test/**/*.ts': ['karma-typescript']
Expand Down
22 changes: 15 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "json2typescript",
"version": "1.0.5",
"version": "1.0.8",
"description": "Provides TypeScript methods to map a JSON object to a JavaScript object on runtime",
"keywords": [
"convert",
Expand All @@ -23,13 +23,18 @@
"scripts": {
"test": "karma start karma.conf.js",
"build": "npm run test && tsc",
"dist": "npm run build && npm pack"
"build:watch": "tsc -w",
"clean": "rimraf src/**/*.js src/**/*.js.map src/**/*.d.ts test/**/*.js test/**/*.js.map test/**/*.d.ts",
"dist": "npm run clean && npm run build && npm pack"
},
"typescript": {
"definition": "dist/index.d.ts"
},
"dependencies": {},
"dependencies": {
"@types/node": "^8.0.27"
},
"devDependencies": {
"@types/node": "^8.0.0",
"@types/jasmine": "^2.5.52",
"jasmine": "2.6.0",
"karma": "^1.7.0",
Expand All @@ -38,16 +43,19 @@
"karma-phantomjs-launcher": "1.0.4",
"karma-typescript": "^3.0.3",
"phantomjs-prebuilt": "2.1.14",
"typescript": "2.3.4"
"rimraf": "^2.6.2",
"typescript": "^2.5.2"
},
"main": "index.js",
"files": [
"src/json2typescript",
"index.ts",
"src/**/*.js",
"src/**/*.js.map",
"src/**/*.d.ts",
"index.d.ts",
"index.js"
],
"repository": {
"type": "git",
"url": "https://github.com/dhlab-basel/json2typescript"
}
}
}
5 changes: 5 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export { JsonConvert } from "./json2typescript/json-convert";
export { JsonCustomConvert } from "./json2typescript/json-custom-convert";
export { ValueCheckingMode, OperationMode } from "./json2typescript/json-convert-enums";
export { JsonObject, JsonProperty, JsonConverter } from "./json2typescript/json-convert-decorators";
export { Any } from "./json2typescript/any";
14 changes: 14 additions & 0 deletions src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export { JsonConvert } from "./json2typescript/json-convert";
export { JsonCustomConvert } from "./json2typescript/json-custom-convert";
export { ValueCheckingMode, OperationMode } from "./json2typescript/json-convert-enums";
export { JsonObject, JsonProperty, JsonConverter } from "./json2typescript/json-convert-decorators";
export { Any } from "./json2typescript/any";
2 changes: 2 additions & 0 deletions src/json2typescript/any.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export declare class Any {
}
2 changes: 1 addition & 1 deletion src/json2typescript/any.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/json2typescript/any.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/json2typescript/json-convert-decorators.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export declare function JsonConverter(target: any): void;
export declare function JsonObject(target: any): void;
export declare function JsonProperty(...params: any[]): any;
83 changes: 50 additions & 33 deletions src/json2typescript/json-convert-decorators.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/json2typescript/json-convert-decorators.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading