Merge remote-tracking branch 'origin/next' into next

This commit is contained in:
Leo Horie 2015-11-12 23:31:06 -05:00
commit 4de23eb5c8
5 changed files with 21 additions and 13 deletions

View file

@ -1,7 +1,8 @@
/* eslint-env node */ /* eslint-env node */
module.exports = function (grunt) { // eslint-disable-line module.exports = function (grunt) { // eslint-disable-line
var version = "0.2.1"
var pkg = grunt.file.readJSON("package.json")
var currentYear = grunt.template.today("yyyy")
var inputFolder = "./docs" var inputFolder = "./docs"
var tempFolder = "./temp" var tempFolder = "./temp"
var archiveFolder = "./archive" var archiveFolder = "./archive"
@ -72,7 +73,7 @@ module.exports = function (grunt) { // eslint-disable-line
makeTasks("guide", guide) makeTasks("guide", guide)
makeTasks("api", api) makeTasks("api", api)
var currentVersionArchiveFolder = archiveFolder + "/v" + version var currentVersionArchiveFolder = archiveFolder + "/v" + pkg.version
grunt.initConfig({ grunt.initConfig({
// Keep this in sync with the .eslintignore // Keep this in sync with the .eslintignore
@ -107,10 +108,10 @@ module.exports = function (grunt) { // eslint-disable-line
options: { options: {
banner: [ banner: [
"/*", "/*",
"Mithril v" + version, pkg.name + " v" + pkg.version,
"http://github.com/lhorie/mithril.js", pkg.homepage,
"(c) Leo Horie", "(c) 2014-" + currentYear + " " + pkg.author.name,
"License: MIT", "License: " + pkg.license,
"*/" "*/"
].join("\n"), ].join("\n"),
sourceMap: true sourceMap: true
@ -135,7 +136,7 @@ module.exports = function (grunt) { // eslint-disable-line
force: true, force: true,
patterns: [ patterns: [
{match: /\.md/g, replacement: ".html"}, {match: /\.md/g, replacement: ".html"},
{match: /\$version/g, replacement: version} {match: /\$version/g, replacement: pkg.version}
] ]
}, },
@ -232,7 +233,7 @@ module.exports = function (grunt) { // eslint-disable-line
expand: true, expand: true,
cwd: currentVersionArchiveFolder, cwd: currentVersionArchiveFolder,
src: "./**", src: "./**",
dest: outputFolder + "/archive/v" + version dest: outputFolder + "/archive/v" + pkg.version
} }
}, },

View file

@ -1,7 +1,7 @@
void (function (global, factory) { // eslint-disable-line void (function (global, factory) { // eslint-disable-line
"use strict" "use strict"
/* eslint-disable no-undef */ /* eslint-disable no-undef */
var m = factory(window) var m = factory(typeof window !== "undefined" ? window : {})
if (typeof module === "object" && module != null && module.exports) { if (typeof module === "object" && module != null && module.exports) {
module.exports = m module.exports = m
} else if (typeof define === "function" && define.amd) { } else if (typeof define === "function" && define.amd) {

2
mithril.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,11 +1,19 @@
{ {
"name": "mithril", "name": "Mithril",
"description": "Mithril.js beta build - use this to help us test the releases before they are released", "description": "Mithril.js beta build - use this to help us test the releases before they are released",
"version": "0.2.1", "version": "0.2.1",
"homepage": "http://mithril.js.org",
"license": "MIT",
"author": {
"name": "Leo Horie"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@github.com:lhorie/mithril.js.git" "url": "git@github.com:lhorie/mithril.js.git"
}, },
"bugs": {
"url" : "http://github.com/lhorie/mithril.js/issues"
},
"scripts": { "scripts": {
"test": "grunt test" "test": "grunt test"
}, },
@ -33,7 +41,6 @@
"sinon": "^1.17.2", "sinon": "^1.17.2",
"sinon-chai": "^2.8.0" "sinon-chai": "^2.8.0"
}, },
"license": "MIT",
"files": [ "files": [
"mithril.min.js", "mithril.min.js",
"mithril.min.js.map", "mithril.min.js.map",