Skip to content

Commit

Permalink
Updated sources
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilym committed Jul 21, 2020
1 parent 6ddfd4f commit fdcf6df
Show file tree
Hide file tree
Showing 225 changed files with 9,222 additions and 4,607 deletions.
133 changes: 133 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
module.exports = {
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"env": {
"node": true,
"es6": true,
},
"extends": [
// Ideally want to use airbnb config, but that is leading to module not found error for vscode
// "airbnb",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:eslint-comments/recommended",
// Disable below extends and parser options if having performance issues
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md
'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
"rules": {


// ---------------------------------------------------------
// --- Rules from eslint:recommended that we override
// ---------------------------------------------------------
"no-unused-vars": "off", // because it flags types that are imported for type declarations (but otherwise unused).
"no-undef": "off", // because if flags lack of import for Set. // TODO: fix the issues and remove this override.

// ---------------------------------------------------------
// --- Rules that we add and/or customize
// ---------------------------------------------------------

"eqeqeq": ["error", "smart"],
"guard-for-in": "error",
"id-blacklist": ["error", "any", "Number", "number", "String", "string", "Boolean", "boolean", "Undefined", "undefined"],
"id-match": "error",
"import/no-extraneous-dependencies": ["off", { "devDependencies": false }],
"indent": "off",
"new-parens": "error",
"no-caller": "error",
"no-duplicate-imports": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": ["off", { "hoist": "all" }],
"no-undef-init": "error",
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"prefer-const": "error",
"prefer-object-spread": "error",
"radix": "error",

// -- Rules from @typescript-eslint
"@typescript-eslint/strict-boolean-expressions": ["error"], // avoids frequent sources of errors: 0, "", Promise<T>, null vs undefined
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"Object": { "message": "Avoid using the `Object` type. Did you mean `object`?" },
"Function": { "message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`." },
"Boolean": { "message": "Avoid using the `Boolean` type. Did you mean `boolean`?" },
"Number": { "message": "Avoid using the `Number` type. Did you mean `number`?" },
"String": { "message": "Avoid using the `String` type. Did you mean `string`?"},
"Symbol": { "message": "Avoid using the `Symbol` type. Did you mean `symbol`?" }
}
}
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/explicit-member-accessibility": ["off", { "accessibility": "explicit" }],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-floating-promises": [ "error"], // prevent those nasty forgotten promises !
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "always",
"types": "prefer-import",
"lib": "always"
}
],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unified-signatures": "error",

// -- Rules form tsdoc
// "tsdoc/syntax": "warn", // TODO: enable once we have better tsdoc coverage
},
// parserOptions: {
// project: "./tsconfig.json",
// },
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
// Disable below extends and parser options if having performance issues
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md
"tsconfigRootDir": __dirname,
"project": "./tsconfig.json",
},
"settings": {
"import/extensions": [".js",".jsx",".ts",".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts",".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js",".jsx",".ts",".tsx"]
},
// use <root>/tsconfig.json
"typescript": {
// "alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`,
// "directory": "./"
},
}
}
};
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Bug report
about: Create a report to help us improve the Alexa Skill Toolkit for Visual Studio Code
labels: bug
---

**Describe the bug**

<!-- A clear and concise description of what the bug is. -->

**To Reproduce**

<!--
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
5. Change log options to `verbose` in extension settings
6. Open `ASK Toolkit` Output window, and provide the logs
-->

**Extension Logs**

<!--
1. Change log options to `verbose` in extension settings
2. Open `ASK Toolkit` Output window, and provide the logs
-->

**Expected behavior**

<!-- A clear and concise description of what you expected to happen. -->

**Screenshots**

<!-- If applicable, add screenshots to help explain your problem. -->

**Desktop (please complete the following information):**

<!-- Tip: Use the 'Alexa: About Alexa Skills Toolkit' in the Command Palette. -->

- OS:
- Visual Studio Code Version:
- Alexa Skill Toolkit Version:

**Additional context**

<!-- Add any other context about the problem here. -->
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Feature request
about: Suggest an idea for the Alexa Skill Toolkit for Visual Studio Code
labels: feature-request
---

**Is your feature request related to a problem? Please describe.**

<!-- A clear and concise description of what the problem is. -->

**Describe the solution you'd like**

<!-- A clear and concise description of what you want to happen. -->

**Describe alternatives you've considered**

<!-- A clear and concise description of any alternative solutions or features you've considered. -->

**Additional context**

<!-- Add any other context or screenshots about the feature request here. -->
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/guidance_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Ask a question
about: Ask for guidance, "how to", or other questions
labels: guidance
---

**Desktop (please complete the following information):**

<!-- Tip: Use the 'Alexa: About Alexa Skills Toolkit' in the Command Palette. -->

- OS:
- VS Code version:
- Alexa Skill Toolkit extension version:

**Question**

<!-- Summary of the topic, followed by relevant details/context. -->
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ node_modules
npm-debug.log
.idea/
package-lock.json
.nyc_output
.nyc_output
dist/
8 changes: 5 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,28 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
// "--disable-extensions", // uncomment this for performance testing
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/dist/*.js"
],
"preLaunchTask": "npm: compile"
"preLaunchTask": "npm: webpack"
},
{
"name": "Extension Tests", // needed for compiling and running unit test for ts files
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"outFiles": [
"${workspaceFolder}/out/test/**/*.js"
],
"preLaunchTask": "npm: watch"
"preLaunchTask": "npm: test-compile"
}
]
}
18 changes: 18 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.vscode/**
.vscode-test/**
out/test/**
out/**/*.map
src/**
.gitignore
tsconfig.json
tslint.json
.idea/**

# Extra webpack files
.vscode
node_modules
out/
src/
tsconfig.json
webpack.config.js

32 changes: 18 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
## Nov 20, 2018
v1.0.0
- Added UI for runtime selection (Python / Node.js) when creating a new skill.
- Added Python SDK Snippets suggestions.
- ASK toolkit is now Generally Available.
## 2.0.0 - Jul 21, 2020

Updated sources.

## 1.0.3 - Apr 15, 2020

- Updated Error message prompt and docs to mention explicit ASK CLI v1 version dependency.

## 1.0.2 - Sep 26, 2019

- Deprecate opn module and change to open module.
- Move the latest manifest json validation schema to new s3 bucket.

## 1.0.1 - Feb 10, 2019

## Feb 10, 2019
v1.0.1
- Support one high level command: ask dialog.
- Support some low level commands in beta-test and catalog category.
- Add a new snippet for a new AMAZON built-in intent: SelectIntent.

## Sep 26, 2019
v1.0.2
- Deprecate opn module and change to open module.
- Move the latest manifest json validation schema to new s3 bucket.
## 1.0.0 - Nov 20, 2018

## April 15, 2020
v1.0.3
- Updated Error message prompt and docs to mention explicit ASK CLI v1 version dependency.
- Added UI for runtime selection (Python / Node.js) when creating a new skill.
- Added Python SDK Snippets suggestions.
- ASK toolkit is now Generally Available.
5 changes: 2 additions & 3 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
Expand Down Expand Up @@ -187,8 +186,8 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2018 Amazon.com, Inc.
Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand Down
4 changes: 2 additions & 2 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ASK (Alexa Skills Kit) toolkit for Visual Studio Code
Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Alexa Skills Toolkit for Visual Studio Code
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
Loading

0 comments on commit fdcf6df

Please sign in to comment.