Comparing version 0.3.13 to 0.3.14
{ | ||
"name": "assemble", | ||
"version": "0.3.12", | ||
"version": "0.3.14", | ||
"main": [ | ||
@@ -5,0 +5,0 @@ "./lib/assemble.js" |
@@ -0,1 +1,3 @@ | ||
**Table of Contents** | ||
@@ -28,3 +30,2 @@ | ||
- [Authors](#authors) | ||
- [License](#copyright-and-license) | ||
- [License](#copyright-and-license) |
@@ -14,2 +14,3 @@ /* | ||
grunt.initConfig({ | ||
// package.json | ||
@@ -24,4 +25,6 @@ pkg: grunt.file.readJSON('package.json'), | ||
}, | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc' | ||
}, | ||
files: [ | ||
@@ -32,8 +35,6 @@ 'Gruntfile.js', | ||
'test/**/*.js' | ||
], | ||
options: { | ||
jshintrc: '.jshintrc' | ||
} | ||
] | ||
}, | ||
// Run tests. | ||
// Run mocha tests. | ||
mochaTest: { | ||
@@ -48,4 +49,20 @@ files: ['test/**/*.js'] | ||
// Run simple tests. | ||
assemble: { | ||
// Run basic tests on templates and data. | ||
tests: { | ||
options: { | ||
layout: 'test/files/layout-includes.hbs' | ||
}, | ||
files: { | ||
'test/actual': ['test/files/extend.hbs'] | ||
} | ||
}, | ||
yaml: { | ||
options: { | ||
layout: 'test/files/layout.hbs' | ||
}, | ||
files: { | ||
'test/actual/yaml': ['test/yaml/*.hbs'] | ||
} | ||
}, | ||
// Internal task to build README, docs. | ||
@@ -58,2 +75,3 @@ readme: { | ||
roadmap: grunt.file.readYAML('ROADMAP'), | ||
ext: '.md', | ||
data: [ | ||
@@ -63,4 +81,3 @@ 'docs/templates/data/docs.json', | ||
'../assemble-internal/docs/templates/data/repos.json' | ||
], | ||
ext: '.md' | ||
] | ||
}, | ||
@@ -70,18 +87,2 @@ files: { | ||
} | ||
}, | ||
tests: { | ||
options: { | ||
layout: 'test/files/layout-includes.hbs' | ||
}, | ||
files: { | ||
'test/actual': ['test/files/extend.hbs'] | ||
} | ||
}, | ||
yaml: { | ||
options: { | ||
layout: 'test/files/layout.hbs' | ||
}, | ||
files: { | ||
'test/actual/yaml': ['test/yaml/*.hbs'] | ||
} | ||
} | ||
@@ -88,0 +89,0 @@ } |
@@ -7,3 +7,3 @@ /* ========================================================== | ||
* | ||
* Copyright (c) 2012 Upside | ||
* Copyright (c) 2012 Upstage | ||
* Licensed under the MIT license. | ||
@@ -10,0 +10,0 @@ * https://github.com/assemble/assemble/blob/master/LICENSE-MIT |
@@ -12,4 +12,3 @@ | ||
define([], | ||
function() { | ||
define([], function() { | ||
@@ -26,6 +25,10 @@ // figure out if this is node or browser | ||
// if(isServer) { | ||
var assemble = require('../../../assemble.js'), | ||
markdown = assemble.Markdown({gfm: true, highlight: 'auto'}); | ||
// } | ||
// if(isServer) { | ||
var assemble = require('../../../assemble.js'); | ||
var fs = require('fs'); | ||
var util = require('util'); | ||
var path = require('path'); | ||
var dest = './'; | ||
var markdown = assemble.Markdown({gfm: true, highlight: 'auto'}); | ||
// } | ||
@@ -52,3 +55,9 @@ | ||
// Normalize slashes in URLs | ||
Utils.urlNormalize = function(urlString) { | ||
return urlString.replace(/\\/g, '/'); | ||
}; | ||
/************************************************************* | ||
@@ -368,3 +377,3 @@ * HTML | ||
* Dashify | ||
* Replace dots in string with hyphens. | ||
* Replace periods in string with hyphens. | ||
*/ | ||
@@ -488,11 +497,3 @@ Handlebars.registerHelper('dashify', function(tag) { | ||
/** | ||
* newLineToBr | ||
* Converts new line characters `\n` to line breaks `<br>`. | ||
*/ | ||
Handlebars.registerHelper('newLineToBr', function(str) { | ||
return str.replace(/\n/g, '<br>'); | ||
}); | ||
// ========================================================== | ||
@@ -743,2 +744,20 @@ // | ||
/** | ||
* Relative path | ||
* Returns the derived relative path from one to the other. | ||
*/ | ||
Handlebars.registerHelper('relative', function(from, to) { | ||
var relativePath = path.relative(from, to); | ||
if(relativePath === "." || relativePath.length === 0) { | ||
relativePath = dest; | ||
} | ||
relativePath = Utils.urlNormalize(path.relative( | ||
path.resolve(path.join(dest, relative)), | ||
path.resolve(relativePath) | ||
)); | ||
return relativePath; | ||
}); | ||
/** | ||
* Add | ||
@@ -745,0 +764,0 @@ * Returns the sum of two numbers. |
@@ -7,3 +7,3 @@ /* ========================================================== | ||
* | ||
* Copyright (c) 2012 Upside | ||
* Copyright (c) 2012 Upstage | ||
* Licensed under the MIT license. | ||
@@ -10,0 +10,0 @@ * https://github.com/assemble/assemble/blob/master/LICENSE-MIT |
@@ -5,3 +5,3 @@ /* ========================================================== | ||
* | ||
* Copyright (c) 2012 Upside | ||
* Copyright (c) 2012 Upstage | ||
* Licensed under the MIT license. | ||
@@ -8,0 +8,0 @@ * https://github.com/assemble/assemble/blob/master/LICENSE-MIT |
@@ -7,3 +7,3 @@ /* ========================================================== | ||
* | ||
* Copyright (c) 2012 Upside | ||
* Copyright (c) 2012 Upstage | ||
* Licensed under the MIT license. | ||
@@ -15,6 +15,6 @@ * https://github.com/assemble/assemble/blob/master/LICENSE-MIT | ||
var fs = require('fs'), | ||
path = require('path'), | ||
_ = require('lodash'), | ||
extensions = require('../config/extensionMap'), | ||
var fs = require('fs'), | ||
path = require('path'), | ||
_ = require('lodash'), | ||
extensions = require('../config/extensionMap'), | ||
commonPreprocessor = require('./common-preprocessors'); | ||
@@ -21,0 +21,0 @@ |
@@ -7,3 +7,3 @@ /* ========================================================== | ||
* | ||
* Copyright (c) 2012 Upside | ||
* Copyright (c) 2012 Upstage | ||
* Licensed under the MIT license. | ||
@@ -10,0 +10,0 @@ * https://github.com/assemble/assemble/blob/master/LICENSE-MIT |
@@ -7,3 +7,3 @@ /* ========================================================== | ||
* | ||
* Copyright (c) 2012 Upside | ||
* Copyright (c) 2012 Upstage | ||
* Licensed under the MIT license. | ||
@@ -10,0 +10,0 @@ * https://github.com/assemble/assemble/blob/master/LICENSE-MIT |
@@ -7,3 +7,3 @@ /* ========================================================== | ||
* | ||
* Copyright (c) 2012 Upside | ||
* Copyright (c) 2012 Upstage | ||
* Licensed under the MIT license. | ||
@@ -10,0 +10,0 @@ * https://github.com/assemble/assemble/blob/master/LICENSE-MIT |
{ | ||
"name": "assemble", | ||
"description": "Get the rocks out of your socks. Assemble helps you **quickly launch static web projects** by emphasizing a strong separation of concerns between structure, style, content and configuration.", | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"homepage": "https://github.com/assemble/assemble", | ||
@@ -43,15 +43,15 @@ "author": { | ||
"handlebars": "~1.0.9", | ||
"highlight.js": "~7.3.0", | ||
"js-yaml": "~2.0.2", | ||
"lodash": "~1.0.1", | ||
"js-yaml": "~2.0.2", | ||
"marked": "~0.2.8", | ||
"highlight.js": "~7.3.0" | ||
"marked": "~0.2.8" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.0", | ||
"assemble-styles": "~0.2.0", | ||
"testem": "~0.2.68", | ||
"grunt-mocha-test": "~0.2.0", | ||
"chai": "~1.5.0", | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-jshint": "~0.2.0", | ||
"grunt-contrib-watch": "~0.2.0" | ||
"grunt-contrib-watch": "~0.2.0", | ||
"grunt-mocha-test": "~0.2.0", | ||
"testem": "~0.2.68" | ||
}, | ||
@@ -58,0 +58,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
# [Assemble v0.3.13](http://github.com/assemble/assemble) [![Build Status](https://travis-ci.org/assemble/assemble.png?branch=master)](https://travis-ci.org/assemble/assemble) | ||
# [Assemble v0.3.14](http://github.com/assemble/assemble) [![Build Status](https://travis-ci.org/assemble/assemble.png?branch=master)](https://travis-ci.org/assemble/assemble) | ||
@@ -8,2 +8,4 @@ > Get the rocks out of your socks. Assemble helps you **quickly launch static web projects** by emphasizing a strong separation of concerns between structure, style, content and configuration. | ||
#### [Please visit the wiki](http://github.com/assemble/assemble/wiki) | ||
**Table of Contents** | ||
@@ -41,4 +43,2 @@ | ||
## Quick start | ||
@@ -643,3 +643,3 @@ This plugin requires Grunt `~0.4.0` | ||
_This file was generated with Grunt and [assemble](http://github.com/assemble/assemble) on Sat Mar 16 2013 16:47:56._ | ||
_This file was generated with Grunt and [assemble](http://github.com/assemble/assemble) on Mon Mar 18 2013 02:15:52._ | ||
@@ -646,0 +646,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
305284
8664
1
7