No post-install build
This commit is contained in:
2
build.js
2
build.js
@@ -130,7 +130,7 @@ function compile() {
|
||||
const packagejson = path.join(NPM_DIR, 'package.json');
|
||||
const json = JSON.parse(fs.readFileSync(packagejson));
|
||||
if (json['scripts']) {
|
||||
delete json['scripts']['postinstall'];
|
||||
delete json['scripts']['prepare'];
|
||||
}
|
||||
const searchValue = './' + NPM_DIR + '/';
|
||||
const replaceValue = './';
|
||||
|
||||
58
package.json
58
package.json
@@ -41,12 +41,11 @@
|
||||
"integration:aot": "cd integration && npm run e2e:aot",
|
||||
"lint": "tslint ./src/**/*.ts -t verbose",
|
||||
"release": "standard-version",
|
||||
"postinstall": "postinstall-build --only-as-dependency dist \"npm run build && node postinstall.js\""
|
||||
"prepare": "npm run build"
|
||||
},
|
||||
"dependencies": {
|
||||
"codemirror-minified": "5.44.0",
|
||||
"jointjs": "2.2.1",
|
||||
"postinstall-build": "5.0.3",
|
||||
"ts-disposables": "2.2.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -82,7 +81,7 @@
|
||||
"jasmine-core": "2.5.2",
|
||||
"jointjs": "2.2.1",
|
||||
"jquery": "3.1.1",
|
||||
"jshint": "2.6.3",
|
||||
"jshint": "2.10.2",
|
||||
"karma": "1.5.0",
|
||||
"karma-chrome-launcher": "2.0.0",
|
||||
"karma-cli": "1.0.1",
|
||||
@@ -107,56 +106,5 @@
|
||||
"uglify-js": "3.3.23",
|
||||
"zone.js": "0.8.29",
|
||||
"rxjs-compat": "^6.4.0"
|
||||
},
|
||||
"buildDependencies": [
|
||||
"@angular/core",
|
||||
"@angular/forms",
|
||||
"@angular/platform-browser",
|
||||
"@angular/common",
|
||||
"@angular/compiler",
|
||||
"@angular/compiler-cli",
|
||||
"@angular/platform-browser",
|
||||
"@angular/platform-browser-dynamic",
|
||||
"@angular/platform-server",
|
||||
"@types/codemirror",
|
||||
"@types/lodash",
|
||||
"@types/backbone",
|
||||
"@types/jquery",
|
||||
"@types/jasmine",
|
||||
"@types/node",
|
||||
"codemirror-minified",
|
||||
"jointjs",
|
||||
"jquery",
|
||||
"ts-disposables",
|
||||
"camelcase",
|
||||
"chalk",
|
||||
"concurrently",
|
||||
"core-js",
|
||||
"glob",
|
||||
"jasmine-core",
|
||||
"karma",
|
||||
"karma-chrome-launcher",
|
||||
"karma-cli",
|
||||
"karma-html-reporter",
|
||||
"karma-jasmine",
|
||||
"karma-jasmine-html-reporter",
|
||||
"lite-server",
|
||||
"ngx-bootstrap",
|
||||
"node-sass",
|
||||
"rimraf",
|
||||
"rollup",
|
||||
"rollup-plugin-sourcemaps",
|
||||
"rollup-plugin-node-resolve",
|
||||
"rollup-plugin-commonjs",
|
||||
"rxjs",
|
||||
"standard-version",
|
||||
"systemjs",
|
||||
"shelljs",
|
||||
"tslint",
|
||||
"typescript",
|
||||
"uglify-js",
|
||||
"zone.js",
|
||||
"gulp",
|
||||
"gulp-inline-ng2-template"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -239,7 +239,7 @@ joint.shapes.flo.ElementView = joint.dia.ElementView.extend({
|
||||
_tempOpacity: 1.0,
|
||||
_hovering: false,
|
||||
|
||||
dragLinkStart: function(evt, magnet, x, y) {
|
||||
dragLinkStart: function(evt: any, magnet: any, x: number, y: number) {
|
||||
|
||||
this.model.startBatch('add-link');
|
||||
|
||||
@@ -257,7 +257,7 @@ joint.shapes.flo.ElementView = joint.dia.ElementView.extend({
|
||||
this.eventData(evt, { linkView: linkView });
|
||||
},
|
||||
|
||||
addLinkFromMagnet: function(magnet, x, y) {
|
||||
addLinkFromMagnet: function(magnet: any, x: number, y: number) {
|
||||
|
||||
const paper = this.paper;
|
||||
const graph = paper.model;
|
||||
|
||||
Reference in New Issue
Block a user