-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(skeleton): Provide basic library skeleton
- Loading branch information
1 parent
aed7d82
commit d65cb99
Showing
16 changed files
with
7,552 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"stage": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dist/ | ||
dist-es5-module/ | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "algolia" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
_site | ||
.sass-cache | ||
node_modules/ | ||
dist/ | ||
dist-es5-module/ | ||
npm-debug.log | ||
docs/_site | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
dev/bundle.js* | ||
# we do not want to lock down dependencies when used as an npm dependency, | ||
# only when we build | ||
npm-shrinkwrap.json | ||
demo.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
language: node_js | ||
node_js: 4 | ||
before_install: npm prune | ||
before_cache: npm prune | ||
install: npm install | ||
script: npm test | ||
branches: | ||
only: | ||
- master | ||
- develop | ||
# force container based infra | ||
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/#Routing-your-build-to-container-based-infrastructure | ||
sudo: false | ||
cache: | ||
directories: | ||
- node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import documentationSearch from '../index.js'; | ||
|
||
documentationSearch({ | ||
apiKey: 'aaa', | ||
indexName: 'bbb', | ||
inputSelector: 'ccc' | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | ||
<title>documentationsearch.js</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<!--[if lte IE 9]> | ||
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script> | ||
<![endif]--> | ||
</head> | ||
<body> | ||
<h1>documentationsearch.js</h1> | ||
<h2>Search in docs: <input type="text" id="search-input" /></h2> | ||
|
||
<script src="bundle.js"></script> | ||
</body> | ||
</html> | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* global google */ | ||
|
||
function documentationSearch({ | ||
apiKey, | ||
indexName, | ||
inputSelector | ||
}) { | ||
console.info(apiKey, indexName, inputSelector); | ||
} | ||
|
||
export default documentationSearch; |
Oops, something went wrong.