build(npm): remove obsolete npm dependencies
I also removed an obsolete bundling script which depended on systemjs-builder that I removed.
This commit is contained in:
parent
2371d22d49
commit
109dc99d32
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
37
package.json
37
package.json
|
@ -36,15 +36,7 @@
|
|||
"angular-mocks": "^1.5.0",
|
||||
"base64-js": "^0.0.8",
|
||||
"bower": "^1.3.12",
|
||||
"broccoli": "^0.16.9",
|
||||
"broccoli-file-creator": "^1.1.0",
|
||||
"broccoli-funnel": "^1.0.1",
|
||||
"broccoli-slow-trees": "1.x.x",
|
||||
"broccoli-stew": "^0.2.1",
|
||||
"broccoli-writer": "^0.1.1",
|
||||
"browserify": "^10.2.4",
|
||||
"browserstacktunnel-wrapper": "^1.4.2",
|
||||
"canonical-path": "0.0.2",
|
||||
"chokidar": "^1.1.0",
|
||||
"clang-format": "^1.0.32",
|
||||
"cldr": "^3.5.2",
|
||||
|
@ -54,27 +46,13 @@
|
|||
"fs-extra": "^0.26.3",
|
||||
"glob": "^4.0.6",
|
||||
"gulp": "^3.8.8",
|
||||
"gulp-autoprefixer": "^3.1.0",
|
||||
"gulp-clang-format": "^1.0.23",
|
||||
"gulp-concat": "^2.5.2",
|
||||
"gulp-connect": "^2.3.1",
|
||||
"gulp-conventional-changelog": "^1.1.0",
|
||||
"gulp-gzip": "^1.2.0",
|
||||
"gulp-insert": "^0.5.0",
|
||||
"gulp-load-plugins": "^1.0.0",
|
||||
"gulp-rename": "^1.2.0",
|
||||
"gulp-replace": "^0.5.3",
|
||||
"gulp-sass": "^2.0.4",
|
||||
"gulp-shell": "^0.5.1",
|
||||
"gulp-sourcemaps": "^1.6.0",
|
||||
"gulp-tslint": "^6.1.1",
|
||||
"gulp-typescript": "^2.10.0",
|
||||
"gulp-uglify": "^1.2.0",
|
||||
"hash-files": "^1.0.0",
|
||||
"incremental-dom": "^0.4.1",
|
||||
"jasmine": "^2.4.1",
|
||||
"jpm": "1.0.0",
|
||||
"js-yaml": "^3.2.7",
|
||||
"karma": "^0.13.20",
|
||||
"karma-browserstack-launcher": "^0.1.9",
|
||||
"karma-chrome-launcher": "^0.2.0",
|
||||
|
@ -83,39 +61,26 @@
|
|||
"karma-sourcemap-loader": "^0.3.6",
|
||||
"lodash": "^3.10.1",
|
||||
"madge": "0.5.0",
|
||||
"merge": "^1.2.0",
|
||||
"merge2": "^0.3.5",
|
||||
"minimatch": "^3.0.0",
|
||||
"minimist": "^1.2.0",
|
||||
"mock-fs": "^3.6.0",
|
||||
"node-uuid": "1.4.x",
|
||||
"on-headers": "^1.0.0",
|
||||
"parse5": "1.3.2",
|
||||
"protractor": "^3.0.0",
|
||||
"proxy-middleware": "^0.15.0",
|
||||
"q": "^1.0.1",
|
||||
"react": "^0.14.0",
|
||||
"rewire": "^2.3.3",
|
||||
"rollup": "^0.26.3",
|
||||
"run-sequence": "^1.1.0",
|
||||
"selenium-webdriver": "^2.47.0",
|
||||
"semver": "^5.1.0",
|
||||
"sorted-object": "^1.0.0",
|
||||
"source-map": "^0.3.0",
|
||||
"source-map-loader": "^0.1.5",
|
||||
"strip-ansi": "^2.0.1",
|
||||
"symlink-or-copy": "^1.0.1",
|
||||
"source-map-support": "^0.4.2",
|
||||
"systemjs": "0.18.10",
|
||||
"systemjs-builder": "^0.10.3",
|
||||
"through2": "^0.6.5",
|
||||
"ts-api-guardian": "0.1.4",
|
||||
"ts2dart": "^0.9.10",
|
||||
"tsickle": "^0.1.7",
|
||||
"tslint": "^3.15.0-dev.0",
|
||||
"typescript": "^2.0.2",
|
||||
"universal-analytics": "^0.3.9",
|
||||
"webpack": "^1.12.6",
|
||||
"which": "~1",
|
||||
"yargs": "^3.31.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
var gulp = require('gulp');
|
||||
var concat = require('gulp-concat');
|
||||
var replace = require('gulp-replace');
|
||||
var insert = require('gulp-insert');
|
||||
var fs = require('fs-extra');
|
||||
var browserify = require('browserify');
|
||||
var path = require('path');
|
||||
|
||||
module.exports.bundle = function(buildConfig, moduleName, outputFile, outputConfig,
|
||||
sfx) {
|
||||
var sfx = sfx || false;
|
||||
// Workaround for https://github.com/dart-lang/dart_style/issues/493
|
||||
var Builder = require('systemjs-builder');
|
||||
var builder = new Builder();
|
||||
builder.config(buildConfig);
|
||||
builder.loader.baseURL = 'file:' + process.cwd() + '/';
|
||||
if (sfx) {
|
||||
return builder.buildSFX(moduleName, outputFile, outputConfig);
|
||||
} else {
|
||||
return builder.build(moduleName, outputFile, outputConfig);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
module.exports.modify = function(srcs, concatName) {
|
||||
return gulp.src(srcs)
|
||||
.pipe(concat(concatName))
|
||||
.pipe(replace('sourceMappingURL', 'sourceMappingURLDisabled')) // TODO: add concat for sourceMaps
|
||||
};
|
||||
|
||||
|
||||
module.exports.benchpressBundle = function(entries, packageJsonPath, includes, excludes, ignore, dest, cb) {
|
||||
var b = browserify({
|
||||
entries: entries,
|
||||
builtins: [],
|
||||
insertGlobalVars: ['__filename','__dirname'],
|
||||
detectGlobals: false
|
||||
});
|
||||
for (var i = 0; i < excludes.length; i++) {
|
||||
b.exclude(excludes[i]);
|
||||
}
|
||||
var packageJson = JSON.parse(fs.readFileSync(packageJsonPath));
|
||||
for (var dep in packageJson.dependencies) {
|
||||
//remove deps from package that we want to include in the bundle
|
||||
if (includes.indexOf(dep) > -1) {
|
||||
delete packageJson.dependencies[dep];
|
||||
} else {
|
||||
b.exclude(dep);
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < ignore.length; i++) {
|
||||
b.ignore(ignore[i]);
|
||||
}
|
||||
fs.mkdirsSync(dest);
|
||||
fs.writeFileSync(dest + '/package.json', JSON.stringify(packageJson, null, ' '));
|
||||
b.bundle(function(err, buf) {
|
||||
if (err) {
|
||||
return cb(err);
|
||||
}
|
||||
var contents = buf.toString();
|
||||
|
||||
contents += 'module.exports = global.__benchpressExports;\n';
|
||||
fs.writeFileSync(dest + '/index.js', contents);
|
||||
cb(null);
|
||||
});
|
||||
};
|
Loading…
Reference in New Issue