Skip to content

Commit

Permalink
chore(skeleton): Provide basic library skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelastic committed Nov 26, 2015
1 parent aed7d82 commit d65cb99
Show file tree
Hide file tree
Showing 16 changed files with 7,552 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"stage": 2
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
dist-es5-module/
docs/
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "algolia"
}
8 changes: 6 additions & 2 deletions .gitignore
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

5 changes: 5 additions & 0 deletions .npmignore
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
16 changes: 16 additions & 0 deletions .travis.yml
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
7 changes: 7 additions & 0 deletions dev/app.js
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'
});
19 changes: 19 additions & 0 deletions dev/index.html
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 added dev/style.css
Empty file.
11 changes: 11 additions & 0 deletions index.js
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;
Loading

0 comments on commit d65cb99

Please sign in to comment.