Skip to content

Commit

Permalink
0.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Nov 18, 2014
1 parent 7ee062f commit 799b879
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
9 changes: 9 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ process.on('uncaughtException', function(err) {
+ '\n'
+ 'jspm depcache [moduleName] Stores dep cache in config for flat pipelining\n'
+ 'jspm bundle A + B - C [file] [-i] Bundle an input module or module arithmetic\n'
+ 'jspm unbundle Remove injected bundle configuration\n'
+ '\n'
+ 'jspm endpoint <command> Manage endpoints\n'
+ ' endpoint config <endpoint-name> Configure an endpoint\n'
Expand Down Expand Up @@ -303,6 +304,14 @@ process.on('uncaughtException', function(err) {
}
break;

case 'unbundle':
bundle.unbundle()
.catch(function(e) {
ui.log('err', e.stack || e);
process.exit(1);
});
break;

case 'bundle-sfx':
var options = readOptions(args, ['--yes']);
if (options.yes)
Expand Down
11 changes: 11 additions & 0 deletions lib/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@ exports.bundle = function(moduleExpression, fileName, inject) {
});
}

exports.unbundle = function() {
return config.load()
.then(function() {
delete config.loader.bundles;
return config.save();
})
.then(function() {
ui.log('ok', 'Bundle configuration removed.');
});
}

exports.bundleSFX = function(moduleName, fileName) {
fileName = fileName || 'build.js';

Expand Down
2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ exports.checkDlLoader = function() {
}

var ghh = 'https://raw.githubusercontent.com';
var loaderVersions = ['0.9', '0.9', '0.0.72'];
var loaderVersions = ['0.10', '0.10', '0.0.74'];

function doLoaderDownload(files) {
return Promise.all(Object.keys(files).map(function(url) {
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "jspm",
"description": "",
"version": "0.8.4",
"version": "0.8.5",
"main": "./api.js",
"author": "",
"dependencies": {
"glob": "~3.2.6",
"graceful-fs": "~2.0.1",
"jspm-github": "~0.8.0",
"jspm-npm": "~0.8.4",
"jspm-npm": "~0.10.0",
"jspm-registry": "~0.3.0",
"liftoff": "^0.13.2",
"minimatch": "^0.2.14",
Expand All @@ -18,9 +18,9 @@
"rimraf": "~2.2.2",
"rsvp": "~3.0.3",
"semver": "~4.0.3",
"systemjs-builder": "~0.2.8",
"systemjs": "^0.9.3",
"traceur": "0.0.72",
"systemjs-builder": "~0.3.0",
"systemjs": "^0.10.0",
"traceur": "0.0.74",
"uglify-js": "~2.4.10"
},
"devDependencies": {
Expand Down

0 comments on commit 799b879

Please sign in to comment.