(v0.6.0) Bumped version to 0.6.0

This commit is contained in:
Josh Goldberg
2016-12-26 03:26:33 -05:00
parent 1a9cfe711c
commit 244aa3cb02
6 changed files with 8 additions and 103 deletions
+4
View File
@@ -4,7 +4,11 @@ src/**/*.css
src/**/*.d.ts
src/**/*.js*
~src/main.js
test/index.html
test/main.*
test/utils/MochaLoader.*
test/**/*.js
test/**/*.d.ts
node_modules/
npm-debug.log
test/index.html
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "stringfilr",
"description": "A path-based cache for quick loops in nested data structures.",
"version": "0.5.3",
"version": "0.6.0",
"author": {
"name": "Josh Goldberg",
"email": "joshuakgoldberg@outlook.com"
@@ -15,6 +15,6 @@
},
"license": "MIT",
"devDependencies": {
"gulp-shenanigans": "^0.5.20"
"gulp-shenanigans": "0.6.X"
}
}
+1 -1
View File
@@ -2,6 +2,6 @@
"package": {
"description": "A path-based cache for quick loops in nested data structures.",
"name": "StringFilr",
"version": "0.5.3"
"version": "0.6.0"
}
}
-40
View File
@@ -1,40 +0,0 @@
<!-- This file was auto-generated by gulp-shenanigans -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>StringFilr Tests</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<!-- Dependencies: Begin -->
<script type="text/javascript">
window.testDependencies = [
];
</Script>
<!-- Dependencies: End -->
<!-- Externals: Begin -->
<!-- Externals: End -->
<!-- Tests: Begin -->
<script type="text/javascript">
window.testPaths = [
"main",
"StringFilr/_",
"utils/MochaLoader",
"utils/mocks"
];
</script>
<!-- Tests: End -->
<script src="../node_modules/chai/chai.js" type="text/javascript"></script>
<script src="../node_modules/mocha/mocha.js" type="text/javascript"></script>
<script data-main="main.js" src="../node_modules/requirejs/require.js" type="text/javascript"></script>
</body>
</html>
-59
View File
@@ -1,59 +0,0 @@
/* This file was auto-generated by gulp-shenanigans */
import { MochaLoader } from "./utils/MochaLoader";
declare var requirejs: any;
declare var testDependencies: string[];
declare var testPaths: string[];
export const mochaLoader: MochaLoader = new MochaLoader(mocha);
/**
* Informs RequireJS of the file location for a test dependency.
*
* @param testDependencies Modules depended upon for tests.
*/
function redirectTestDependencies(dependencies: string[]): void {
for (const dependency of dependencies) {
requirejs.config({
paths: {
[dependency.toLowerCase() + "/lib"]: `../node_modules/${dependency}/src`
}
});
}
}
/**
* Recursively loads test paths under mocha loader.
*
* @param loadingPaths Test paths to load.
* @param i Which index test path to load.
* @param onComplete A callback for when loading is done.
*/
function loadTestPaths(loadingPaths: string[], i: number, onComplete: () => void): void {
"use strict";
if (i >= loadingPaths.length) {
onComplete();
return;
}
mochaLoader.setTestPath(loadingPaths[i]);
requirejs(
[loadingPaths[i]],
(): void => {
loadTestPaths(loadingPaths, i + 1, onComplete);
});
}
((): void => {
redirectTestDependencies(testDependencies);
loadTestPaths(
testPaths,
0,
(): void => {
mochaLoader.describeTests();
mochaLoader.run();
});
})();
+1 -1
View File
@@ -5,6 +5,6 @@ import { StringFilr } from "../../src/StringFilr";
* @param settings Settings for the StringFilr.
* @returns An StringFilr instance.
*/
export function mockStringFilr(settings: IStringFilrSettings<any>): IStringFilr<any> {
export function stubStringFilr(settings: IStringFilrSettings<any>): IStringFilr<any> {
return new StringFilr(settings);
}