Skip to content

Commit 5244bea

Browse files
committed
Enable Travis
1 parent 95777bf commit 5244bea

File tree

6 files changed

+103
-18
lines changed

6 files changed

+103
-18
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ root = true
44
[*]
55
charset = utf-8
66
indent_style = space
7-
indent_size = 2
7+
indent_size = 4
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

README.md

+26-13
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,40 @@
11
# Natural
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.7.
3+
[![Build Status](https://travis-ci.org/Ecodev/natural.svg?branch=master)](https://travis-ci.org/Ecodev/natural)
4+
[![Total Downloads](https://img.shields.io/npm/dt/@ecodev/natural.svg)](https://www.npmjs.com/package/@ecodev/natural)
5+
[![Latest Stable Version](https://img.shields.io/npm/v/@ecodev/natural.svg)](https://www.npmjs.com/package/@ecodev/natural)
6+
[![License](https://img.shields.io/npm/l/@ecodev/natural.svg)](https://www.npmjs.com/package/@ecodev/natural)
7+
[![Join the chat at https://gitter.im/Ecodev/natural](https://badges.gitter.im/Ecodev/natural.svg)](https://gitter.im/Ecodev/natural)
48

5-
## Development server
9+
This project is a collection of Angular Material components and various utilities classes for Angular projects.
610

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
811

9-
## Code scaffolding
12+
## Install
1013

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
14+
```bash
15+
yarn add @ecodev/natural
16+
```
1217

13-
## Build
18+
## Development
1419

15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
20+
The most useful commands for development are:
1621

17-
## Running unit tests
22+
- `yarn dev` to start a development server
23+
- `yarn build-docs` to build the docs locally (it will be published automatically by Travis)
24+
- `yarn release` to publish the lib to npm
1825

19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
2026

21-
## Running end-to-end tests
27+
## Components
2228

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
29+
### Natural Search
2430

25-
## Further help
2631

27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
32+
This is an Angular component to search for things via configurable facets. Facets may be
33+
configured to use one of the built-in component, or a custom component to input values.
34+
35+
See the component in action on [the demo page](https://ecodev.github.io/natural).
36+
37+
#### Prior work
38+
39+
While the implementation is entirely different, [VisualSearch.js
40+
](https://github.com/documentcloud/visualsearch/) was an important inspiration.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
"@angular/compiler": "~7.2.0",
2222
"@angular/core": "~7.2.0",
2323
"@angular/flex-layout": "^7.0.0-beta.24",
24-
"@angular/material": "^7.3.7",
2524
"@angular/forms": "~7.2.0",
25+
"@angular/material": "^7.3.7",
2626
"@angular/platform-browser": "~7.2.0",
2727
"@angular/platform-browser-dynamic": "~7.2.0",
2828
"@angular/router": "~7.2.0",
@@ -64,6 +64,7 @@
6464
"karma-jasmine-html-reporter": "^0.2.2",
6565
"ng-packagr": "^4.2.0",
6666
"protractor": "~5.4.0",
67+
"puppeteer": "^1.14.0",
6768
"scss-bundle": "^2.5.1",
6869
"ts-node": "~7.0.0",
6970
"tsickle": ">=0.34.0",

projects/natural/karma.conf.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Karma configuration file, see link for more information
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

4+
// Use puppeteer to control a headless Chrome
5+
process.env.CHROME_BIN = require('puppeteer').executablePath();
6+
47
module.exports = function (config) {
58
config.set({
69
basePath: '',
@@ -26,6 +29,12 @@ module.exports = function (config) {
2629
logLevel: config.LOG_INFO,
2730
autoWatch: true,
2831
browsers: ['Chrome'],
32+
customLaunchers: {
33+
ChromeHeadlessCustom: {
34+
base: 'ChromeHeadless',
35+
flags: ['--no-sandbox'],
36+
},
37+
},
2938
singleRun: false,
3039
restartOnFileChange: true
3140
});

src/karma.conf.js

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// Karma configuration file, see link for more information
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
33

4+
// Use puppeteer to control a headless Chrome
5+
process.env.CHROME_BIN = require('puppeteer').executablePath();
6+
47
module.exports = function (config) {
58
config.set({
69
basePath: '',
@@ -26,6 +29,12 @@ module.exports = function (config) {
2629
logLevel: config.LOG_INFO,
2730
autoWatch: true,
2831
browsers: ['Chrome'],
32+
customLaunchers: {
33+
ChromeHeadlessCustom: {
34+
base: 'ChromeHeadless',
35+
flags: ['--no-sandbox'],
36+
},
37+
},
2938
singleRun: false,
3039
restartOnFileChange: true
3140
});

yarn.lock

+56-3
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,7 @@ [email protected]:
24942494
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
24952495
integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=
24962496

2497-
concat-stream@^1.5.0:
2497+
concat-stream@1.6.2, concat-stream@^1.5.0:
24982498
version "1.6.2"
24992499
resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34"
25002500
integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==
@@ -3488,6 +3488,16 @@ extract-stack@^1.0.0:
34883488
resolved "https://registry.yarnpkg.com/extract-stack/-/extract-stack-1.0.0.tgz#b97acaf9441eea2332529624b732fc5a1c8165fa"
34893489
integrity sha1-uXrK+UQe6iMyUpYktzL8WhyBZfo=
34903490

3491+
extract-zip@^1.6.6:
3492+
version "1.6.7"
3493+
resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.7.tgz#a840b4b8af6403264c8db57f4f1a74333ef81fe9"
3494+
integrity sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=
3495+
dependencies:
3496+
concat-stream "1.6.2"
3497+
debug "2.6.9"
3498+
mkdirp "0.5.1"
3499+
yauzl "2.4.1"
3500+
34913501
34923502
version "1.3.0"
34933503
resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05"
@@ -3537,6 +3547,13 @@ faye-websocket@~0.11.1:
35373547
dependencies:
35383548
websocket-driver ">=0.5.1"
35393549

3550+
fd-slicer@~1.0.1:
3551+
version "1.0.1"
3552+
resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65"
3553+
integrity sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=
3554+
dependencies:
3555+
pend "~1.2.0"
3556+
35403557
figgy-pudding@^3.4.1, figgy-pudding@^3.5.1:
35413558
version "3.5.1"
35423559
resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790"
@@ -5774,7 +5791,7 @@ mime@^1.4.1:
57745791
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
57755792
integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==
57765793

5777-
mime@^2.3.1:
5794+
mime@^2.0.3, mime@^2.3.1:
57785795
version "2.4.2"
57795796
resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.2.tgz#ce5229a5e99ffc313abac806b482c10e7ba6ac78"
57805797
integrity sha512-zJBfZDkwRu+j3Pdd2aHsR5GfH2jIWhmL1ZzBoc+X+3JEti2hbArWcyJ+1laC1D2/U/W1a/+Cegj0/OnEU2ybjg==
@@ -5898,7 +5915,7 @@ mixin-object@^2.0.1:
58985915
for-in "^0.1.3"
58995916
is-extendable "^0.1.1"
59005917

5901-
[email protected], "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0:
5918+
[email protected].1, [email protected].x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.0:
59025919
version "0.5.1"
59035920
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903"
59045921
integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=
@@ -6797,6 +6814,11 @@ pbkdf2@^3.0.3:
67976814
safe-buffer "^5.0.1"
67986815
sha.js "^2.4.8"
67996816

6817+
pend@~1.2.0:
6818+
version "1.2.0"
6819+
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
6820+
integrity sha1-elfrVQpng/kRUzH89GY9XI4AelA=
6821+
68006822
performance-now@^2.1.0:
68016823
version "2.1.0"
68026824
resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b"
@@ -6940,6 +6962,11 @@ process@^0.11.10:
69406962
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
69416963
integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI=
69426964

6965+
progress@^2.0.1:
6966+
version "2.0.3"
6967+
resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8"
6968+
integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==
6969+
69436970
promise-inflight@^1.0.1:
69446971
version "1.0.1"
69456972
resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3"
@@ -7010,6 +7037,11 @@ proxy-addr@~2.0.4:
70107037
forwarded "~0.1.2"
70117038
ipaddr.js "1.9.0"
70127039

7040+
proxy-from-env@^1.0.0:
7041+
version "1.0.0"
7042+
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee"
7043+
integrity sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=
7044+
70137045
prr@~1.0.1:
70147046
version "1.0.1"
70157047
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
@@ -7077,6 +7109,20 @@ punycode@^2.1.0:
70777109
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"
70787110
integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==
70797111

7112+
puppeteer@^1.14.0:
7113+
version "1.14.0"
7114+
resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-1.14.0.tgz#828c1926b307200d5fc8289b99df4e13e962d339"
7115+
integrity sha512-SayS2wUX/8LF8Yo2Rkpc5nkAu4Jg3qu+OLTDSOZtisVQMB2Z5vjlY2TdPi/5CgZKiZroYIiyUN3sRX63El9iaw==
7116+
dependencies:
7117+
debug "^4.1.0"
7118+
extract-zip "^1.6.6"
7119+
https-proxy-agent "^2.2.1"
7120+
mime "^2.0.3"
7121+
progress "^2.0.1"
7122+
proxy-from-env "^1.0.0"
7123+
rimraf "^2.6.1"
7124+
ws "^6.1.0"
7125+
70807126
70817127
version "1.4.1"
70827128
resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e"
@@ -9535,6 +9581,13 @@ yarn@^1.15.0:
95359581
resolved "https://registry.yarnpkg.com/yarn/-/yarn-1.15.2.tgz#7a064ca81ca34235f16376ad2f796ed432f9e285"
95369582
integrity sha512-DhqaGe2FcYKduO42d2hByXk7y8k2k42H3uzYdWBMTvcNcgWKx7xCkJWsVAQikXvaEQN2GyJNrz8CboqUmaBRrw==
95379583

9584+
9585+
version "2.4.1"
9586+
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005"
9587+
integrity sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=
9588+
dependencies:
9589+
fd-slicer "~1.0.1"
9590+
95389591
95399592
version "0.1.2"
95409593
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"

0 commit comments

Comments
 (0)