fix
This commit is contained in:
11
book/node_modules/lunr/build/bower.json.template
generated
vendored
Normal file
11
book/node_modules/lunr/build/bower.json.template
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "lunr.js",
|
||||
"version": "@VERSION",
|
||||
"main": "lunr.js",
|
||||
"ignore": [
|
||||
"tests/",
|
||||
"perf/",
|
||||
"build/",
|
||||
"docs/"
|
||||
]
|
||||
}
|
9
book/node_modules/lunr/build/component.json.template
generated
vendored
Normal file
9
book/node_modules/lunr/build/component.json.template
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "lunr",
|
||||
"repo": "olivernn/lunr.js",
|
||||
"version": "@VERSION",
|
||||
"description": "Simple full-text search in your browser.",
|
||||
"license": "MIT",
|
||||
"main": "lunr.js",
|
||||
"scripts": ["lunr.js"]
|
||||
}
|
24
book/node_modules/lunr/build/package.json.template
generated
vendored
Normal file
24
book/node_modules/lunr/build/package.json.template
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "lunr",
|
||||
"description": "Simple full-text search in your browser.",
|
||||
"version": "@VERSION",
|
||||
"author": "Oliver Nightingale",
|
||||
"keywords": ["search"],
|
||||
"homepage": "http://lunrjs.com",
|
||||
"bugs": "http://github.com/olivernn/lunr.js/issues",
|
||||
"main": "lunr.js",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/olivernn/lunr.js.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"dox": "0.4.4",
|
||||
"dox-template": "0.1.1",
|
||||
"phantomjs": "1.8.1-3",
|
||||
"uglify-js": "2.4.13"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "make test"
|
||||
}
|
||||
}
|
79
book/node_modules/lunr/build/release.sh
generated
vendored
Executable file
79
book/node_modules/lunr/build/release.sh
generated
vendored
Executable file
@ -0,0 +1,79 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
file_has_changed () {
|
||||
if [ ! -f $1 ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
for f in `git ls-files --modified`; do
|
||||
[[ "$f" == "$1" ]] && return 0
|
||||
done
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
version_is_unique () {
|
||||
for v in `git tag -l`; do
|
||||
[[ "$v" == "v$1" ]] && return 1
|
||||
done
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
on_master_branch () {
|
||||
[[ $(git symbolic-ref --short -q HEAD) == "master" ]] && return 0
|
||||
return 1
|
||||
}
|
||||
|
||||
version=$(cat VERSION)
|
||||
previous_version=$(git describe --abbrev=0)
|
||||
|
||||
if ! on_master_branch; then
|
||||
echo -e "\033[0;31mRefusing to release from non master branch.\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! file_has_changed "VERSION"; then
|
||||
echo -e "\033[0;31mRefusing to release because VERSION has not changed.\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! file_has_changed "CHANGELOG.mdown"; then
|
||||
echo -e "\033[0;31mRefusing to release because CHANGELOG.ms has not been updated.\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! file_has_changed "package.json"; then
|
||||
echo -e "\033[0;31mRefusing to release because package.json has not been updated.\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! version_is_unique $version; then
|
||||
echo -e "\033[0;31mRefusing to release because VERSION is not unique.\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo -e "\033[1mAbout to release v$version with the following changes:\033[0m"
|
||||
git log --date=short --pretty=format:"%ad %h%x09%an%x09%s" $previous_version..HEAD
|
||||
|
||||
echo
|
||||
|
||||
echo -e "\033[1mThe following files will be part of the release commit:\033[0m"
|
||||
git ls-files --modified
|
||||
|
||||
echo
|
||||
|
||||
read -e -p "Are you sure you want to release? " -n 1 -r
|
||||
echo
|
||||
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo -e "\033[0;32mReleasing...\033[0m"
|
||||
echo
|
||||
git commit -a -m "Build version $version"
|
||||
git tag -a v$version -m "Version $version"
|
||||
git push origin master
|
||||
git push --tags
|
||||
|
||||
npm publish
|
||||
else
|
||||
echo -e "\033[0;31mCancelling...\033[0m"
|
||||
fi
|
29
book/node_modules/lunr/build/wrapper_end
generated
vendored
Normal file
29
book/node_modules/lunr/build/wrapper_end
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
/**
|
||||
* export the module via AMD, CommonJS or as a browser global
|
||||
* Export code from https://github.com/umdjs/umd/blob/master/returnExports.js
|
||||
*/
|
||||
;(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define(factory)
|
||||
} else if (typeof exports === 'object') {
|
||||
/**
|
||||
* Node. Does not work with strict CommonJS, but
|
||||
* only CommonJS-like enviroments that support module.exports,
|
||||
* like Node.
|
||||
*/
|
||||
module.exports = factory()
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
root.lunr = factory()
|
||||
}
|
||||
}(this, function () {
|
||||
/**
|
||||
* Just return a value to define the module export.
|
||||
* This example returns an object, but the module
|
||||
* can return a function as the exported value.
|
||||
*/
|
||||
return lunr
|
||||
}))
|
||||
})();
|
9
book/node_modules/lunr/build/wrapper_start
generated
vendored
Normal file
9
book/node_modules/lunr/build/wrapper_start
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
/**
|
||||
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - @VERSION
|
||||
* Copyright (C) @YEAR Oliver Nightingale
|
||||
* MIT Licensed
|
||||
* @license
|
||||
*/
|
||||
|
||||
;(function(){
|
||||
|
Reference in New Issue
Block a user