Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mvc-tsx

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvc-tsx - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

.circleci/config.yml

44

lib/index.ts

@@ -0,7 +1,43 @@

import * as React from "react";
import * as ReactDOM from "react-dom";
import {EventEmitter} from "events";
import {on, arg} from "./ControllerMeta";
import {Model} from "./Model";
import {View} from "./View";
import {Controller} from "./Controller";
export * from "./Model";
export * from "./View";
export * from "./Controller";
export {
React,
ReactDOM,
EventEmitter,
Model,
View,
Controller,
on,
arg
};
export {on, arg};
if ( typeof window !== "undefined" ) {
const windowObj = window as any;
windowObj.MVC = {
React,
ReactDOM,
EventEmitter,
Model,
View,
Controller,
on,
arg
};
if ( !windowObj.React ) {
windowObj.React = React;
}
if ( !windowObj.ReactDOM ) {
windowObj.ReactDOM = ReactDOM;
}
if ( !windowObj.EventEmitter ) {
windowObj.EventEmitter = EventEmitter;
}
}

28

package.json
{
"name": "mvc-tsx",
"version": "0.0.1",
"version": "0.0.2",
"description": "MVC based on React",

@@ -9,4 +9,7 @@ "main": "dist/index.js",

"build": "gulp build",
"build-examples": "gulp build-examples",
"watch": "gulp watch",
"test": "nyc --reporter=html --reporter=text-summary mocha"
"test": "nyc --reporter=html --reporter=text-summary mocha",
"lint": "tslint lib/**/*.ts && tslint lib/**/*.tsx && tslint test/**/*.ts && tslint test/**/*.tsx",
"prepublishOnly": "npm run build"
},

@@ -27,5 +30,10 @@ "nyc": {

"exclude": [
"dist",
"bundle",
"coverage",
"gulp"
"gulp",
"examples",
"deps",
"gulpfile.js",
".mocharc.js",
"lib/index.ts"
]

@@ -35,3 +43,3 @@ },

"type": "git",
"url": "git+https://github.com/eprincev-egor/jsin-git.git"
"url": "git+https://github.com/eprincev-egor/mvc-tsx.git"
},

@@ -47,3 +55,4 @@ "keywords": [

"mv*",
"lib"
"lib",
"frontend"
],

@@ -71,7 +80,12 @@ "author": "Eprintsev Egor",

"nyc": "^15.1.0",
"source-map-loader": "^1.0.0",
"source-map-support": "^0.5.19",
"ts-loader": "^7.0.5",
"ts-node": "^8.10.2",
"tsc": "^1.20150623.0",
"tslint": "^6.1.2",
"typescript": "^3.9.5"
"typescript": "^3.9.5",
"vinyl-named": "^1.1.0",
"webpack": "^4.43.0",
"webpack-stream": "^5.2.1"
},

@@ -78,0 +92,0 @@ "dependencies": {

# MVC-TSX (WIP, alpha version)
![CI status](https://circleci.com/gh/eprincev-egor/mvc-tsx.svg?style=shield)

@@ -12,4 +13,4 @@ MVC-TSX позволяет писать императивный код для построения реактивных приложений.

class LoginModel extends Model {
login: string;
password: string;
login: string = "";
password: string = "";
}

@@ -68,2 +69,15 @@

```
```
# Downloads
[minify + React + EventEmitter + MVC](https://raw.githubusercontent.com/eprincev-egor/mvc-tsx/master/bundle/mvc-and-deps.min.js)
[React + EventEmitter + MVC](https://raw.githubusercontent.com/eprincev-egor/mvc-tsx/master/bundle/mvc-and-deps.full.js)
[minify + MVC](https://raw.githubusercontent.com/eprincev-egor/mvc-tsx/master/bundle/only-mvc.min.js)
[MVC](https://raw.githubusercontent.com/eprincev-egor/mvc-tsx/master/bundle/only-mvc.full.js)
# Examples
[clock](https://github.com/eprincev-egor/mvc-tsx/tree/master/examples/clock)
{
"compilerOptions": {
"outDir": "./dist",
"sourceMap": true,

@@ -13,8 +12,12 @@ "target": "esnext",

"jsx": "react",
"skipLibCheck": true
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"mvc-tsx": ["./lib"]
}
},
"exclude": [
"dist",
"compiled"
"bundle",
"coverage"
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc