mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
updating package.json, project cleanup
This commit is contained in:
parent
12b812da0b
commit
a6f1f13c9c
@ -1,5 +1,3 @@
|
|||||||
///<reference path="../../typings/main.d.ts"/>
|
|
||||||
|
|
||||||
function isFunction(functionToCheck) {
|
function isFunction(functionToCheck) {
|
||||||
var getType = {};
|
var getType = {};
|
||||||
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
///<reference path="../../typings/main.d.ts"/>
|
|
||||||
|
|
||||||
export class Event2Args<T,M> {
|
export class Event2Args<T,M> {
|
||||||
private handlers: { (data?: T,data2?: M): void; }[] = [];
|
private handlers: { (data?: T,data2?: M): void; }[] = [];
|
||||||
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
///<reference path="../../typings/main.d.ts"/>
|
|
||||||
|
|
||||||
export class EventLimit<T> {
|
export class EventLimit<T> {
|
||||||
|
|
||||||
private lastTriggerValue:T = null;
|
private lastTriggerValue:T = null;
|
||||||
|
@ -2,7 +2,7 @@ var webpack = require('webpack');
|
|||||||
var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
|
var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
'app': __dirname+'./main.ts'
|
'app': __dirname+'/main.ts'
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
filename: __dirname+'./dist/[name]-bundle.js',
|
filename: __dirname+'./dist/[name]-bundle.js',
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "./backend/server.js",
|
"main": "./backend/server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "typings install && webpack frontend/webpack.config.js -P && tsc -p backend",
|
"install": "typings install && tsc -p backend && webpack --config ./frontend/webpack.config.js -p ",
|
||||||
"pretest": "typings install",
|
"pretest": "typings install",
|
||||||
"test": "karma start ./karma.conf.js",
|
"test": "karma start ./karma.conf.js",
|
||||||
"start": "node ./backend/server"
|
"start": "node ./backend/server"
|
||||||
|
Loading…
Reference in New Issue
Block a user