Skip to content

Commit cd0490f

Browse files
committed
Migrate to jest and prettier
1 parent 30a86dc commit cd0490f

14 files changed

+10935
-4241
lines changed

.github/workflows/codeql-analysis.yml

+29-29
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [master]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [master]
2020
schedule:
21-
- cron: '38 2 * * 1'
21+
- cron: "38 2 * * 1"
2222

2323
jobs:
2424
analyze:
@@ -32,39 +32,39 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'javascript' ]
35+
language: ["javascript"]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v2
40+
- name: Checkout repository
41+
uses: actions/checkout@v2
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v1
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5252

53-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54-
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v1
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
5757

58-
# ℹ️ Command-line programs to run using the OS shell.
59-
# 📚 https://git.io/JvXDl
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
6060

61-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62-
# and modify them (or add more) to build your code if your project
63-
# uses a compiled language
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
#- run: |
66+
# make bootstrap
67+
# make release
6868

69-
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v1
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: node_js
22
node_js:
3-
- "10"
3+
- "20"
44
before_install:
55
- npm install npm@latest -g
66
install:
7-
- npm install
7+
- npm install

README.md

+43-43
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
# "Alexa, ask Fruit Stand, how do I store (fruit | vegetable)..."
2-
3-
[![Build Status](https://travis-ci.org/uncompiled/alexa-fruit-stand.svg?branch=master)](https://travis-ci.org/uncompiled/alexa-fruit-stand)
4-
5-
[![Maintainability](https://api.codeclimate.com/v1/badges/bb990d4c39537fce2ce4/maintainability)](https://codeclimate.com/github/uncompiled/alexa-fruit-stand/maintainability)
6-
7-
Fruit Stand is an Alexa Skill that responds with information
8-
regarding how to store particular fruits or vegetables.
9-
10-
## Getting Started
11-
12-
- `alexa-skill.js` comes directly from the Amazon Alexa Skills Kit
13-
- `index.js` contains the core Alexa skill
14-
- `instructions.js` contains the responses for each item
15-
- `speechAssets` contains the Intent schema and slot metadata used to configure the skill
16-
17-
### Testing
18-
19-
- `npm test` will run the tests to ensure the project runs
20-
21-
### Deployment
22-
23-
- `npm run items` to generate the list of items for the Alexa interaction model
24-
- `serverless deploy` to deploy as an AWS Lambda
25-
26-
NOTE: The Alexa skill ID is [in the code](https://github.com/uncompiled/alexa-fruit-stand/blob/master/src/index.js#L7),
27-
so if you adapt this code for something else, you'll want to change it.
28-
29-
## Contributions
30-
31-
Contributions are welcome. If you'd like to add support for new fruits and vegetables,
32-
please create an issue before you submit a PR using the [new item template](.github/NEW_ITEM_TEMPLATE.md).
33-
34-
## Credits
35-
36-
- Based on examples from the [Alexa Skills Kit](https://github.com/amzn/alexa-skills-kit-js)
37-
- Information comes from [UC Davis Postharvest Technology](http://ucce.ucdavis.edu/files/datastore/234-1920.pdf)
38-
- Idea from the mind of @street_pizza
39-
- Fruit Basket by Boudewijn Mijnlieff from the Noun Project
40-
41-
## License
42-
43-
Apache 2.0
1+
# "Alexa, ask Fruit Stand, how do I store (fruit | vegetable)..."
2+
3+
[![Build Status](https://travis-ci.org/uncompiled/alexa-fruit-stand.svg?branch=master)](https://travis-ci.org/uncompiled/alexa-fruit-stand)
4+
5+
[![Maintainability](https://api.codeclimate.com/v1/badges/bb990d4c39537fce2ce4/maintainability)](https://codeclimate.com/github/uncompiled/alexa-fruit-stand/maintainability)
6+
7+
Fruit Stand is an Alexa Skill that responds with information
8+
regarding how to store particular fruits or vegetables.
9+
10+
## Getting Started
11+
12+
- `alexa-skill.js` comes directly from the Amazon Alexa Skills Kit
13+
- `index.js` contains the core Alexa skill
14+
- `instructions.js` contains the responses for each item
15+
- `speechAssets` contains the Intent schema and slot metadata used to configure the skill
16+
17+
### Testing
18+
19+
- `npm test` will run the tests to ensure the project runs
20+
21+
### Deployment
22+
23+
- `npm run items` to generate the list of items for the Alexa interaction model
24+
- `serverless deploy` to deploy as an AWS Lambda
25+
26+
NOTE: The Alexa skill ID is [in the code](https://github.com/uncompiled/alexa-fruit-stand/blob/master/src/index.js#L7),
27+
so if you adapt this code for something else, you'll want to change it.
28+
29+
## Contributions
30+
31+
Contributions are welcome. If you'd like to add support for new fruits and vegetables,
32+
please create an issue before you submit a PR using the [new item template](.github/NEW_ITEM_TEMPLATE.md).
33+
34+
## Credits
35+
36+
- Based on examples from the [Alexa Skills Kit](https://github.com/amzn/alexa-skills-kit-js)
37+
- Information comes from [UC Davis Postharvest Technology](http://ucce.ucdavis.edu/files/datastore/234-1920.pdf)
38+
- Idea from the mind of @street_pizza
39+
- Fruit Basket by Boudewijn Mijnlieff from the Noun Project
40+
41+
## License
42+
43+
Apache 2.0

0 commit comments

Comments
 (0)