Skip to content

Commit 1268c6f

Browse files
committed
Merge remote-tracking branch 'origin/master' into 0.5.6-no-jsdom
* origin/master: #182: fix npm 2 add 0.5.6 to updates section bump to 0.5.6 # Conflicts: # package.json
2 parents 89a3b0c + 0c98b50 commit 1268c6f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Gruntfile.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
'use strict';
22
var path = require('path');
3+
var fs = require('fs');
34

45
var pathToApp = path.resolve('./');
5-
var parentFolderName = path.basename(path.resolve('..'));
66
global.pathToApp = pathToApp;
77

88
var loadOptions = require('./core/loadOptions');
99

10+
// NPM 3 compatibility fix
1011
var getLoaderPackageName = function() {
1112
var packageName;
13+
var parentFolderName = path.basename(path.resolve('..'));
1214
var isSubPackage = parentFolderName === 'node_modules';
13-
if (isSubPackage) {
15+
var isLocalDepsAvailable = fs.existsSync('node_modules/grunt-autoprefixer') && fs.existsSync('node_modules/grunt-contrib-cssmin');
16+
17+
if (isSubPackage && !isLocalDepsAvailable) {
1418
packageName = 'load-grunt-parent-tasks';
1519
} else {
1620
packageName = 'load-grunt-tasks';
1721
}
22+
1823
return packageName;
1924
};
2025

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ If you notice some bugs, or need to help finding a better solution in your proce
5252
[Materials for presentations](https://github.com/sourcejs/pres).
5353

5454
## Updates
55+
* 20.09.15 [0.5.6](https://github.com/sourcejs/Source/releases/tag/0.5.6) and [0.5.6-no-jsdom](https://github.com/sourcejs/Source/releases/tag/0.5.6-no-jsdom) with EJS helpers, NPM 3 support and navigation improvements
5556
* 16.08.15 [0.5.5](https://github.com/sourcejs/Source/releases/tag/0.5.5) and [0.5.5-no-jsdom](https://github.com/sourcejs/Source/releases/tag/0.5.5-no-jsdom) patch release with `<markdown>` tag fix and set of functional tests
5657
* 15.08.15 [0.5.4](https://github.com/sourcejs/Source/releases/tag/0.5.4) and [0.5.4-no-jsdom](https://github.com/sourcejs/Source/releases/tag/0.5.4-no-jsdom) with middleware loader, relative paths in navigation support and other improvements
5758
* 28.05.15 [0.5.3](https://github.com/sourcejs/Source/releases/tag/0.5.3) context options support, source-as-npm package, CI integration, watcher stability improvements and other great features

0 commit comments

Comments
 (0)