diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..11cbe2d7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,20 @@ +--- +name: New Issue +about: This is not a feature or a bug +title: 'Issue: ' +labels: '' +--- + +# Issue Details + +## Current Litexa Version + +## Current Behavior + +## Desired Behavior + +## Additional Information + +```javascript +// code samples +``` diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md new file mode 100644 index 00000000..581cdb0f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -0,0 +1,27 @@ +--- +name: Create a bug report +about: Report something that's broken +title: 'Bug: ' +labels: 'bug' +--- + +# Bug Report + +## Litexa Version + +## Current Behavior + +## Expected Behavior + +## Steps to Reproduce + +## Additional Information + + +## Operating System + +## Node Version + +```javascript +// code samples +``` diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/ISSUE_TEMPLATE/feature.md new file mode 100644 index 00000000..93e95ba8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature.md @@ -0,0 +1,20 @@ +--- +name: Create a feature request +about: Suggest an idea for improvement +title: 'Feature: ' +labels: 'feature' +--- + +# Feature Request + +## Current Litexa Version + +## Current Behavior + +## Desired Behavior + +## Additional Information + +```javascript +// code samples +``` diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 00000000..941421c0 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,49 @@ +# Title + + + +## Description + + + +## Motivation and Context + + + + +## Testing + + + + + +## Types of changes + + + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to change) + +## Checklist + + + + +- [ ] My code follows the code style of this project +- [ ] My change requires a change to the documentation +- [ ] I have updated the documentation accordingly +- [ ] I have read the **README** document +- [ ] I have added tests to cover my changes +- [ ] All new and existing tests passed + +## License + + + + +- [ ] I confirm that this pull request can be released under the Apache 2 license + +[issues]: https://github.com/alexa-games/litexa/issues +[license]: https://www.apache.org/licenses/LICENSE-2.0 +[cla]: http://en.wikipedia.org/wiki/Contributor_License_Agreement diff --git a/.github/semantic.yml b/.github/semantic.yml new file mode 100644 index 00000000..4168a3cd --- /dev/null +++ b/.github/semantic.yml @@ -0,0 +1,2 @@ +# Always validate the PR title, and ignore the commits +titleOnly: true diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 00000000..f8af9d7e --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,8 @@ +# Code of Conduct + +This project has adopted the +[Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct). +For more information see the +[Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact +[opensource-codeofconduct@amazon.com](mailto:opensource-codeofconduct@amazon.com) +with any additional questions or comments. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..29d1d5f3 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,118 @@ +# Contributions Welcome + +Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, +correction, or additional documentation, we greatly value feedback and contributions from our +community. + +Please read through this document before submitting any issues or pull requests to ensure we have +all the necessary information to effectively respond to your bug report or contribution. + +If you're looking to report a bug or would like to propose a new feature, please follow the +[bug and potential feature workflow](#reporting-bugs-and-potential-features). + +If you'd like to submit your own changes to the Litexa codebase, please follow the +[contribution workflow](#contribution-workflow). If you want to ask for high-level but still +commit-based feedback for a contribution, please follow the +[request for comments](#request-for-comments) steps instead. + +## Reporting Bugs and Potential Features + +We welcome you to use the GitHub issue tracker to report bugs or suggest features. + +When filing an issue, please check +[existing open](https://github.com/alexa-games/litexa/issues) and +[recently closed](https://github.com/alexa-games/litexa/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20) +issues to make sure somebody else hasn't already reported the issue. Please try to include as much +information as you can. + +For bugs, these details are very useful: + +* test case or series of steps to reproduce the bug +* commit hash or NPM package version used +* anything unusual about your environment or deployment + +For feature requests, these details are very useful: + +* exact use case(s) for which the feature would be useful +* exit criteria (when would this feature be considered complete) + +## Contribution Workflow + +Litexa applies the “fork-and-pull” development model. Please follow these steps if you want to merge +your changes to the master version: + +1. If you haven't already, create a [fork](https://help.github.com/en/articles/fork-a-repo) of the +[Litexa](https://github.com/alexa-games/litexa) repository. +2. In your cloned fork, create a branch (with a meaningful name) for your contribution. +3. Commit your contribution, which should comply with our +[contribution quality standards](#contribution-quality-standards) +4. [Create a pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) +against the `develop` branch of the Litexa repository. +5. Add two reviewers to your pull request (a maintainer will do that for you if you're new). Work +with your reviewers to address any comments and obtain a minimum of 2 approvals, at least one of +which must be provided by [a maintainer](MAINTAINERS.md). To update your pull request amend existing +commits whenever applicable and then push the new changes to your pull request branch. +6. Pay attention to any automated CI failures reported in the pull request, and stay involved in +the conversation. +7. Once the pull request is approved, one of the maintainers will merge it. + +## Request for Comments + +If you just want to receive feedback for a contribution proposal, open an “RFC” (“Request for +Comments”) pull request: + +Follow steps 1-3 from the above [contribution workflow](#contribution-workflow). + +4. [Create a pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) +against the `develop` branch of the . Prefix your pull request name with `[RFC]`. +5. Discuss your proposal with the community on the pull request page (or on any other channel). Add +the conclusion(s) of this discussion to the pull request page. + +## Contribution Quality Standards + +Most quality and style standards are enforced automatically during integration testing. Your +contribution needs to meet the following standards: + +* Separate each **logical change** into its own commit. +* The full pull request must pass all integration tests. See https://github.com/alexa-games/litexa +for more information on style and tests. +* Unit test coverage must _increase_ the overall project code coverage. +* Include integration tests for any new functionality in your pull request. +* Document all your public functions. +* Commits in your forked repository may be brief or absent. +* Document your pull requests. Include the reasoning behind each change, and the testing done. +Following [commit message best practices](https://github.com/erlang/otp/wiki/writing-good-commit-messages) +is recommended. Your pull request will be squashed into a single commit if it is approved. +* Acknowledge Litexa is provisionally licensed as "Restricted Program Materials" under the +Program Materials License Agreement(LICENSE) and certify that no part of your contribution +contravenes this license by signing off on all your commits with `git -s`. Ensure that every file +in your pull request has a header referring to the repository license file. + +## Finding Contributions to Work On + +Looking at the [existing issues](https://github.com/alexa-games/litexa/issues) is a great way to +find something to contribute on. As our projects, by default, use the default GitHub issue labels +(enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any +['help wanted'](https://github.com/alexa-games/litexa/labels/help%20wanted) issues is a great place +to start! + +## Code of Conduct + +This project has adopted the [Amazon Open Source Code of Conduct](CODE_OF_CONDUCT.md). + +## Security Issue Notifications + +If you discover a potential security issue in this project we ask that you notify AWS/Amazon +Security via our +[vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). +Please do **not** create a public github issue. + +## Licensing + +See the [LICENSE](https://github.com/alexa-games/litexa/blob/master/LICENSE) file for our project's +licensing and the [NOTICE](https://github.com/alexa-games/litexa/blob/master/NOTICE) for anything +that differs or related notices. We will ask you to confirm the licensing of your contribution. + +We may ask you to sign a +[Contributor License Agreement (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) +for larger changes. diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/LICENSE.TXT b/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/MAINTAINERS.md b/MAINTAINERS.md new file mode 100644 index 00000000..f7c1b96e --- /dev/null +++ b/MAINTAINERS.md @@ -0,0 +1,5 @@ +# Maintainers + +Litexa is maintained by its creators within Amazon: + +* Alexa Games diff --git a/NOTICE b/NOTICE new file mode 100644 index 00000000..39f3ccc3 --- /dev/null +++ b/NOTICE @@ -0,0 +1,2 @@ +Alexa Games Litexa +Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/README.md b/README.md index 3be074d7..bdb0d53a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ as a runtime environment. Specifically it requires node version 8.x or greater, for the `async` support. -Full documentation is available at +Full documentation is available at ## Packages @@ -16,26 +16,30 @@ The following packages are in this repo. ### @litexa/core -The compiler and common tooling for Litexa. -Installing this globally installs the Litexa command line tool. +The compiler and common tooling for Litexa. Installing this globally installs the Litexa command +line tool. ### @litexa/deploy-aws -A deployment module that pushes a skill to AWS using the services: Lambda, DynamoDB, and S3. Click to learn more about the [Litexa deployment module](./docs/book/deployment.md#litexa-deploy-aws). +A deployment module that pushes a skill to AWS using the services: Lambda, DynamoDB, and S3. Click +to learn more about the [Litexa deployment module](./docs/book/deployment.md#litexa-deploy-aws). ### @litexa/apl -An extension that makes working with APL documents in your Litexa project more powerful with shorthand for managing APL documents and common design patterns. Click to learn more about the [APL extension](./docs/book/screens.md#apl-directives). +An extension that makes working with APL documents in your Litexa project more powerful with +shorthand for managing APL documents and common design patterns. Click to learn more about the +[APL extension](./docs/book/screens.md#apl-directives). ### litexa-vscode -VS Code extensions for the Litexa language that provides syntax highlighting for ```.litexa``` files. Click to learn more about the [VS Code extension](./docs/get-started/README.md#the-code). +VS Code extensions for the Litexa language that provides syntax highlighting for ```.litexa``` +files. Click to learn more about the [VS Code extension](./docs/get-started/README.md#the-code). ### @litexa/assets-wav -A WAV/MP3 composer that can combine multiple overlapping samples -into a single MP3 stream, and a binding layer for use in Literate -Alexa. Click to learn more about the [WAV audio converter](./docs/book/appendix-wav-conversion.md). +A WAV/MP3 composer that can combine multiple overlapping samples into a single MP3 stream, and a +binding layer for use in Literate Alexa. Click to learn more about the +[WAV audio converter](./docs/book/appendix-wav-conversion.md). ### litexa-test-projects @@ -43,12 +47,16 @@ Miscellaneous integration tests and examples of usage. ## Developer Setup -While having split code-bases facilitates code-sharing, it comes at a cost of increased difficulty in tracking and testing -features across repositories. For this reason we've decided to organize this codebase into a multi-package repository (or monorepo). +While having split code-bases facilitates code-sharing, it comes at a cost of increased difficulty +in tracking and testing features across repositories. For this reason we've decided to organize this +codebase into a multi-package repository (or monorepo). This monorepo uses [Lerna](https://github.com/lerna/lerna#readme) to manage all of its packages. -To get started, run ```npm install``` from the root directory of the repository. This will install the dependencies and bootstrap Lerna. Lerna bootstrap and link is called during postinstall. Learn more [here](https://github.com/lerna/lerna/tree/master/commands/bootstrap). +To get started, run ```npm install``` from the root directory of the repository. This will install +the dependencies and bootstrap Lerna. Lerna `bootstrap` and `link` are called during postinstall. +To learn more, check out the +[@learna/bootstrap documentation](https://github.com/lerna/lerna/tree/master/commands/bootstrap). ### Global install from local @@ -66,11 +74,12 @@ npm install -g ./packages/litexa ./packages/litexa-apl ./packages/litexa-deploy- ### Cleaning -It's important to get your base project to a consistent state. A utility function `clean` has been provided for you. -It removes `node_modules` and re-installs them for you and the runs `npx lerna clean` which goes through each managed -package and removes its `node_modules` +It's important to get your base project to a consistent state. A utility function `clean` has been +provided for you. It removes `node_modules` and re-installs them for you and the runs +`npx lerna clean` which goes through each managed package and removes its `node_modules` -For more information on Lerna's `clean` command [check out the lerna docs](https://github.com/lerna/lerna/tree/master/commands/clean#readme). +For more information on Lerna's `clean` command, check out the +[@learna/clean documentation](https://github.com/lerna/lerna/tree/master/commands/clean#readme). ### Testing @@ -110,16 +119,17 @@ npm run coverage:lerna #### Integration Tests -Integration tests are handled outside of Lerna and handled by the `ltexa-integrations-tests` package in in the `./tests` folder. -If you're writing an integration test put it here. +Integration tests are handled outside of Lerna and handled by the `ltexa-integrations-tests` package +in the `./tests` folder. If you're writing an integration test put it here. #### Misc -**Note**: all `run` does is accept an argument that it's going to use to run the npm script in your package so all -`npx lerna run test` is doing is going through each package and running the `test` script from your package.json, if the -script doesn't exist for a package it skips it. +**Note**: all `run` does is accept an argument that it's going to use to run the npm script in your +package so all `npx lerna run test` is doing is going through each package and running the `test` +script from your package.json, if the script doesn't exist for a package it skips it. -For more information on the `run` command [check out the Lerna docs](https://github.com/lerna/lerna/tree/master/commands/run#readme). +For more information on the `run` command +[check out the Lerna docs](https://github.com/lerna/lerna/tree/master/commands/run#readme). ### Build @@ -134,7 +144,8 @@ from the root of the project directory. This command will do the following * Remove and perform a clean install of the lerna project * Clean all the package dependencies * Clean all the test dependencies -* Look at all the packages, find any common dev dependencies or new packages and surface them up as shared dependencies in package.json +* Look at all the packages, find any common dev dependencies or new packages and surface them up as +shared dependencies in package.json * Bootstrap and Hoist them for use with Lerna aka Bundle them * And run the Coverage for the entire project @@ -148,15 +159,17 @@ To add a new package edit the `lerna.json` file with your new package run npm run sync:dependencies ``` -this will run the lerna `link` command and bring in the new package as a dependency for the lerna project, as well as -bring up the common devDependencies. After this is done, don't forget to run `npm run clean` to install those dependencies, and -version your changes. +this will run the lerna `link` command and bring in the new package as a dependency for the lerna +project, as well as bring up the common devDependencies. After this is done, don't forget to run +`npm run clean` to install those dependencies, and version your changes. -For more information on the `link` command [check out the lerna docs](https://github.com/lerna/lerna/tree/master/commands/link#readme) +For more information on the `link` command +[check out the lerna docs](https://github.com/lerna/lerna/tree/master/commands/link#readme) ## Documentation Website -Full documentation is available at To run the documentation website locally, please do the following. +Full documentation is available at To run the documentation +website locally, please do the following. ### One Time Setup @@ -167,7 +180,8 @@ npm install -g markdown-it-vuepress-code-snippet-enhanced ### Generate Language Reference -In the `./packages/litexa/src/parser/litexa.pegjs` file all the comments can include markdown. From the root to extract and update the website run +In the `./packages/litexa/src/parser/litexa.pegjs` file all the comments can include markdown. From +the root to extract and update the website run ```bash npm run docs:reference diff --git a/cacheCoverage.js b/cacheCoverage.js index fdb94f4e..3c36711c 100644 --- a/cacheCoverage.js +++ b/cacheCoverage.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ // Script to cache the current coverage report. This can be used to persist the reports in a diff --git a/package.json b/package.json index 68f5b964..73598f7a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,5 @@ { "name": "litexa", - "version": "0.0.1", - "description": "", "directories": { "doc": "docs" }, @@ -19,8 +17,8 @@ "release": "npm run build && npm run coverage", "test": "npx lerna exec --concurrency 1 npm run test" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT", + "author": "Amazon", + "license": "Apache-2.0", "keywords": [ "Alexa", "Skills", @@ -56,5 +54,5 @@ }, "repository": "github:alexa-games/litexa", "bugs": "https://github.com/alexa-games/litexa/issues", - "homepage": "https://litexa.games.alexa.a2z.com" + "homepage": "https://litexa.com" } diff --git a/packages/litexa-apl/LICENSE b/packages/litexa-apl/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/packages/litexa-apl/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/litexa-apl/LICENSE.TXT b/packages/litexa-apl/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/packages/litexa-apl/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/packages/litexa-apl/lib/aplCommandHandler.js b/packages/litexa-apl/lib/aplCommandHandler.js index 58da313d..600b7a68 100644 --- a/packages/litexa-apl/lib/aplCommandHandler.js +++ b/packages/litexa-apl/lib/aplCommandHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./aplUtils'); diff --git a/packages/litexa-apl/lib/aplCommandInfo.js b/packages/litexa-apl/lib/aplCommandInfo.js index 11ad5673..66d23b61 100644 --- a/packages/litexa-apl/lib/aplCommandInfo.js +++ b/packages/litexa-apl/lib/aplCommandInfo.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ // These properties are supported by every one of the below commands. diff --git a/packages/litexa-apl/lib/aplCommandParser.js b/packages/litexa-apl/lib/aplCommandParser.js index e4005f15..4d530a44 100644 --- a/packages/litexa-apl/lib/aplCommandParser.js +++ b/packages/litexa-apl/lib/aplCommandParser.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const stringBuilder = require('./aplParserHelpers').ObjectStringBuilder; diff --git a/packages/litexa-apl/lib/aplDataHandler.js b/packages/litexa-apl/lib/aplDataHandler.js index 7a2c8dbf..76466758 100644 --- a/packages/litexa-apl/lib/aplDataHandler.js +++ b/packages/litexa-apl/lib/aplDataHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./aplUtils'); diff --git a/packages/litexa-apl/lib/aplDocumentHandler.js b/packages/litexa-apl/lib/aplDocumentHandler.js index 1d114506..ed23537a 100644 --- a/packages/litexa-apl/lib/aplDocumentHandler.js +++ b/packages/litexa-apl/lib/aplDocumentHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const merge = require('./aplFragmentMerger'); diff --git a/packages/litexa-apl/lib/aplFragmentMerger.js b/packages/litexa-apl/lib/aplFragmentMerger.js index e825530a..965affee 100644 --- a/packages/litexa-apl/lib/aplFragmentMerger.js +++ b/packages/litexa-apl/lib/aplFragmentMerger.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ function isMergeableObject(val) { diff --git a/packages/litexa-apl/lib/aplHandler.js b/packages/litexa-apl/lib/aplHandler.js index f4028d94..2477ef31 100644 --- a/packages/litexa-apl/lib/aplHandler.js +++ b/packages/litexa-apl/lib/aplHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const helpers = require('./aplHandlerHelpers'); diff --git a/packages/litexa-apl/lib/aplHandlerHelpers.js b/packages/litexa-apl/lib/aplHandlerHelpers.js index 60ca4800..caf94713 100644 --- a/packages/litexa-apl/lib/aplHandlerHelpers.js +++ b/packages/litexa-apl/lib/aplHandlerHelpers.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./aplUtils'); diff --git a/packages/litexa-apl/lib/aplParser.js b/packages/litexa-apl/lib/aplParser.js index 96bc667a..6270928c 100644 --- a/packages/litexa-apl/lib/aplParser.js +++ b/packages/litexa-apl/lib/aplParser.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const stringBuilder = require('./aplParserHelpers').ObjectStringBuilder; diff --git a/packages/litexa-apl/lib/aplParserHelpers.js b/packages/litexa-apl/lib/aplParserHelpers.js index 14c39e66..ecd9ea12 100644 --- a/packages/litexa-apl/lib/aplParserHelpers.js +++ b/packages/litexa-apl/lib/aplParserHelpers.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./aplUtils'); diff --git a/packages/litexa-apl/lib/aplUtils.js b/packages/litexa-apl/lib/aplUtils.js index 18fdcb3a..f4a99b4b 100644 --- a/packages/litexa-apl/lib/aplUtils.js +++ b/packages/litexa-apl/lib/aplUtils.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const MAX_ARRAY_INDEX = Math.pow(2, 53) - 1; diff --git a/packages/litexa-apl/lib/aplValidators.js b/packages/litexa-apl/lib/aplValidators.js index 79445335..1dc06c10 100644 --- a/packages/litexa-apl/lib/aplValidators.js +++ b/packages/litexa-apl/lib/aplValidators.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./aplUtils'); diff --git a/packages/litexa-apl/litexa.extension.js b/packages/litexa-apl/litexa.extension.js index 4d054890..07aa3f8a 100644 --- a/packages/litexa-apl/litexa.extension.js +++ b/packages/litexa-apl/litexa.extension.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ aplParser = require('./lib/aplParser') diff --git a/packages/litexa-apl/package.json b/packages/litexa-apl/package.json index 0f5d6026..4c9472bd 100644 --- a/packages/litexa-apl/package.json +++ b/packages/litexa-apl/package.json @@ -1,7 +1,7 @@ { "name": "@litexa/apl", "version": "0.2.0", - "description": "This module adds support for APL directives to litexa.", + "description": "This module adds support for APL directives to Litexa.", "scripts": { "build": "npm run clean && npm install", "clean": "npx rimraf node_modules", @@ -13,14 +13,14 @@ "test:file": "npx mocha", "test:file:debug": "npx mocha debug" }, - "author": "Amazon.com", + "author": "Amazon", "keywords": [ "Alexa", "Skill", "APL", "SDK" ], - "license": "SEE LICENSE IN LICENSE.TXT", + "license": "Apache-2.0", "dependencies": { "rollup": "1.10.1", "rollup-plugin-commonjs": "9.3.4", @@ -28,5 +28,5 @@ }, "repository": "github:alexa-games/litexa", "bugs": "https://github.com/alexa-games/litexa/issues", - "homepage": "https://litexa.games.alexa.a2z.com" + "homepage": "https://litexa.com" } diff --git a/packages/litexa-apl/rollup.config.js b/packages/litexa-apl/rollup.config.js index dd20d7e3..f9d6ee65 100644 --- a/packages/litexa-apl/rollup.config.js +++ b/packages/litexa-apl/rollup.config.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import commonjs from 'rollup-plugin-commonjs'; diff --git a/packages/litexa-apl/test/aplCommandHandler.spec.js b/packages/litexa-apl/test/aplCommandHandler.spec.js index 5b341850..3465ef00 100644 --- a/packages/litexa-apl/test/aplCommandHandler.spec.js +++ b/packages/litexa-apl/test/aplCommandHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { assert, expect } = require('chai'); diff --git a/packages/litexa-apl/test/aplCommandInfo.spec.js b/packages/litexa-apl/test/aplCommandInfo.spec.js index 8b8fae42..3f8145ee 100644 --- a/packages/litexa-apl/test/aplCommandInfo.spec.js +++ b/packages/litexa-apl/test/aplCommandInfo.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-apl/test/aplCommandParser.spec.js b/packages/litexa-apl/test/aplCommandParser.spec.js index f062aff1..574f2d5c 100644 --- a/packages/litexa-apl/test/aplCommandParser.spec.js +++ b/packages/litexa-apl/test/aplCommandParser.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {expect, should} = require('chai'); diff --git a/packages/litexa-apl/test/aplDataHandler.spec.js b/packages/litexa-apl/test/aplDataHandler.spec.js index f07c4ca2..8f6f41d8 100644 --- a/packages/litexa-apl/test/aplDataHandler.spec.js +++ b/packages/litexa-apl/test/aplDataHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { assert, expect } = require('chai'); diff --git a/packages/litexa-apl/test/aplDocumentHandler.spec.js b/packages/litexa-apl/test/aplDocumentHandler.spec.js index a52b9e03..e55d2463 100644 --- a/packages/litexa-apl/test/aplDocumentHandler.spec.js +++ b/packages/litexa-apl/test/aplDocumentHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {assert, expect} = require('chai'); diff --git a/packages/litexa-apl/test/aplHandler.spec.js b/packages/litexa-apl/test/aplHandler.spec.js index 0838cc94..fe63a815 100644 --- a/packages/litexa-apl/test/aplHandler.spec.js +++ b/packages/litexa-apl/test/aplHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {assert, expect} = require('chai'); diff --git a/packages/litexa-apl/test/aplHandlerHelpers.spec.js b/packages/litexa-apl/test/aplHandlerHelpers.spec.js index 522f9667..3c700438 100644 --- a/packages/litexa-apl/test/aplHandlerHelpers.spec.js +++ b/packages/litexa-apl/test/aplHandlerHelpers.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {assert, expect} = require('chai'); diff --git a/packages/litexa-apl/test/aplParser.spec.js b/packages/litexa-apl/test/aplParser.spec.js index b9485660..dffb87f9 100644 --- a/packages/litexa-apl/test/aplParser.spec.js +++ b/packages/litexa-apl/test/aplParser.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {expect, should} = require('chai'); diff --git a/packages/litexa-apl/test/aplValidators.spec.js b/packages/litexa-apl/test/aplValidators.spec.js index 433d28d2..560397dc 100644 --- a/packages/litexa-apl/test/aplValidators.spec.js +++ b/packages/litexa-apl/test/aplValidators.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {expect} = require('chai'); diff --git a/packages/litexa-assets-wav/LICENSE b/packages/litexa-assets-wav/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/packages/litexa-assets-wav/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/litexa-assets-wav/LICENSE.TXT b/packages/litexa-assets-wav/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/packages/litexa-assets-wav/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/packages/litexa-assets-wav/convert.coffee b/packages/litexa-assets-wav/convert.coffee index 2c1730ba..7cbb7190 100644 --- a/packages/litexa-assets-wav/convert.coffee +++ b/packages/litexa-assets-wav/convert.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' diff --git a/packages/litexa-assets-wav/index.js b/packages/litexa-assets-wav/index.js index e7c702cf..48ed0131 100644 --- a/packages/litexa-assets-wav/index.js +++ b/packages/litexa-assets-wav/index.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ require('coffeescript').register(); diff --git a/packages/litexa-assets-wav/litexa.extension.coffee b/packages/litexa-assets-wav/litexa.extension.coffee index 770b8850..9033ce22 100644 --- a/packages/litexa-assets-wav/litexa.extension.coffee +++ b/packages/litexa-assets-wav/litexa.extension.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - path = require 'path' fs = require 'fs' debug = require('debug')('litexa-assets') diff --git a/packages/litexa-assets-wav/package.json b/packages/litexa-assets-wav/package.json index 48d3642a..118dd820 100644 --- a/packages/litexa-assets-wav/package.json +++ b/packages/litexa-assets-wav/package.json @@ -1,8 +1,8 @@ { "name": "@litexa/assets-wav", - "author": "Amazon.com", + "author": "Amazon", "version": "0.2.0", - "license": "SEE LICENSE IN LICENSE.TXT", + "license": "Apache-2.0", "description": "This module adds automatic support for WAV files in the asset pipeline of a Litexa project.", "keywords": [ "Alexa", @@ -25,5 +25,5 @@ }, "repository": "github:alexa-games/litexa", "bugs": "https://github.com/alexa-games/litexa/issues", - "homepage": "https://litexa.games.alexa.a2z.com" + "homepage": "https://litexa.com" } diff --git a/packages/litexa-deploy-aws/LICENSE b/packages/litexa-deploy-aws/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/packages/litexa-deploy-aws/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/litexa-deploy-aws/LICENSE.TXT b/packages/litexa-deploy-aws/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/packages/litexa-deploy-aws/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/packages/litexa-deploy-aws/index.js b/packages/litexa-deploy-aws/index.js index be4f37b6..4fc5a3a8 100644 --- a/packages/litexa-deploy-aws/index.js +++ b/packages/litexa-deploy-aws/index.js @@ -1,14 +1,10 @@ #!/usr/bin/env node /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ diff --git a/packages/litexa-deploy-aws/package.json b/packages/litexa-deploy-aws/package.json index 43a805d7..09646b03 100644 --- a/packages/litexa-deploy-aws/package.json +++ b/packages/litexa-deploy-aws/package.json @@ -1,7 +1,7 @@ { "name": "@litexa/deploy-aws", "version": "0.2.0", - "description": "Implements deployment for litexa to AWS Lambda, DynamoDB and S3.", + "description": "Implements deployment for Litexa to AWS Lambda, DynamoDB and S3.", "main": "index.js", "scripts": { "build": "npm run clean && npm install", @@ -12,8 +12,8 @@ "test:file": "npx mocha", "test:file:debug": "npx mocha debug" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT", + "author": "Amazon", + "license": "Apache-2.0", "keywords": [ "Alexa", "Skill", @@ -33,5 +33,5 @@ }, "repository": "github:alexa-games/litexa", "bugs": "https://github.com/alexa-games/litexa/issues", - "homepage": "https://litexa.games.alexa.a2z.com" + "homepage": "https://litexa.com" } diff --git a/packages/litexa-deploy-aws/src/assets.coffee b/packages/litexa-deploy-aws/src/assets.coffee index 9d69c6f1..0882daf8 100644 --- a/packages/litexa-deploy-aws/src/assets.coffee +++ b/packages/litexa-deploy-aws/src/assets.coffee @@ -1,15 +1,8 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### AWS = require 'aws-sdk' diff --git a/packages/litexa-deploy-aws/src/aws-config.coffee b/packages/litexa-deploy-aws/src/aws-config.coffee index 01fe9c51..43b31d28 100644 --- a/packages/litexa-deploy-aws/src/aws-config.coffee +++ b/packages/litexa-deploy-aws/src/aws-config.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' diff --git a/packages/litexa-deploy-aws/src/iam-roles.coffee b/packages/litexa-deploy-aws/src/iam-roles.coffee index e47e2bb4..2f2dffc0 100644 --- a/packages/litexa-deploy-aws/src/iam-roles.coffee +++ b/packages/litexa-deploy-aws/src/iam-roles.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - AWS = require 'aws-sdk' logger = null iam = null diff --git a/packages/litexa-deploy-aws/src/lambda.coffee b/packages/litexa-deploy-aws/src/lambda.coffee index 055065f2..f2c2d70c 100644 --- a/packages/litexa-deploy-aws/src/lambda.coffee +++ b/packages/litexa-deploy-aws/src/lambda.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' mkdirp = require 'mkdirp' diff --git a/packages/litexa-deploy-aws/src/local-cache.coffee b/packages/litexa-deploy-aws/src/local-cache.coffee index 513b5d85..eb0f2790 100644 --- a/packages/litexa-deploy-aws/src/local-cache.coffee +++ b/packages/litexa-deploy-aws/src/local-cache.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' diff --git a/packages/litexa-deploy-aws/src/logs.coffee b/packages/litexa-deploy-aws/src/logs.coffee index 9e5ed78d..d576dceb 100644 --- a/packages/litexa-deploy-aws/src/logs.coffee +++ b/packages/litexa-deploy-aws/src/logs.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - AWS = require 'aws-sdk' fs = require 'fs' path = require 'path' diff --git a/packages/litexa-deploy-aws/src/model.coffee b/packages/litexa-deploy-aws/src/model.coffee index b7010750..82634535 100644 --- a/packages/litexa-deploy-aws/src/model.coffee +++ b/packages/litexa-deploy-aws/src/model.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - -module.exports = +module.exports = deploy: -> console.log "deploying model" diff --git a/packages/litexa-deploy-aws/src/utils/s3Utils.coffee b/packages/litexa-deploy-aws/src/utils/s3Utils.coffee index 24dccc24..e1fd18b3 100644 --- a/packages/litexa-deploy-aws/src/utils/s3Utils.coffee +++ b/packages/litexa-deploy-aws/src/utils/s3Utils.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - path = require 'path' fs = require 'fs' md5File = require 'md5-file' diff --git a/packages/litexa-deploy-aws/test/aws-config.spec.coffee b/packages/litexa-deploy-aws/test/aws-config.spec.coffee index ed28fd67..80e180ea 100644 --- a/packages/litexa-deploy-aws/test/aws-config.spec.coffee +++ b/packages/litexa-deploy-aws/test/aws-config.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy, stub} = require('sinon') {deploymentTargetConfiguration} = require('./helpers') diff --git a/packages/litexa-deploy-aws/test/helpers.coffee b/packages/litexa-deploy-aws/test/helpers.coffee index d91a1405..8010ae6a 100644 --- a/packages/litexa-deploy-aws/test/helpers.coffee +++ b/packages/litexa-deploy-aws/test/helpers.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - Test = {} Test.deploymentTargetConfiguration = test: diff --git a/packages/litexa-deploy-aws/test/lambda.spec.coffee b/packages/litexa-deploy-aws/test/lambda.spec.coffee index da359f77..8ba3df87 100644 --- a/packages/litexa-deploy-aws/test/lambda.spec.coffee +++ b/packages/litexa-deploy-aws/test/lambda.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy, stub} = require('sinon') {lambdaTriggerStatement} = require('./helpers') @@ -109,7 +101,7 @@ describe 'Running Deploy to Lambda', -> } removePermission: () -> return new Promise() } - + logSpy = spy(loggerInterface, 'log') lambdaContext.lambda = awsLambda await unitTestHelper 'checkLambdaPermissions', context, loggerInterface, lambdaContext @@ -132,7 +124,7 @@ describe 'Running Deploy to Lambda', -> promise: -> return new Promise(addPolicyPromise) } } - + logSpy = spy(loggerInterface, 'log') verboseSpy = spy(loggerInterface, 'verbose') lambdaContext.lambda = awsLambda @@ -159,7 +151,7 @@ describe 'Running Deploy to Lambda', -> promise: -> return new Promise(addPolicyPromise) } } - + logSpy = spy(loggerInterface, 'log') verboseSpy = spy(loggerInterface, 'verbose') lambdaContext.lambda = awsLambda diff --git a/packages/litexa-deploy-aws/test/logs.spec.coffee b/packages/litexa-deploy-aws/test/logs.spec.coffee index 68632138..4ff82432 100644 --- a/packages/litexa-deploy-aws/test/logs.spec.coffee +++ b/packages/litexa-deploy-aws/test/logs.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - chai = require('chai') chaiAsPromised = require('chai-as-promised') chai.use(chaiAsPromised) diff --git a/packages/litexa-deploy-aws/test/manifest.spec.coffee b/packages/litexa-deploy-aws/test/manifest.spec.coffee index 088771b5..af23a47b 100644 --- a/packages/litexa-deploy-aws/test/manifest.spec.coffee +++ b/packages/litexa-deploy-aws/test/manifest.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' rimraf = require 'rimraf' diff --git a/packages/litexa-deploy-aws/test/utils/s3Utils.spec.coffee b/packages/litexa-deploy-aws/test/utils/s3Utils.spec.coffee index ade8e6e3..8cd5c9f9 100644 --- a/packages/litexa-deploy-aws/test/utils/s3Utils.spec.coffee +++ b/packages/litexa-deploy-aws/test/utils/s3Utils.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - { assert, expect } = require('chai') { match, spy, stub } = require('sinon') diff --git a/packages/litexa-gadgets/LICENSE b/packages/litexa-gadgets/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/packages/litexa-gadgets/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/litexa-gadgets/LICENSE.TXT b/packages/litexa-gadgets/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/packages/litexa-gadgets/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/packages/litexa-gadgets/litexa.extension.js b/packages/litexa-gadgets/litexa.extension.js index 0f9d06be..68271cc9 100644 --- a/packages/litexa-gadgets/litexa.extension.js +++ b/packages/litexa-gadgets/litexa.extension.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { diff --git a/packages/litexa-gadgets/package.json b/packages/litexa-gadgets/package.json index 6f1fea85..a5231011 100644 --- a/packages/litexa-gadgets/package.json +++ b/packages/litexa-gadgets/package.json @@ -1,7 +1,7 @@ { "name": "@litexa/gadgets", "version": "0.2.0", - "description": "This module adds support for GameEngine, GadgetController, and CustomInterfaceController directives and events.", + "description": "This module adds support for GameEngine, GadgetController, and CustomInterfaceController directives and events to Litexa.", "scripts": { "build": "npm run clean && npm install", "clean": "npx rimraf node_modules", @@ -11,7 +11,7 @@ "test:file": "npx mocha", "test:file:debug": "npx mocha debug" }, - "author": "Amazon.com", + "author": "Amazon", "keywords": [ "Alexa", "Skill", @@ -21,11 +21,11 @@ "Gadgets", "SDK" ], - "license": "SEE LICENSE IN LICENSE.TXT", + "license": "Apache-2.0", "dependencies": { "uuid": "3.3.2" }, "repository": "github:alexa-games/litexa", "bugs": "https://github.com/alexa-games/litexa/issues", - "homepage": "https://litexa.games.alexa.a2z.com" + "homepage": "https://litexa.com" } diff --git a/packages/litexa-gadgets/src/statementParsers/startCustomEventHandler.js b/packages/litexa-gadgets/src/statementParsers/startCustomEventHandler.js index 937e2573..d0003291 100644 --- a/packages/litexa-gadgets/src/statementParsers/startCustomEventHandler.js +++ b/packages/litexa-gadgets/src/statementParsers/startCustomEventHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ class StartCustomEventHandlerParser { diff --git a/packages/litexa-gadgets/src/statementParsers/startInputHandler.js b/packages/litexa-gadgets/src/statementParsers/startInputHandler.js index c8c091fa..08e5abb7 100644 --- a/packages/litexa-gadgets/src/statementParsers/startInputHandler.js +++ b/packages/litexa-gadgets/src/statementParsers/startInputHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ class StartInputHandlerParser { diff --git a/packages/litexa-gadgets/src/statementParsers/stopCustomEventHandler.js b/packages/litexa-gadgets/src/statementParsers/stopCustomEventHandler.js index 557c235a..5bfd5a46 100644 --- a/packages/litexa-gadgets/src/statementParsers/stopCustomEventHandler.js +++ b/packages/litexa-gadgets/src/statementParsers/stopCustomEventHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ class StopCustomEventHandlerParser { diff --git a/packages/litexa-gadgets/src/statementParsers/stopInputHandler.js b/packages/litexa-gadgets/src/statementParsers/stopInputHandler.js index b3a15aa2..e7e36cae 100644 --- a/packages/litexa-gadgets/src/statementParsers/stopInputHandler.js +++ b/packages/litexa-gadgets/src/statementParsers/stopInputHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ class StopInputHandlerParser { diff --git a/packages/litexa-gadgets/src/validators/commonValidators.js b/packages/litexa-gadgets/src/validators/commonValidators.js index 70cbb6f9..c496b6dc 100644 --- a/packages/litexa-gadgets/src/validators/commonValidators.js +++ b/packages/litexa-gadgets/src/validators/commonValidators.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ validateDirectiveType = function({ validator, directive, expectedType }) { diff --git a/packages/litexa-gadgets/src/validators/customInterfaceDirectiveValidators.js b/packages/litexa-gadgets/src/validators/customInterfaceDirectiveValidators.js index c0b90c40..9d5b8d42 100644 --- a/packages/litexa-gadgets/src/validators/customInterfaceDirectiveValidators.js +++ b/packages/litexa-gadgets/src/validators/customInterfaceDirectiveValidators.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ sendDirectiveValidator = function(validator) { diff --git a/packages/litexa-gadgets/src/validators/gadgetControllerDirectiveValidators.js b/packages/litexa-gadgets/src/validators/gadgetControllerDirectiveValidators.js index 38d15f14..0105a55d 100644 --- a/packages/litexa-gadgets/src/validators/gadgetControllerDirectiveValidators.js +++ b/packages/litexa-gadgets/src/validators/gadgetControllerDirectiveValidators.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { validateDirectiveType } = require('./commonValidators'); diff --git a/packages/litexa-gadgets/src/validators/gameEngineDirectiveValidators.js b/packages/litexa-gadgets/src/validators/gameEngineDirectiveValidators.js index c228c942..c25f1815 100644 --- a/packages/litexa-gadgets/src/validators/gameEngineDirectiveValidators.js +++ b/packages/litexa-gadgets/src/validators/gameEngineDirectiveValidators.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { validateDirectiveType } = require('./commonValidators'); diff --git a/packages/litexa-gadgets/src/validators/manifestValidator.js b/packages/litexa-gadgets/src/validators/manifestValidator.js index c144947b..79d1cf90 100644 --- a/packages/litexa-gadgets/src/validators/manifestValidator.js +++ b/packages/litexa-gadgets/src/validators/manifestValidator.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ manifestValidatorForGadgets = function({ validator, skill }) { diff --git a/packages/litexa-gadgets/src/validators/modelValidator.js b/packages/litexa-gadgets/src/validators/modelValidator.js index 41c5a47a..52712ee1 100644 --- a/packages/litexa-gadgets/src/validators/modelValidator.js +++ b/packages/litexa-gadgets/src/validators/modelValidator.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ modelValidatorForGadgets = function({ validator, skill }) { diff --git a/packages/litexa-gadgets/test/inputHandlerEventTester.spec.js b/packages/litexa-gadgets/test/inputHandlerEventTester.spec.js index b8a057cd..7c0a9c7b 100644 --- a/packages/litexa-gadgets/test/inputHandlerEventTester.spec.js +++ b/packages/litexa-gadgets/test/inputHandlerEventTester.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect, should } = require('chai'); diff --git a/packages/litexa-gadgets/test/statementParsers/startCustomEventHandler.spec.js b/packages/litexa-gadgets/test/statementParsers/startCustomEventHandler.spec.js index 73b4d633..9769b3da 100644 --- a/packages/litexa-gadgets/test/statementParsers/startCustomEventHandler.spec.js +++ b/packages/litexa-gadgets/test/statementParsers/startCustomEventHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect, should } = require('chai'); diff --git a/packages/litexa-gadgets/test/statementParsers/startInputHandler.spec.js b/packages/litexa-gadgets/test/statementParsers/startInputHandler.spec.js index fe812fc9..95adea1c 100644 --- a/packages/litexa-gadgets/test/statementParsers/startInputHandler.spec.js +++ b/packages/litexa-gadgets/test/statementParsers/startInputHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect, should } = require('chai'); diff --git a/packages/litexa-gadgets/test/statementParsers/stopCustomEventHandler.spec.js b/packages/litexa-gadgets/test/statementParsers/stopCustomEventHandler.spec.js index 77cf45f8..8c24f440 100644 --- a/packages/litexa-gadgets/test/statementParsers/stopCustomEventHandler.spec.js +++ b/packages/litexa-gadgets/test/statementParsers/stopCustomEventHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect, should } = require('chai'); diff --git a/packages/litexa-gadgets/test/statementParsers/stopInputHandler.spec.js b/packages/litexa-gadgets/test/statementParsers/stopInputHandler.spec.js index 2dc11fb0..6aa133cf 100644 --- a/packages/litexa-gadgets/test/statementParsers/stopInputHandler.spec.js +++ b/packages/litexa-gadgets/test/statementParsers/stopInputHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect, should } = require('chai'); diff --git a/packages/litexa-gadgets/test/validators/custominterfaceDirectiveValidators.spec.js b/packages/litexa-gadgets/test/validators/custominterfaceDirectiveValidators.spec.js index b2e0a814..8513a653 100644 --- a/packages/litexa-gadgets/test/validators/custominterfaceDirectiveValidators.spec.js +++ b/packages/litexa-gadgets/test/validators/custominterfaceDirectiveValidators.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-gadgets/test/validators/gadgetControllerDirectiveValidators.spec.js b/packages/litexa-gadgets/test/validators/gadgetControllerDirectiveValidators.spec.js index 474b0b6f..ae5d3c7f 100644 --- a/packages/litexa-gadgets/test/validators/gadgetControllerDirectiveValidators.spec.js +++ b/packages/litexa-gadgets/test/validators/gadgetControllerDirectiveValidators.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-gadgets/test/validators/gameEngineDirectiveValidators.spec.js b/packages/litexa-gadgets/test/validators/gameEngineDirectiveValidators.spec.js index 8abc8556..4a1e26ea 100644 --- a/packages/litexa-gadgets/test/validators/gameEngineDirectiveValidators.spec.js +++ b/packages/litexa-gadgets/test/validators/gameEngineDirectiveValidators.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-gadgets/test/validators/manifestValidator.spec.js b/packages/litexa-gadgets/test/validators/manifestValidator.spec.js index af418347..5a4eefc7 100644 --- a/packages/litexa-gadgets/test/validators/manifestValidator.spec.js +++ b/packages/litexa-gadgets/test/validators/manifestValidator.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-gadgets/test/validators/modelValidator.spec.js b/packages/litexa-gadgets/test/validators/modelValidator.spec.js index ca22c80e..490a8a3f 100644 --- a/packages/litexa-gadgets/test/validators/modelValidator.spec.js +++ b/packages/litexa-gadgets/test/validators/modelValidator.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-render-template/LICENSE b/packages/litexa-render-template/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/packages/litexa-render-template/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/litexa-render-template/LICENSE.TXT b/packages/litexa-render-template/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/packages/litexa-render-template/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/packages/litexa-render-template/lib/handlerHelpers.js b/packages/litexa-render-template/lib/handlerHelpers.js index 360658b1..a32d33dc 100644 --- a/packages/litexa-render-template/lib/handlerHelpers.js +++ b/packages/litexa-render-template/lib/handlerHelpers.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./renderTemplateUtils') diff --git a/packages/litexa-render-template/lib/parserHelpers.js b/packages/litexa-render-template/lib/parserHelpers.js index d3a6411b..60212e4a 100644 --- a/packages/litexa-render-template/lib/parserHelpers.js +++ b/packages/litexa-render-template/lib/parserHelpers.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./renderTemplateUtils') diff --git a/packages/litexa-render-template/lib/renderTemplateHandler.js b/packages/litexa-render-template/lib/renderTemplateHandler.js index 6f79c9b3..ec8205c3 100644 --- a/packages/litexa-render-template/lib/renderTemplateHandler.js +++ b/packages/litexa-render-template/lib/renderTemplateHandler.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const Helpers = require('./handlerHelpers') diff --git a/packages/litexa-render-template/lib/renderTemplateInfo.js b/packages/litexa-render-template/lib/renderTemplateInfo.js index afbad9ac..79f31b5c 100644 --- a/packages/litexa-render-template/lib/renderTemplateInfo.js +++ b/packages/litexa-render-template/lib/renderTemplateInfo.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const TEMPLATE_INFO = { diff --git a/packages/litexa-render-template/lib/renderTemplateParser.js b/packages/litexa-render-template/lib/renderTemplateParser.js index 5160468f..0c652555 100644 --- a/packages/litexa-render-template/lib/renderTemplateParser.js +++ b/packages/litexa-render-template/lib/renderTemplateParser.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const stringBuilder = require('./parserHelpers').ObjectStringBuilder; diff --git a/packages/litexa-render-template/lib/renderTemplateUtils.js b/packages/litexa-render-template/lib/renderTemplateUtils.js index 18fdcb3a..f4a99b4b 100644 --- a/packages/litexa-render-template/lib/renderTemplateUtils.js +++ b/packages/litexa-render-template/lib/renderTemplateUtils.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const MAX_ARRAY_INDEX = Math.pow(2, 53) - 1; diff --git a/packages/litexa-render-template/lib/renderTemplateValidators.js b/packages/litexa-render-template/lib/renderTemplateValidators.js index de7a312c..916be029 100644 --- a/packages/litexa-render-template/lib/renderTemplateValidators.js +++ b/packages/litexa-render-template/lib/renderTemplateValidators.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {isEmpty} = require('./renderTemplateUtils'); diff --git a/packages/litexa-render-template/litexa.extension.js b/packages/litexa-render-template/litexa.extension.js index 667c8d32..063899e0 100644 --- a/packages/litexa-render-template/litexa.extension.js +++ b/packages/litexa-render-template/litexa.extension.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ parser = require('./lib/renderTemplateParser') diff --git a/packages/litexa-render-template/package.json b/packages/litexa-render-template/package.json index 54ce4a7c..0c78431f 100644 --- a/packages/litexa-render-template/package.json +++ b/packages/litexa-render-template/package.json @@ -1,7 +1,7 @@ { "name": "@litexa/render-template", "version": "0.2.0", - "description": "This module adds support for the Alexa Display.RenderTemplate directive to litexa.", + "description": "This module adds support for the Alexa Display.RenderTemplate directive to Litexa.", "scripts": { "build": "npm run clean && npm install", "clean": "npx rimraf node_modules", @@ -13,14 +13,14 @@ "test:file": "npx mocha", "test:file:debug": "npx mocha debug" }, - "author": "Amazon.com", + "author": "Amazon", "keywords": [ "Alexa", "Skill", "RenderTemplate", "SDK" ], - "license": "SEE LICENSE IN LICENSE.TXT", + "license": "Apache-2.0", "dependencies": { "rollup": "1.10.1", "rollup-plugin-commonjs": "9.3.4", @@ -28,5 +28,5 @@ }, "repository": "github:alexa-games/litexa", "bugs": "https://github.com/alexa-games/litexa/issues", - "homepage": "https://litexa.games.alexa.a2z.com" + "homepage": "https://litexa.com" } diff --git a/packages/litexa-render-template/rollup.config.js b/packages/litexa-render-template/rollup.config.js index 04588968..71869b18 100644 --- a/packages/litexa-render-template/rollup.config.js +++ b/packages/litexa-render-template/rollup.config.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import commonjs from 'rollup-plugin-commonjs'; diff --git a/packages/litexa-render-template/test/handlerHelpers.spec.js b/packages/litexa-render-template/test/handlerHelpers.spec.js index 4be286d3..e31157da 100644 --- a/packages/litexa-render-template/test/handlerHelpers.spec.js +++ b/packages/litexa-render-template/test/handlerHelpers.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {assert, expect} = require('chai'); diff --git a/packages/litexa-render-template/test/renderTemplateHandler.spec.js b/packages/litexa-render-template/test/renderTemplateHandler.spec.js index 09e4924b..79a46f0f 100644 --- a/packages/litexa-render-template/test/renderTemplateHandler.spec.js +++ b/packages/litexa-render-template/test/renderTemplateHandler.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-render-template/test/renderTemplateParser.spec.js b/packages/litexa-render-template/test/renderTemplateParser.spec.js index 66e7d1a7..870c0f66 100644 --- a/packages/litexa-render-template/test/renderTemplateParser.spec.js +++ b/packages/litexa-render-template/test/renderTemplateParser.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect, should } = require('chai'); diff --git a/packages/litexa-render-template/test/renderTemplateValidators.spec.js b/packages/litexa-render-template/test/renderTemplateValidators.spec.js index 1bb54dec..b67bc27f 100644 --- a/packages/litexa-render-template/test/renderTemplateValidators.spec.js +++ b/packages/litexa-render-template/test/renderTemplateValidators.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const { expect } = require('chai'); diff --git a/packages/litexa-vscode/litexa/LICENSE b/packages/litexa-vscode/litexa/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/packages/litexa-vscode/litexa/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/litexa-vscode/litexa/LICENSE.TXT b/packages/litexa-vscode/litexa/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/packages/litexa-vscode/litexa/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/packages/litexa-vscode/litexa/package.json b/packages/litexa-vscode/litexa/package.json index fbd21526..e627c916 100644 --- a/packages/litexa-vscode/litexa/package.json +++ b/packages/litexa-vscode/litexa/package.json @@ -1,36 +1,35 @@ { - "name": "litexa", - "displayName": "litexa", - "description": "", - "version": "0.1.0", - "publisher": "Amazon.com", - "engines": { - "vscode": "^1.23.0" - }, - "license": "SEE LICENSE IN LICENSE.TXT", - "categories": [ - "Programming Languages" - ], - "contributes": { - "languages": [ - { - "id": "litexa", - "aliases": [ - "Litexa", - "litexa" - ], - "extensions": [ - ".litexa" - ], - "configuration": "./language-configuration.json" - } + "name": "litexa", + "displayName": "litexa", + "version": "0.1.0", + "publisher": "Amazon.com", + "engines": { + "vscode": "^1.23.0" + }, + "license": "Apache-2.0", + "categories": [ + "Programming Languages" + ], + "contributes": { + "languages": [ + { + "id": "litexa", + "aliases": [ + "Litexa", + "litexa" + ], + "extensions": [ + ".litexa" ], - "grammars": [ - { - "language": "litexa", - "scopeName": "source.litexa", - "path": "./syntaxes/litexa.tmLanguage.json" - } - ] - } + "configuration": "./language-configuration.json" + } + ], + "grammars": [ + { + "language": "litexa", + "scopeName": "source.litexa", + "path": "./syntaxes/litexa.tmLanguage.json" + } + ] + } } diff --git a/packages/litexa/LICENSE b/packages/litexa/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/packages/litexa/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/litexa/LICENSE.TXT b/packages/litexa/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/packages/litexa/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/packages/litexa/README.md b/packages/litexa/README.md index c8f89fc7..b8478353 100644 --- a/packages/litexa/README.md +++ b/packages/litexa/README.md @@ -3,7 +3,7 @@ Litexa is an Alexa domain specific language, developed for long form multi-turn skills such as games. This package contains the source for the CLI and core runtime. -Further documentation can be found at +Further documentation can be found at ## Installing Litexa diff --git a/packages/litexa/aliasing.js b/packages/litexa/aliasing.js index ddffcc40..ab228ead 100644 --- a/packages/litexa/aliasing.js +++ b/packages/litexa/aliasing.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const moduleAlias = require('module-alias'); diff --git a/packages/litexa/package.json b/packages/litexa/package.json index 9335ba6e..16f0dcb6 100644 --- a/packages/litexa/package.json +++ b/packages/litexa/package.json @@ -17,7 +17,7 @@ "test:file": "npx mocha", "test:file:debug": "npx mocha debug" }, - "author": "Amazon.com", + "author": "Amazon", "keywords": [ "Alexa", "Skill", @@ -25,7 +25,7 @@ "Command Line", "SDK" ], - "license": "SEE LICENSE IN LICENSE.TXT", + "license": "Apache-2.0", "dependencies": { "chalk": "2.4.2", "chokidar": "2.1.0", @@ -46,5 +46,5 @@ }, "repository": "github:alexa-games/litexa", "bugs": "https://github.com/alexa-games/litexa/issues", - "homepage": "https://litexa.games.alexa.a2z.com" + "homepage": "https://litexa.com" } diff --git a/packages/litexa/src/command-line/bundlingStrategies.coffee b/packages/litexa/src/command-line/bundlingStrategies.coffee index e0d98c04..a766a181 100644 --- a/packages/litexa/src/command-line/bundlingStrategies.coffee +++ b/packages/litexa/src/command-line/bundlingStrategies.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = { 'webpack': 'bundled' 'npm-link': 'separate' diff --git a/packages/litexa/src/command-line/deploy/manifest.coffee b/packages/litexa/src/command-line/deploy/manifest.coffee index 4bc96283..d62f0da5 100644 --- a/packages/litexa/src/command-line/deploy/manifest.coffee +++ b/packages/litexa/src/command-line/deploy/manifest.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' util = require 'util' diff --git a/packages/litexa/src/command-line/fileExtensions.coffee b/packages/litexa/src/command-line/fileExtensions.coffee index 9c1e913d..0202b0a0 100644 --- a/packages/litexa/src/command-line/fileExtensions.coffee +++ b/packages/litexa/src/command-line/fileExtensions.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = { 'coffee': 'coffee', 'javascript': 'js', diff --git a/packages/litexa/src/command-line/generate.coffee b/packages/litexa/src/command-line/generate.coffee index 90fd7d25..c64358bc 100644 --- a/packages/litexa/src/command-line/generate.coffee +++ b/packages/litexa/src/command-line/generate.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - inquirer = require 'inquirer' { Artifacts } = require('../deployment/artifacts') diff --git a/packages/litexa/src/command-line/generateCommandDirector.coffee b/packages/litexa/src/command-line/generateCommandDirector.coffee index ef2a5c73..ad2ead0f 100644 --- a/packages/litexa/src/command-line/generateCommandDirector.coffee +++ b/packages/litexa/src/command-line/generateCommandDirector.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - inquirer = require 'inquirer' class GenerateCommandDirector diff --git a/packages/litexa/src/command-line/generators/artifactTrackerGenerator.coffee b/packages/litexa/src/command-line/generators/artifactTrackerGenerator.coffee index 9b6e9278..09212eaa 100644 --- a/packages/litexa/src/command-line/generators/artifactTrackerGenerator.coffee +++ b/packages/litexa/src/command-line/generators/artifactTrackerGenerator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' Generator = require('./generator') diff --git a/packages/litexa/src/command-line/generators/assetsDirectoryGenerator.coffee b/packages/litexa/src/command-line/generators/assetsDirectoryGenerator.coffee index d83e7f89..a6cc508b 100644 --- a/packages/litexa/src/command-line/generators/assetsDirectoryGenerator.coffee +++ b/packages/litexa/src/command-line/generators/assetsDirectoryGenerator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' mkdirp = require 'mkdirp' path = require 'path' diff --git a/packages/litexa/src/command-line/generators/configGenerator.coffee b/packages/litexa/src/command-line/generators/configGenerator.coffee index 54d54c2a..19fa4fc9 100644 --- a/packages/litexa/src/command-line/generators/configGenerator.coffee +++ b/packages/litexa/src/command-line/generators/configGenerator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - require('@src/getter.polyfill') debug = require('debug')('config-generator') path = require 'path' diff --git a/packages/litexa/src/command-line/generators/directory/bundlerStructureCreator.coffee b/packages/litexa/src/command-line/generators/directory/bundlerStructureCreator.coffee index dc843069..43ecfdd6 100644 --- a/packages/litexa/src/command-line/generators/directory/bundlerStructureCreator.coffee +++ b/packages/litexa/src/command-line/generators/directory/bundlerStructureCreator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - require '@src/getter.polyfill' path = require 'path' StructureCreator = require('./structureCreator') diff --git a/packages/litexa/src/command-line/generators/directory/inlinedStructureCreator.coffee b/packages/litexa/src/command-line/generators/directory/inlinedStructureCreator.coffee index 5b86444c..fdee1acb 100644 --- a/packages/litexa/src/command-line/generators/directory/inlinedStructureCreator.coffee +++ b/packages/litexa/src/command-line/generators/directory/inlinedStructureCreator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - StructureCreator = require('./structureCreator') ### diff --git a/packages/litexa/src/command-line/generators/directory/separateStructureCreator.coffee b/packages/litexa/src/command-line/generators/directory/separateStructureCreator.coffee index bdf31482..24da2b2a 100644 --- a/packages/litexa/src/command-line/generators/directory/separateStructureCreator.coffee +++ b/packages/litexa/src/command-line/generators/directory/separateStructureCreator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - require '@src/getter.polyfill' path = require 'path' StructureCreator = require('./structureCreator') diff --git a/packages/litexa/src/command-line/generators/directory/structureCreator.coffee b/packages/litexa/src/command-line/generators/directory/structureCreator.coffee index 28d01580..1df76c7f 100644 --- a/packages/litexa/src/command-line/generators/directory/structureCreator.coffee +++ b/packages/litexa/src/command-line/generators/directory/structureCreator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - require '@src/getter.polyfill' fs = require 'fs' path = require 'path' diff --git a/packages/litexa/src/command-line/generators/directoryCreator.coffee b/packages/litexa/src/command-line/generators/directoryCreator.coffee index 97907dc1..d5dbe22f 100644 --- a/packages/litexa/src/command-line/generators/directoryCreator.coffee +++ b/packages/litexa/src/command-line/generators/directoryCreator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - InlinedStructureCreator = require('./directory/inlinedStructureCreator') SeparateStructureCreator = require('./directory/separateStructureCreator') BundlerStructureCreator = require('./directory/bundlerStructureCreator') diff --git a/packages/litexa/src/command-line/generators/generator.coffee b/packages/litexa/src/command-line/generators/generator.coffee index beb52614..aa8a6d10 100644 --- a/packages/litexa/src/command-line/generators/generator.coffee +++ b/packages/litexa/src/command-line/generators/generator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - class Generator constructor: (args) -> @options = args.options diff --git a/packages/litexa/src/command-line/generators/searchReplace.coffee b/packages/litexa/src/command-line/generators/searchReplace.coffee index 1d9040f8..40ca7580 100644 --- a/packages/litexa/src/command-line/generators/searchReplace.coffee +++ b/packages/litexa/src/command-line/generators/searchReplace.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = (stringTemplate, templateValues) -> data = stringTemplate for key, value of templateValues diff --git a/packages/litexa/src/command-line/generators/skillIconsGenerator.coffee b/packages/litexa/src/command-line/generators/skillIconsGenerator.coffee index a148a932..e6c9082e 100644 --- a/packages/litexa/src/command-line/generators/skillIconsGenerator.coffee +++ b/packages/litexa/src/command-line/generators/skillIconsGenerator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - debug = require('debug')('litexa') fs = require('fs') path = require('path') diff --git a/packages/litexa/src/command-line/generators/skillManifestGenerator.coffee b/packages/litexa/src/command-line/generators/skillManifestGenerator.coffee index faa0f7d6..a6674400 100644 --- a/packages/litexa/src/command-line/generators/skillManifestGenerator.coffee +++ b/packages/litexa/src/command-line/generators/skillManifestGenerator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - require('@src/getter.polyfill') extensions = require('../fileExtensions') fs = require 'fs' diff --git a/packages/litexa/src/command-line/generators/sourceCodeGenerator.coffee b/packages/litexa/src/command-line/generators/sourceCodeGenerator.coffee index e225c6ef..e0b1fc34 100644 --- a/packages/litexa/src/command-line/generators/sourceCodeGenerator.coffee +++ b/packages/litexa/src/command-line/generators/sourceCodeGenerator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' mkdirp = require 'mkdirp' path = require 'path' diff --git a/packages/litexa/src/command-line/generators/templateFilesHandler.coffee b/packages/litexa/src/command-line/generators/templateFilesHandler.coffee index d00475af..820e48d5 100644 --- a/packages/litexa/src/command-line/generators/templateFilesHandler.coffee +++ b/packages/litexa/src/command-line/generators/templateFilesHandler.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' Generator = require('./generator') diff --git a/packages/litexa/src/command-line/generators/validators/projectNameValidator.coffee b/packages/litexa/src/command-line/generators/validators/projectNameValidator.coffee index b827246a..4f4f122e 100644 --- a/packages/litexa/src/command-line/generators/validators/projectNameValidator.coffee +++ b/packages/litexa/src/command-line/generators/validators/projectNameValidator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = (proposedName) -> if proposedName.length < 5 throw new Error 'A project name should be at least 5 characters.' diff --git a/packages/litexa/src/command-line/generators/validators/skillStoreTitleValidator.coffee b/packages/litexa/src/command-line/generators/validators/skillStoreTitleValidator.coffee index 270a60b1..cae32372 100644 --- a/packages/litexa/src/command-line/generators/validators/skillStoreTitleValidator.coffee +++ b/packages/litexa/src/command-line/generators/validators/skillStoreTitleValidator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = (proposedName) -> if !proposedName throw new Error 'Your skill store title cannot be empty.' diff --git a/packages/litexa/src/command-line/loggingChannel.coffee b/packages/litexa/src/command-line/loggingChannel.coffee index 22629e7a..b24a60e1 100644 --- a/packages/litexa/src/command-line/loggingChannel.coffee +++ b/packages/litexa/src/command-line/loggingChannel.coffee @@ -1,17 +1,9 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - chalk = require 'chalk' path = require 'path' fs = require 'fs' diff --git a/packages/litexa/src/command-line/logs.coffee b/packages/litexa/src/command-line/logs.coffee index 31f0db2f..dc3e9e89 100644 --- a/packages/litexa/src/command-line/logs.coffee +++ b/packages/litexa/src/command-line/logs.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - chalk = require 'chalk' path = require 'path' fs = require 'fs' diff --git a/packages/litexa/src/command-line/main.js b/packages/litexa/src/command-line/main.js index 923141ba..6bd9105c 100755 --- a/packages/litexa/src/command-line/main.js +++ b/packages/litexa/src/command-line/main.js @@ -1,14 +1,10 @@ #!/usr/bin/env node /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ require('../../aliasing'); diff --git a/packages/litexa/src/command-line/manifest.coffee b/packages/litexa/src/command-line/manifest.coffee index e53f2577..19febfc4 100644 --- a/packages/litexa/src/command-line/manifest.coffee +++ b/packages/litexa/src/command-line/manifest.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' extensions = require('./fileExtensions') diff --git a/packages/litexa/src/command-line/optionsValidator.coffee b/packages/litexa/src/command-line/optionsValidator.coffee index 6ac0d8f1..1dd3aba9 100644 --- a/packages/litexa/src/command-line/optionsValidator.coffee +++ b/packages/litexa/src/command-line/optionsValidator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### # options is the object containing the options # toValidate is a lift of objects with the option name to validate and a collection of valid examples diff --git a/packages/litexa/src/command-line/printers.coffee b/packages/litexa/src/command-line/printers.coffee index 841d8f90..bb87264c 100644 --- a/packages/litexa/src/command-line/printers.coffee +++ b/packages/litexa/src/command-line/printers.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - chalk = require 'chalk' path = require 'path' fs = require 'fs' diff --git a/packages/litexa/src/command-line/project-clean.coffee b/packages/litexa/src/command-line/project-clean.coffee index 2ebe05b3..1206e379 100644 --- a/packages/litexa/src/command-line/project-clean.coffee +++ b/packages/litexa/src/command-line/project-clean.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' mkdirp = require 'mkdirp' diff --git a/packages/litexa/src/command-line/project-config.coffee b/packages/litexa/src/command-line/project-config.coffee index 97077761..767d4a6d 100644 --- a/packages/litexa/src/command-line/project-config.coffee +++ b/packages/litexa/src/command-line/project-config.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### The project config file is a file at the root of a litexa project diff --git a/packages/litexa/src/command-line/project-info.coffee b/packages/litexa/src/command-line/project-info.coffee index ef8696c1..7ac4ac78 100644 --- a/packages/litexa/src/command-line/project-info.coffee +++ b/packages/litexa/src/command-line/project-info.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### The project info object is a merge of the information derived diff --git a/packages/litexa/src/command-line/router.coffee b/packages/litexa/src/command-line/router.coffee index 3ff7024a..bc1e2425 100644 --- a/packages/litexa/src/command-line/router.coffee +++ b/packages/litexa/src/command-line/router.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - program = require 'commander' chalk = require 'chalk' path = require 'path' diff --git a/packages/litexa/src/command-line/skill-builder.coffee b/packages/litexa/src/command-line/skill-builder.coffee index 0f9e7197..b7077d0d 100644 --- a/packages/litexa/src/command-line/skill-builder.coffee +++ b/packages/litexa/src/command-line/skill-builder.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - { Skill } = require '../parser/skill.coffee' fs = require 'fs' path = require 'path' diff --git a/packages/litexa/src/command-line/templates/bundled/coffee/index.coffee b/packages/litexa/src/command-line/templates/bundled/coffee/index.coffee index f1925770..9418c10d 100644 --- a/packages/litexa/src/command-line/templates/bundled/coffee/index.coffee +++ b/packages/litexa/src/command-line/templates/bundled/coffee/index.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {todayName} = require './components/utils' {Time} = require './services/time.service' diff --git a/packages/litexa/src/command-line/templates/bundled/coffee/package.json b/packages/litexa/src/command-line/templates/bundled/coffee/package.json index f8d13ea4..d58a16c4 100644 --- a/packages/litexa/src/command-line/templates/bundled/coffee/package.json +++ b/packages/litexa/src/command-line/templates/bundled/coffee/package.json @@ -1,7 +1,6 @@ { "name": "{name}", "version": "1.0.0", - "description": "", "scripts": { "clean": "npx rimraf node_modules litexa/main.min.js && npm install", "compile": "npx webpack --config webpack.config.js", @@ -15,7 +14,7 @@ "test:litexa:watch": "npm run compile:watch | litexa test -w", "test:watch": "npx mocha --opts mocha.opts './test/**/*.spec.coffee' --watch" }, - "author": "", + "author": "Amazon", "devDependencies": { "chai": "4.2.0", "coffee-loader": "0.9.0", diff --git a/packages/litexa/src/command-line/templates/bundled/coffee/time.service.coffee b/packages/litexa/src/command-line/templates/bundled/coffee/time.service.coffee index c41134e5..bcd90433 100644 --- a/packages/litexa/src/command-line/templates/bundled/coffee/time.service.coffee +++ b/packages/litexa/src/command-line/templates/bundled/coffee/time.service.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - Time = serverTimeGetDay: (date = new Date()) -> date.getDay() diff --git a/packages/litexa/src/command-line/templates/bundled/coffee/time.service.spec.coffee b/packages/litexa/src/command-line/templates/bundled/coffee/time.service.spec.coffee index 7bfe9b58..b5358161 100644 --- a/packages/litexa/src/command-line/templates/bundled/coffee/time.service.spec.coffee +++ b/packages/litexa/src/command-line/templates/bundled/coffee/time.service.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert} = require 'chai' {spy} = require 'sinon' {Time} = require '../../lib/services/time.service' diff --git a/packages/litexa/src/command-line/templates/bundled/coffee/utils.coffee b/packages/litexa/src/command-line/templates/bundled/coffee/utils.coffee index e291dfa2..5426df91 100644 --- a/packages/litexa/src/command-line/templates/bundled/coffee/utils.coffee +++ b/packages/litexa/src/command-line/templates/bundled/coffee/utils.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {inspect} = require 'util' {Time} = require '../services/time.service' logger = require './logger' diff --git a/packages/litexa/src/command-line/templates/bundled/coffee/utils.spec.coffee b/packages/litexa/src/command-line/templates/bundled/coffee/utils.spec.coffee index 43f68f4b..753b9995 100644 --- a/packages/litexa/src/command-line/templates/bundled/coffee/utils.spec.coffee +++ b/packages/litexa/src/command-line/templates/bundled/coffee/utils.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require 'chai' {spy, stub} = require 'sinon' {addNumbers, todayName} = require '../../lib/components/utils' diff --git a/packages/litexa/src/command-line/templates/bundled/coffee/webpack.config.js b/packages/litexa/src/command-line/templates/bundled/coffee/webpack.config.js index 16e95505..944674e7 100644 --- a/packages/litexa/src/command-line/templates/bundled/coffee/webpack.config.js +++ b/packages/litexa/src/command-line/templates/bundled/coffee/webpack.config.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const path = require('path'); diff --git a/packages/litexa/src/command-line/templates/bundled/javascript/index.js b/packages/litexa/src/command-line/templates/bundled/javascript/index.js index 361262c6..ac06d6db 100644 --- a/packages/litexa/src/command-line/templates/bundled/javascript/index.js +++ b/packages/litexa/src/command-line/templates/bundled/javascript/index.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {todayName} = require('./components/utils'); diff --git a/packages/litexa/src/command-line/templates/bundled/javascript/package.json b/packages/litexa/src/command-line/templates/bundled/javascript/package.json index 03ced701..c1dacc7e 100644 --- a/packages/litexa/src/command-line/templates/bundled/javascript/package.json +++ b/packages/litexa/src/command-line/templates/bundled/javascript/package.json @@ -1,7 +1,6 @@ { "name": "{name}", "version": "1.0.0", - "description": "", "scripts": { "clean": "npx rimraf node_modules litexa/main.js && npm install", "compile": "npx webpack --config webpack.config.js", @@ -16,7 +15,7 @@ "test:litexa:watch": "npm run compile:watch | litexa test -w", "test:watch": "npx mocha --opts mocha.opts './test/**/*.spec.js' --watch" }, - "author": "", + "author": "Amazon", "devDependencies": { "@babel/core": "7.2.2", "@babel/preset-env": "7.3.1", diff --git a/packages/litexa/src/command-line/templates/bundled/javascript/time.service.js b/packages/litexa/src/command-line/templates/bundled/javascript/time.service.js index 0e85fc8d..af0dcbc9 100644 --- a/packages/litexa/src/command-line/templates/bundled/javascript/time.service.js +++ b/packages/litexa/src/command-line/templates/bundled/javascript/time.service.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ export const Time = { diff --git a/packages/litexa/src/command-line/templates/bundled/javascript/time.service.spec.js b/packages/litexa/src/command-line/templates/bundled/javascript/time.service.spec.js index ab46c354..72157a02 100644 --- a/packages/litexa/src/command-line/templates/bundled/javascript/time.service.spec.js +++ b/packages/litexa/src/command-line/templates/bundled/javascript/time.service.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {assert} from 'chai'; diff --git a/packages/litexa/src/command-line/templates/bundled/javascript/utils.js b/packages/litexa/src/command-line/templates/bundled/javascript/utils.js index 7ee09fc1..96980ca8 100644 --- a/packages/litexa/src/command-line/templates/bundled/javascript/utils.js +++ b/packages/litexa/src/command-line/templates/bundled/javascript/utils.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; diff --git a/packages/litexa/src/command-line/templates/bundled/javascript/utils.spec.js b/packages/litexa/src/command-line/templates/bundled/javascript/utils.spec.js index 1a682eb5..5e8164f5 100644 --- a/packages/litexa/src/command-line/templates/bundled/javascript/utils.spec.js +++ b/packages/litexa/src/command-line/templates/bundled/javascript/utils.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {assert, expect} from 'chai'; diff --git a/packages/litexa/src/command-line/templates/bundled/javascript/webpack.config.js b/packages/litexa/src/command-line/templates/bundled/javascript/webpack.config.js index b06e38dc..9605c677 100644 --- a/packages/litexa/src/command-line/templates/bundled/javascript/webpack.config.js +++ b/packages/litexa/src/command-line/templates/bundled/javascript/webpack.config.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const path = require('path'); diff --git a/packages/litexa/src/command-line/templates/bundled/typescript/config/webpack.config.js b/packages/litexa/src/command-line/templates/bundled/typescript/config/webpack.config.js index e88fc4dd..c1f1acbd 100644 --- a/packages/litexa/src/command-line/templates/bundled/typescript/config/webpack.config.js +++ b/packages/litexa/src/command-line/templates/bundled/typescript/config/webpack.config.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const path = require('path'); diff --git a/packages/litexa/src/command-line/templates/bundled/typescript/source/index.ts b/packages/litexa/src/command-line/templates/bundled/typescript/source/index.ts index 37c42dc0..734f7c7d 100644 --- a/packages/litexa/src/command-line/templates/bundled/typescript/source/index.ts +++ b/packages/litexa/src/command-line/templates/bundled/typescript/source/index.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import * as utils from './components/utils'; @@ -18,4 +14,3 @@ const litexaFunctions = { }; export = litexaFunctions; - diff --git a/packages/litexa/src/command-line/templates/bundled/typescript/source/package.json b/packages/litexa/src/command-line/templates/bundled/typescript/source/package.json index c0e72e6b..a3bc5c24 100644 --- a/packages/litexa/src/command-line/templates/bundled/typescript/source/package.json +++ b/packages/litexa/src/command-line/templates/bundled/typescript/source/package.json @@ -1,7 +1,6 @@ { "name": "{name}", "version": "1.0.0", - "description": "", "scripts": { "clean": "npx rimraf node_modules litexa/main.js && npm install", "compile": "npx webpack --config webpack.config.js && npx tsc", @@ -16,7 +15,7 @@ "test:litexa:watch": "npm run compile:watch | litexa test -w", "test:watch": "npx mocha --opts mocha.opts './test/**/*.spec.ts' --watch" }, - "author": "", + "author": "Amazon", "devDependencies": { "@types/chai": "4.1.7", "@types/mocha": "5.2.5", diff --git a/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.spec.ts b/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.spec.ts index efb021fb..56554a07 100644 --- a/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.spec.ts +++ b/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.spec.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {assert} from 'chai'; diff --git a/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.ts b/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.ts index dd86efae..3ede94ba 100644 --- a/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.ts +++ b/packages/litexa/src/command-line/templates/bundled/typescript/source/time.service.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ export interface TimeService { diff --git a/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.spec.ts b/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.spec.ts index 6fdd0e49..d7f5e5d6 100644 --- a/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.spec.ts +++ b/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.spec.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {assert, expect} from 'chai'; diff --git a/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.ts b/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.ts index 2eb6403d..286b7dfd 100644 --- a/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.ts +++ b/packages/litexa/src/command-line/templates/bundled/typescript/source/utils.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {inspect} from 'util'; diff --git a/packages/litexa/src/command-line/templates/common/coffee/litexa.config.coffee b/packages/litexa/src/command-line/templates/common/coffee/litexa.config.coffee index 3000e2a7..01df3c63 100644 --- a/packages/litexa/src/command-line/templates/common/coffee/litexa.config.coffee +++ b/packages/litexa/src/command-line/templates/common/coffee/litexa.config.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = name: '{name}' deployments: diff --git a/packages/litexa/src/command-line/templates/common/coffee/logger.coffee b/packages/litexa/src/command-line/templates/common/coffee/logger.coffee index 43c23b46..b24abba5 100644 --- a/packages/litexa/src/command-line/templates/common/coffee/logger.coffee +++ b/packages/litexa/src/command-line/templates/common/coffee/logger.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - pino = require 'pino' prettifier = require 'pino-pretty' diff --git a/packages/litexa/src/command-line/templates/common/coffee/skill.coffee b/packages/litexa/src/command-line/templates/common/coffee/skill.coffee index 38c4a00a..3d10377e 100644 --- a/packages/litexa/src/command-line/templates/common/coffee/skill.coffee +++ b/packages/litexa/src/command-line/templates/common/coffee/skill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### This file exports an object that is a subset of the data specified for an Alexa skill manifest as defined at diff --git a/packages/litexa/src/command-line/templates/common/javascript/litexa.config.js b/packages/litexa/src/command-line/templates/common/javascript/litexa.config.js index c9d408b9..12adcc49 100644 --- a/packages/litexa/src/command-line/templates/common/javascript/litexa.config.js +++ b/packages/litexa/src/command-line/templates/common/javascript/litexa.config.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; diff --git a/packages/litexa/src/command-line/templates/common/javascript/logger.js b/packages/litexa/src/command-line/templates/common/javascript/logger.js index 911229cc..289f4085 100644 --- a/packages/litexa/src/command-line/templates/common/javascript/logger.js +++ b/packages/litexa/src/command-line/templates/common/javascript/logger.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import pino from 'pino'; diff --git a/packages/litexa/src/command-line/templates/common/javascript/skill.js b/packages/litexa/src/command-line/templates/common/javascript/skill.js index 1e3a81d7..801936d4 100644 --- a/packages/litexa/src/command-line/templates/common/javascript/skill.js +++ b/packages/litexa/src/command-line/templates/common/javascript/skill.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; diff --git a/packages/litexa/src/command-line/templates/common/typescript/config/globals.d.ts b/packages/litexa/src/command-line/templates/common/typescript/config/globals.d.ts index 1e4af894..32e3925c 100644 --- a/packages/litexa/src/command-line/templates/common/typescript/config/globals.d.ts +++ b/packages/litexa/src/command-line/templates/common/typescript/config/globals.d.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ /* diff --git a/packages/litexa/src/command-line/templates/common/typescript/config/litexa.config.ts b/packages/litexa/src/command-line/templates/common/typescript/config/litexa.config.ts index eae783d2..666ae472 100644 --- a/packages/litexa/src/command-line/templates/common/typescript/config/litexa.config.ts +++ b/packages/litexa/src/command-line/templates/common/typescript/config/litexa.config.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const litexaConfiguration: Configuration = { diff --git a/packages/litexa/src/command-line/templates/common/typescript/config/package.json b/packages/litexa/src/command-line/templates/common/typescript/config/package.json index 47aaa8d8..ab6a4f93 100644 --- a/packages/litexa/src/command-line/templates/common/typescript/config/package.json +++ b/packages/litexa/src/command-line/templates/common/typescript/config/package.json @@ -7,9 +7,8 @@ "deploy": "npm run compile && litexa deploy", "lint": "npx tslint -c tslint.json --project tsconfig.json --fix" }, - "author": "", + "author": "Amazon", "license": "ISC", - "description": "", "devDependencies": { "tsconfig-paths": "3.7.0", "tslint": "5.12.1", diff --git a/packages/litexa/src/command-line/templates/common/typescript/config/skill.ts b/packages/litexa/src/command-line/templates/common/typescript/config/skill.ts index 8013ac23..4146e74c 100644 --- a/packages/litexa/src/command-line/templates/common/typescript/config/skill.ts +++ b/packages/litexa/src/command-line/templates/common/typescript/config/skill.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const skillManifest: Manifest = { diff --git a/packages/litexa/src/command-line/templates/common/typescript/source/logger.ts b/packages/litexa/src/command-line/templates/common/typescript/source/logger.ts index 911229cc..289f4085 100644 --- a/packages/litexa/src/command-line/templates/common/typescript/source/logger.ts +++ b/packages/litexa/src/command-line/templates/common/typescript/source/logger.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import pino from 'pino'; diff --git a/packages/litexa/src/command-line/templates/common/typescript/source/pino-pretty.d.ts b/packages/litexa/src/command-line/templates/common/typescript/source/pino-pretty.d.ts index a1fbf03b..2c48bd96 100644 --- a/packages/litexa/src/command-line/templates/common/typescript/source/pino-pretty.d.ts +++ b/packages/litexa/src/command-line/templates/common/typescript/source/pino-pretty.d.ts @@ -1,13 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ declare module 'pino-pretty'; - diff --git a/packages/litexa/src/command-line/templates/common/typescript/source/utils.spec.ts b/packages/litexa/src/command-line/templates/common/typescript/source/utils.spec.ts index 9448045c..63037ae5 100644 --- a/packages/litexa/src/command-line/templates/common/typescript/source/utils.spec.ts +++ b/packages/litexa/src/command-line/templates/common/typescript/source/utils.spec.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {expect} from 'chai'; diff --git a/packages/litexa/src/command-line/templates/inlined/coffee/utils.coffee b/packages/litexa/src/command-line/templates/inlined/coffee/utils.coffee index b3815233..1ca5e82a 100644 --- a/packages/litexa/src/command-line/templates/inlined/coffee/utils.coffee +++ b/packages/litexa/src/command-line/templates/inlined/coffee/utils.coffee @@ -1,26 +1,18 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - todayName = -> day = (new Date).getDay() - return [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', + return [ 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday' ][day] addNumbers = (...numbers) -> console.log "the arguments are #{numbers}" result = 0 - for num in numbers + for num in numbers result += num return result diff --git a/packages/litexa/src/command-line/templates/inlined/coffee/utils.test.coffee b/packages/litexa/src/command-line/templates/inlined/coffee/utils.test.coffee index b6016c1c..e71a4933 100644 --- a/packages/litexa/src/command-line/templates/inlined/coffee/utils.test.coffee +++ b/packages/litexa/src/command-line/templates/inlined/coffee/utils.test.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - Test.expect "stuff to work", -> Test.equal typeof(todayName()), 'string' Test.check -> addNumbers(1, 2, 3) == 6 diff --git a/packages/litexa/src/command-line/templates/inlined/javascript/utils.js b/packages/litexa/src/command-line/templates/inlined/javascript/utils.js index d7d89d32..6ad3c8ac 100644 --- a/packages/litexa/src/command-line/templates/inlined/javascript/utils.js +++ b/packages/litexa/src/command-line/templates/inlined/javascript/utils.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; @@ -27,4 +23,3 @@ function addNumbers(...numbers) { } return result; } - diff --git a/packages/litexa/src/command-line/templates/inlined/javascript/utils.test.js b/packages/litexa/src/command-line/templates/inlined/javascript/utils.test.js index 2a719ad7..b7f61080 100644 --- a/packages/litexa/src/command-line/templates/inlined/javascript/utils.test.js +++ b/packages/litexa/src/command-line/templates/inlined/javascript/utils.test.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; diff --git a/packages/litexa/src/command-line/templates/inlined/typescript/package.json b/packages/litexa/src/command-line/templates/inlined/typescript/package.json index 6c1a8219..dea68d41 100644 --- a/packages/litexa/src/command-line/templates/inlined/typescript/package.json +++ b/packages/litexa/src/command-line/templates/inlined/typescript/package.json @@ -9,9 +9,8 @@ "test": "npm run compile && litexa test", "test:watch": "npm run compile:watch | litexa test -w" }, - "author": "", + "author": "Amazon", "license": "ISC", - "description": "", "devDependencies": { "@types/node": "10.12.18", "typescript": "3.2.4" diff --git a/packages/litexa/src/command-line/templates/inlined/typescript/util.ts b/packages/litexa/src/command-line/templates/inlined/typescript/util.ts index f380661c..ba00ff53 100644 --- a/packages/litexa/src/command-line/templates/inlined/typescript/util.ts +++ b/packages/litexa/src/command-line/templates/inlined/typescript/util.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {inspect} from 'util'; diff --git a/packages/litexa/src/command-line/templates/separate/coffee/index.coffee b/packages/litexa/src/command-line/templates/separate/coffee/index.coffee index 4e9b7f68..d58dd38f 100644 --- a/packages/litexa/src/command-line/templates/separate/coffee/index.coffee +++ b/packages/litexa/src/command-line/templates/separate/coffee/index.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {addNumbers, todayName} = require './utils' module.exports = diff --git a/packages/litexa/src/command-line/templates/separate/coffee/package.json b/packages/litexa/src/command-line/templates/separate/coffee/package.json index b92b93e6..9652bd2c 100644 --- a/packages/litexa/src/command-line/templates/separate/coffee/package.json +++ b/packages/litexa/src/command-line/templates/separate/coffee/package.json @@ -1,7 +1,6 @@ { "name": "{name}-lib", "version": "1.0.0", - "description": "", "main": "index.js", "scripts": { "clean": "npx rimraf node_modules index.js **/*.js && npm install", @@ -12,7 +11,7 @@ "test:file:debug": "npx mocha debug --opts mocha.opts", "test:watch": "npx mocha --opts mocha.opts './{,!(node_modules)/**}/*.spec.coffee' --watch" }, - "author": "", + "author": "Amazon", "license": "ISC", "devDependencies": { "chai": "4.2.0", diff --git a/packages/litexa/src/command-line/templates/separate/coffee/utils.coffee b/packages/litexa/src/command-line/templates/separate/coffee/utils.coffee index 278cf19e..c4c9dda2 100644 --- a/packages/litexa/src/command-line/templates/separate/coffee/utils.coffee +++ b/packages/litexa/src/command-line/templates/separate/coffee/utils.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {inspect} = require 'util' logger = require './logger' diff --git a/packages/litexa/src/command-line/templates/separate/coffee/utils.spec.coffee b/packages/litexa/src/command-line/templates/separate/coffee/utils.spec.coffee index 72e6ca6f..09b6ab94 100644 --- a/packages/litexa/src/command-line/templates/separate/coffee/utils.spec.coffee +++ b/packages/litexa/src/command-line/templates/separate/coffee/utils.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {expect} = require 'chai' {addNumbers, todayName} = require './utils' diff --git a/packages/litexa/src/command-line/templates/separate/javascript/index.js b/packages/litexa/src/command-line/templates/separate/javascript/index.js index 27fc8e5c..164fa574 100644 --- a/packages/litexa/src/command-line/templates/separate/javascript/index.js +++ b/packages/litexa/src/command-line/templates/separate/javascript/index.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const {todayName, addNumbers} = require('./utils'); diff --git a/packages/litexa/src/command-line/templates/separate/javascript/logger.js b/packages/litexa/src/command-line/templates/separate/javascript/logger.js index 902fcf5d..ad30da07 100644 --- a/packages/litexa/src/command-line/templates/separate/javascript/logger.js +++ b/packages/litexa/src/command-line/templates/separate/javascript/logger.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const pino = require('pino'); diff --git a/packages/litexa/src/command-line/templates/separate/javascript/package.json b/packages/litexa/src/command-line/templates/separate/javascript/package.json index 5048800d..3f9bde0d 100644 --- a/packages/litexa/src/command-line/templates/separate/javascript/package.json +++ b/packages/litexa/src/command-line/templates/separate/javascript/package.json @@ -1,7 +1,6 @@ { "name": "{name}-lib", "version": "1.0.0", - "description": "", "main": "index.js", "scripts": { "clean": "npx rimraf node_modules && npm install", @@ -13,7 +12,7 @@ "lint": "npx eslint **/*.js --quiet", "postinstall": "npm prune --production" }, - "author": "", + "author": "Amazon", "license": "ISC", "devDependencies": { "chai": "4.2.0", diff --git a/packages/litexa/src/command-line/templates/separate/javascript/utils.js b/packages/litexa/src/command-line/templates/separate/javascript/utils.js index c0cae737..cdb7241f 100644 --- a/packages/litexa/src/command-line/templates/separate/javascript/utils.js +++ b/packages/litexa/src/command-line/templates/separate/javascript/utils.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; diff --git a/packages/litexa/src/command-line/templates/separate/javascript/utils.spec.js b/packages/litexa/src/command-line/templates/separate/javascript/utils.spec.js index a9ba99c4..f5fda380 100644 --- a/packages/litexa/src/command-line/templates/separate/javascript/utils.spec.js +++ b/packages/litexa/src/command-line/templates/separate/javascript/utils.spec.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ let {expect} = require('chai'); diff --git a/packages/litexa/src/command-line/templates/separate/litexa/main.coffee b/packages/litexa/src/command-line/templates/separate/litexa/main.coffee index 7843ab62..6f38238f 100644 --- a/packages/litexa/src/command-line/templates/separate/litexa/main.coffee +++ b/packages/litexa/src/command-line/templates/separate/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = require('{name}-lib'); todayName = lib.todayName; diff --git a/packages/litexa/src/command-line/templates/separate/litexa/main.js b/packages/litexa/src/command-line/templates/separate/litexa/main.js index 44065aa1..a9f19c9a 100644 --- a/packages/litexa/src/command-line/templates/separate/litexa/main.js +++ b/packages/litexa/src/command-line/templates/separate/litexa/main.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ var {todayName, addNumbers} = require('{name}-lib'); diff --git a/packages/litexa/src/command-line/templates/separate/litexa/package.json b/packages/litexa/src/command-line/templates/separate/litexa/package.json index 8707a4da..1fabf737 100644 --- a/packages/litexa/src/command-line/templates/separate/litexa/package.json +++ b/packages/litexa/src/command-line/templates/separate/litexa/package.json @@ -1,7 +1,6 @@ { "name": "{name}", "version": "1.0.0", - "description": "", "main": "index.js", "scripts": { "clean": "npx rimraf ./node_modules && npm install", @@ -10,6 +9,6 @@ "dependencies": { "{name}-lib": "file:../lib" }, - "author": "", + "author": "Amazon", "license": "ISC" } diff --git a/packages/litexa/src/command-line/templates/separate/typescript/index.ts b/packages/litexa/src/command-line/templates/separate/typescript/index.ts index ae08335f..066e643f 100644 --- a/packages/litexa/src/command-line/templates/separate/typescript/index.ts +++ b/packages/litexa/src/command-line/templates/separate/typescript/index.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {addNumbers, todayName} from './utils'; diff --git a/packages/litexa/src/command-line/templates/separate/typescript/package.json b/packages/litexa/src/command-line/templates/separate/typescript/package.json index b07e77cc..df0ecd35 100644 --- a/packages/litexa/src/command-line/templates/separate/typescript/package.json +++ b/packages/litexa/src/command-line/templates/separate/typescript/package.json @@ -1,7 +1,6 @@ { "name": "{name}-lib", "version": "1.0.0", - "description": "", "main": "./dist/index.js", "types": "./dist/index.d.ts", "scripts": { @@ -15,7 +14,7 @@ "test:watch": "npx mocha --opts mocha.opts '**/*.spec.ts' --watch", "lint": "npx tslint -c tslint.json --project tsconfig.json --fix" }, - "author": "", + "author": "Amazon", "license": "ISC", "devDependencies": { "@types/chai": "4.1.7", diff --git a/packages/litexa/src/command-line/templates/separate/typescript/utils.ts b/packages/litexa/src/command-line/templates/separate/typescript/utils.ts index cb7367a2..e30921ed 100644 --- a/packages/litexa/src/command-line/templates/separate/typescript/utils.ts +++ b/packages/litexa/src/command-line/templates/separate/typescript/utils.ts @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ import {inspect} from 'util'; diff --git a/packages/litexa/src/command-line/test.coffee b/packages/litexa/src/command-line/test.coffee index 22ef1288..42bdff1b 100644 --- a/packages/litexa/src/command-line/test.coffee +++ b/packages/litexa/src/command-line/test.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - chalk = require 'chalk' path = require 'path' fs = require 'fs' diff --git a/packages/litexa/src/deployment/artifacts.coffee b/packages/litexa/src/deployment/artifacts.coffee index f295b723..474acb71 100644 --- a/packages/litexa/src/deployment/artifacts.coffee +++ b/packages/litexa/src/deployment/artifacts.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' util = require 'util' diff --git a/packages/litexa/src/deployment/assets.coffee b/packages/litexa/src/deployment/assets.coffee index e83a960a..b12d90fe 100644 --- a/packages/litexa/src/deployment/assets.coffee +++ b/packages/litexa/src/deployment/assets.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - path = require 'path' fs = require 'fs' mkdirp = require 'mkdirp' diff --git a/packages/litexa/src/deployment/deployment-module.coffee b/packages/litexa/src/deployment/deployment-module.coffee index 53153b2d..c84f7d44 100644 --- a/packages/litexa/src/deployment/deployment-module.coffee +++ b/packages/litexa/src/deployment/deployment-module.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - path = require 'path' fs = require 'fs' debug = require('debug')('litexa') diff --git a/packages/litexa/src/deployment/git.coffee b/packages/litexa/src/deployment/git.coffee index b31066c1..6d40fd19 100644 --- a/packages/litexa/src/deployment/git.coffee +++ b/packages/litexa/src/deployment/git.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - child_process = require 'child_process' execPromise = (command) -> diff --git a/packages/litexa/src/documentation/html/render.coffee b/packages/litexa/src/documentation/html/render.coffee index 8b901705..29d40a32 100644 --- a/packages/litexa/src/documentation/html/render.coffee +++ b/packages/litexa/src/documentation/html/render.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### This file collects documentation sources from around the diff --git a/packages/litexa/src/getter.polyfill.coffee b/packages/litexa/src/getter.polyfill.coffee index 1baef15d..f98ec6fe 100644 --- a/packages/litexa/src/getter.polyfill.coffee +++ b/packages/litexa/src/getter.polyfill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # Coffee shim for es6 getter behavior Function::getter = (prop, get) -> diff --git a/packages/litexa/src/parser/assets.coffee b/packages/litexa/src/parser/assets.coffee index e1829737..7f51e394 100644 --- a/packages/litexa/src/parser/assets.coffee +++ b/packages/litexa/src/parser/assets.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - path = require('path') { ParserError } = require('./errors.coffee').lib diff --git a/packages/litexa/src/parser/browser-wrapper.coffee b/packages/litexa/src/parser/browser-wrapper.coffee index eb1e189e..88dc88f3 100644 --- a/packages/litexa/src/parser/browser-wrapper.coffee +++ b/packages/litexa/src/parser/browser-wrapper.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - skills = require('./skill.coffee') if window? diff --git a/packages/litexa/src/parser/card.coffee b/packages/litexa/src/parser/card.coffee index 22600263..a3e3548b 100644 --- a/packages/litexa/src/parser/card.coffee +++ b/packages/litexa/src/parser/card.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} { AssetName } = require('./assets.coffee').lib diff --git a/packages/litexa/src/parser/dataTable.coffee b/packages/litexa/src/parser/dataTable.coffee index 73db6f5c..76e6e0eb 100644 --- a/packages/litexa/src/parser/dataTable.coffee +++ b/packages/litexa/src/parser/dataTable.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} whiteSpaceRegex = /(^\s*)|(\s*$)/g diff --git a/packages/litexa/src/parser/dbInterface.coffee b/packages/litexa/src/parser/dbInterface.coffee index b723b9f3..2a6c5f3e 100644 --- a/packages/litexa/src/parser/dbInterface.coffee +++ b/packages/litexa/src/parser/dbInterface.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = class DBInterface constructor: -> @variables = {} diff --git a/packages/litexa/src/parser/errors.coffee b/packages/litexa/src/parser/errors.coffee index 0adaf902..97fbd791 100644 --- a/packages/litexa/src/parser/errors.coffee +++ b/packages/litexa/src/parser/errors.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} class lib.ParserError extends Error diff --git a/packages/litexa/src/parser/files.coffee b/packages/litexa/src/parser/files.coffee index 4d29c957..699d0fcb 100644 --- a/packages/litexa/src/parser/files.coffee +++ b/packages/litexa/src/parser/files.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # a project collects more than one file that contributes to # the same skill. diff --git a/packages/litexa/src/parser/fsShim.coffee b/packages/litexa/src/parser/fsShim.coffee index 5f736bde..5b91d06d 100644 --- a/packages/litexa/src/parser/fsShim.coffee +++ b/packages/litexa/src/parser/fsShim.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports.readFileSync = (filename) -> throw "FSSHIM: Missing file #{filename}" unless filename of litexa.files return litexa.files[filename] diff --git a/packages/litexa/src/parser/function.coffee b/packages/litexa/src/parser/function.coffee index a22cd382..a1733dc9 100644 --- a/packages/litexa/src/parser/function.coffee +++ b/packages/litexa/src/parser/function.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} { LocalizationContext } = require('./localization.coffee') { ParserError } = require("./errors.coffee").lib diff --git a/packages/litexa/src/parser/handler.coffee b/packages/litexa/src/parser/handler.coffee index 9677dd3d..09e543b0 100644 --- a/packages/litexa/src/parser/handler.coffee +++ b/packages/litexa/src/parser/handler.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # causes every request and response object to be written to the logs loggingLevel = process?.env?.loggingLevel ? null diff --git a/packages/litexa/src/parser/intent.coffee b/packages/litexa/src/parser/intent.coffee index 76f0a188..8a9bb4bc 100644 --- a/packages/litexa/src/parser/intent.coffee +++ b/packages/litexa/src/parser/intent.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} { Function, FunctionMap } = require("./function.coffee").lib diff --git a/packages/litexa/src/parser/jsonValidator.coffee b/packages/litexa/src/parser/jsonValidator.coffee index 093caf31..139e32b2 100644 --- a/packages/litexa/src/parser/jsonValidator.coffee +++ b/packages/litexa/src/parser/jsonValidator.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports.lib = lib = {} class ValidationError diff --git a/packages/litexa/src/parser/lambda-preamble.coffee b/packages/litexa/src/parser/lambda-preamble.coffee index 97b900ad..7dacea3b 100644 --- a/packages/litexa/src/parser/lambda-preamble.coffee +++ b/packages/litexa/src/parser/lambda-preamble.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - AWS = require('aws-sdk') AWS.config.update({region: "us-east-1"}) diff --git a/packages/litexa/src/parser/litexa-gadget-animation.coffee b/packages/litexa/src/parser/litexa-gadget-animation.coffee index 7765306a..381b931b 100644 --- a/packages/litexa/src/parser/litexa-gadget-animation.coffee +++ b/packages/litexa/src/parser/litexa-gadget-animation.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - litexa.gadgetAnimation = # Gadget animations are for Echo Buttons right now # this is about animating the colors on the buttons diff --git a/packages/litexa/src/parser/litexa-library.coffee b/packages/litexa/src/parser/litexa-library.coffee index 28d819f3..8c31fd1a 100644 --- a/packages/litexa/src/parser/litexa-library.coffee +++ b/packages/litexa/src/parser/litexa-library.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - randomIndex = (count) -> Math.floor Math.random() * count diff --git a/packages/litexa/src/parser/localization.coffee b/packages/litexa/src/parser/localization.coffee index d80940d6..0422161f 100644 --- a/packages/litexa/src/parser/localization.coffee +++ b/packages/litexa/src/parser/localization.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - class exports.LocalizationContext constructor: -> diff --git a/packages/litexa/src/parser/mockEntitlements.coffee b/packages/litexa/src/parser/mockEntitlements.coffee index 9ae95c18..97e7f61e 100644 --- a/packages/litexa/src/parser/mockEntitlements.coffee +++ b/packages/litexa/src/parser/mockEntitlements.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports.fetchAll = (event, stateContext, after) -> unless stateContext.inSkillProducts.inSkillProducts? stateContext.inSkillProducts.inSkillProducts = [] diff --git a/packages/litexa/src/parser/mockdb.coffee b/packages/litexa/src/parser/mockdb.coffee index 646a255a..8b5c8c93 100644 --- a/packages/litexa/src/parser/mockdb.coffee +++ b/packages/litexa/src/parser/mockdb.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - DBInterface = require('./dbInterface.coffee') diff --git a/packages/litexa/src/parser/monetization.coffee b/packages/litexa/src/parser/monetization.coffee index 9221b569..5f33961d 100644 --- a/packages/litexa/src/parser/monetization.coffee +++ b/packages/litexa/src/parser/monetization.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} class lib.BuyInSkillProductStatement diff --git a/packages/litexa/src/parser/parser.coffee b/packages/litexa/src/parser/parser.coffee index ebba817c..5e6d9409 100644 --- a/packages/litexa/src/parser/parser.coffee +++ b/packages/litexa/src/parser/parser.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' mkdirp = require 'mkdirp' diff --git a/packages/litexa/src/parser/parserlib.coffee b/packages/litexa/src/parser/parserlib.coffee index 0eb4143c..53c35d8b 100644 --- a/packages/litexa/src/parser/parserlib.coffee +++ b/packages/litexa/src/parser/parserlib.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = {} resetLib = -> diff --git a/packages/litexa/src/parser/say.coffee b/packages/litexa/src/parser/say.coffee index f19eb097..513c7ce5 100644 --- a/packages/litexa/src/parser/say.coffee +++ b/packages/litexa/src/parser/say.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} { ParserError } = require('./errors.coffee').lib diff --git a/packages/litexa/src/parser/sayCounter.coffee b/packages/litexa/src/parser/sayCounter.coffee index 274088f8..ba272d51 100644 --- a/packages/litexa/src/parser/sayCounter.coffee +++ b/packages/litexa/src/parser/sayCounter.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # keeps a total counter while expressing randomized # statements to give each a unique ID diff --git a/packages/litexa/src/parser/skill.coffee b/packages/litexa/src/parser/skill.coffee index 300e98d5..96157990 100644 --- a/packages/litexa/src/parser/skill.coffee +++ b/packages/litexa/src/parser/skill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - fs = require 'fs' path = require 'path' mkdirp = require 'mkdirp' diff --git a/packages/litexa/src/parser/skillManifest.coffee b/packages/litexa/src/parser/skillManifest.coffee index 8ce374dc..60334e5c 100644 --- a/packages/litexa/src/parser/skillManifest.coffee +++ b/packages/litexa/src/parser/skillManifest.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - exports.createDefault = -> return skillManifest: diff --git a/packages/litexa/src/parser/soundEffect.coffee b/packages/litexa/src/parser/soundEffect.coffee index 37d24042..f20fc541 100644 --- a/packages/litexa/src/parser/soundEffect.coffee +++ b/packages/litexa/src/parser/soundEffect.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} { ParserError } = require('./errors.coffee').lib diff --git a/packages/litexa/src/parser/state.coffee b/packages/litexa/src/parser/state.coffee index 1ae1ee91..3479928d 100644 --- a/packages/litexa/src/parser/state.coffee +++ b/packages/litexa/src/parser/state.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} { Function } = require('./function.coffee').lib diff --git a/packages/litexa/src/parser/testing.coffee b/packages/litexa/src/parser/testing.coffee index fa4afe75..2665e02f 100644 --- a/packages/litexa/src/parser/testing.coffee +++ b/packages/litexa/src/parser/testing.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = {} uuid = require 'uuid' fs = require 'fs' diff --git a/packages/litexa/src/parser/utils.coffee b/packages/litexa/src/parser/utils.coffee index bb19d0c5..40aeb954 100644 --- a/packages/litexa/src/parser/utils.coffee +++ b/packages/litexa/src/parser/utils.coffee @@ -1,17 +1,9 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} lib.replaceNewlineCharacters = (str, replacementCharacter) -> diff --git a/packages/litexa/src/parser/variableReference.coffee b/packages/litexa/src/parser/variableReference.coffee index 7b94f187..cc799674 100644 --- a/packages/litexa/src/parser/variableReference.coffee +++ b/packages/litexa/src/parser/variableReference.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - lib = module.exports.lib = {} class lib.VariableReference diff --git a/packages/litexa/src/parser/variableScope.coffee b/packages/litexa/src/parser/variableScope.coffee index bdc07e5b..2759fe8f 100644 --- a/packages/litexa/src/parser/variableScope.coffee +++ b/packages/litexa/src/parser/variableScope.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - { ParserError, formatLocationStart } = (require './errors').lib # blacklist a set of references we know we don't want shadowed diff --git a/packages/litexa/src/setter.polyfill.coffee b/packages/litexa/src/setter.polyfill.coffee index 86d8f9a6..ffc8f02b 100644 --- a/packages/litexa/src/setter.polyfill.coffee +++ b/packages/litexa/src/setter.polyfill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # Coffee shim for es6 setter behavior Function::setter = (prop, set) -> diff --git a/packages/litexa/test/helpers.coffee b/packages/litexa/test/helpers.coffee index d7f2d2e9..edb8f2fe 100644 --- a/packages/litexa/test/helpers.coffee +++ b/packages/litexa/test/helpers.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - Test = Test || {}; class Test.MockProjectInfoInterface diff --git a/packages/litexa/test/specs/command-line/api/smapi.spec.coffee b/packages/litexa/test/specs/command-line/api/smapi.spec.coffee index 3095c8a5..9834c6f5 100644 --- a/packages/litexa/test/specs/command-line/api/smapi.spec.coffee +++ b/packages/litexa/test/specs/command-line/api/smapi.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - chai = require 'chai' { expect } = chai { assert, match, stub } = require 'sinon' diff --git a/packages/litexa/test/specs/command-line/deploy/validators.spec.coffee b/packages/litexa/test/specs/command-line/deploy/validators.spec.coffee index f2f8a4f7..b20bece3 100644 --- a/packages/litexa/test/specs/command-line/deploy/validators.spec.coffee +++ b/packages/litexa/test/specs/command-line/deploy/validators.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - { assert, expect } = require('chai') { fake, spy } = require('sinon') diff --git a/packages/litexa/test/specs/command-line/fileExtensions.spec.coffee b/packages/litexa/test/specs/command-line/fileExtensions.spec.coffee index acb27547..40fa3354 100644 --- a/packages/litexa/test/specs/command-line/fileExtensions.spec.coffee +++ b/packages/litexa/test/specs/command-line/fileExtensions.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {expect} = require('chai') fileExtensions = require('@src/command-line/fileExtensions') diff --git a/packages/litexa/test/specs/command-line/generateCommandDirector.spec.coffee b/packages/litexa/test/specs/command-line/generateCommandDirector.spec.coffee index a2aaa01b..9b06d458 100644 --- a/packages/litexa/test/specs/command-line/generateCommandDirector.spec.coffee +++ b/packages/litexa/test/specs/command-line/generateCommandDirector.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require 'chai' {match, spy, stub} = require 'sinon' diff --git a/packages/litexa/test/specs/command-line/generators/artifactTrackerGenerator.spec.coffee b/packages/litexa/test/specs/command-line/generators/artifactTrackerGenerator.spec.coffee index b274452f..480be74a 100644 --- a/packages/litexa/test/specs/command-line/generators/artifactTrackerGenerator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/artifactTrackerGenerator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/assetsDirectoryGenerator.spec.coffee b/packages/litexa/test/specs/command-line/generators/assetsDirectoryGenerator.spec.coffee index f54a7026..acd01b1f 100644 --- a/packages/litexa/test/specs/command-line/generators/assetsDirectoryGenerator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/assetsDirectoryGenerator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/configGenerator.spec.coffee b/packages/litexa/test/specs/command-line/generators/configGenerator.spec.coffee index 9bd09f86..7d7e3f13 100644 --- a/packages/litexa/test/specs/command-line/generators/configGenerator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/configGenerator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {fake, match, mock, spy, stub} = require('sinon') chai = require('chai') diff --git a/packages/litexa/test/specs/command-line/generators/directory/bundlerStructureCreator.spec.coffee b/packages/litexa/test/specs/command-line/generators/directory/bundlerStructureCreator.spec.coffee index 1951b566..df6b7f93 100644 --- a/packages/litexa/test/specs/command-line/generators/directory/bundlerStructureCreator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/directory/bundlerStructureCreator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert} = require('chai') {match,spy,stub} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/directory/inlinedStructureCreator.spec.coffee b/packages/litexa/test/specs/command-line/generators/directory/inlinedStructureCreator.spec.coffee index f3d2c9a1..57991739 100644 --- a/packages/litexa/test/specs/command-line/generators/directory/inlinedStructureCreator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/directory/inlinedStructureCreator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert} = require('chai') {match,spy,stub} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/directory/separateStructureCreator.spec.coffee b/packages/litexa/test/specs/command-line/generators/directory/separateStructureCreator.spec.coffee index 867d4948..d00a9f82 100644 --- a/packages/litexa/test/specs/command-line/generators/directory/separateStructureCreator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/directory/separateStructureCreator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert} = require('chai') {match,spy,stub} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/directory/structureCreator.spec.coffee b/packages/litexa/test/specs/command-line/generators/directory/structureCreator.spec.coffee index 72d8e6ec..5b403032 100644 --- a/packages/litexa/test/specs/command-line/generators/directory/structureCreator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/directory/structureCreator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy, stub} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/directoryCreator.spec.coffee b/packages/litexa/test/specs/command-line/generators/directoryCreator.spec.coffee index c2fc3e8f..50c50368 100644 --- a/packages/litexa/test/specs/command-line/generators/directoryCreator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/directoryCreator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') Test = require('@test/helpers') diff --git a/packages/litexa/test/specs/command-line/generators/generator.spec.coffee b/packages/litexa/test/specs/command-line/generators/generator.spec.coffee index 31022db7..6de1e923 100644 --- a/packages/litexa/test/specs/command-line/generators/generator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/generator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') Generator = require('@src/command-line/generators/generator') diff --git a/packages/litexa/test/specs/command-line/generators/searchReplace.spec.coffee b/packages/litexa/test/specs/command-line/generators/searchReplace.spec.coffee index 09bce5e8..670cf866 100644 --- a/packages/litexa/test/specs/command-line/generators/searchReplace.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/searchReplace.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {expect} = require 'chai' render = require '@src/command-line/generators/searchReplace' diff --git a/packages/litexa/test/specs/command-line/generators/skillIconsGenerator.spec.coffee b/packages/litexa/test/specs/command-line/generators/skillIconsGenerator.spec.coffee index 6666ee05..db4e3fac 100644 --- a/packages/litexa/test/specs/command-line/generators/skillIconsGenerator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/skillIconsGenerator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy, stub} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/skillManifestGenerator.spec.coffee b/packages/litexa/test/specs/command-line/generators/skillManifestGenerator.spec.coffee index 5b864a8a..660e1db0 100644 --- a/packages/litexa/test/specs/command-line/generators/skillManifestGenerator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/skillManifestGenerator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {fake, match, spy} = require('sinon') chai = require('chai') diff --git a/packages/litexa/test/specs/command-line/generators/sourceCodeGenerator.spec.coffee b/packages/litexa/test/specs/command-line/generators/sourceCodeGenerator.spec.coffee index 0d060d11..7b98ccfd 100644 --- a/packages/litexa/test/specs/command-line/generators/sourceCodeGenerator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/sourceCodeGenerator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy, stub} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/templateFilesHandler.spec.coffee b/packages/litexa/test/specs/command-line/generators/templateFilesHandler.spec.coffee index 23ea650f..0041a7c9 100644 --- a/packages/litexa/test/specs/command-line/generators/templateFilesHandler.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/templateFilesHandler.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require('chai') {match, spy, stub} = require('sinon') diff --git a/packages/litexa/test/specs/command-line/generators/validators/projectNameValidator.spec.coffee b/packages/litexa/test/specs/command-line/generators/validators/projectNameValidator.spec.coffee index 4c9b2bfc..e2fd93a7 100644 --- a/packages/litexa/test/specs/command-line/generators/validators/projectNameValidator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/validators/projectNameValidator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require 'chai' validate = require('@src/command-line/generators/validators/projectNameValidator') diff --git a/packages/litexa/test/specs/command-line/generators/validators/skillStoreTitleValidator.spec.coffee b/packages/litexa/test/specs/command-line/generators/validators/skillStoreTitleValidator.spec.coffee index f3792f36..a8a65811 100644 --- a/packages/litexa/test/specs/command-line/generators/validators/skillStoreTitleValidator.spec.coffee +++ b/packages/litexa/test/specs/command-line/generators/validators/skillStoreTitleValidator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require 'chai' validate = require('@src/command-line/generators/validators/skillStoreTitleValidator') diff --git a/packages/litexa/test/specs/command-line/isp.spec.coffee b/packages/litexa/test/specs/command-line/isp.spec.coffee index 20f3a79f..0e1a9f48 100644 --- a/packages/litexa/test/specs/command-line/isp.spec.coffee +++ b/packages/litexa/test/specs/command-line/isp.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - { expect } = require 'chai' { assert, match, stub } = require 'sinon' diff --git a/packages/litexa/test/specs/command-line/optionsValidator.spec.coffee b/packages/litexa/test/specs/command-line/optionsValidator.spec.coffee index 9d4d1b80..d1003723 100644 --- a/packages/litexa/test/specs/command-line/optionsValidator.spec.coffee +++ b/packages/litexa/test/specs/command-line/optionsValidator.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - {assert, expect} = require 'chai' validator = require '@src/command-line/optionsValidator' diff --git a/packages/litexa/test/specs/deployment/assets.spec.coffee b/packages/litexa/test/specs/deployment/assets.spec.coffee index d4813f04..59f8dd4b 100644 --- a/packages/litexa/test/specs/deployment/assets.spec.coffee +++ b/packages/litexa/test/specs/deployment/assets.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - Assets = require('@src/deployment/assets') rimraf = require 'rimraf' fs = require 'fs' diff --git a/packages/litexa/test/specs/getter.polyfill.spec.coffee b/packages/litexa/test/specs/getter.polyfill.spec.coffee index 0d5335b1..9c4d068e 100644 --- a/packages/litexa/test/specs/getter.polyfill.spec.coffee +++ b/packages/litexa/test/specs/getter.polyfill.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - require '@src/getter.polyfill' {expect} = require 'chai' diff --git a/packages/litexa/test/specs/parser/utils.spec.coffee b/packages/litexa/test/specs/parser/utils.spec.coffee index 54ba68ad..a5858ade 100644 --- a/packages/litexa/test/specs/parser/utils.spec.coffee +++ b/packages/litexa/test/specs/parser/utils.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - Utils = require('@src/parser/utils').lib {assert, expect} = require('chai') diff --git a/packages/litexa/test/specs/setter.polyfill.spec.coffee b/packages/litexa/test/specs/setter.polyfill.spec.coffee index e8ad45ef..80a1a10b 100644 --- a/packages/litexa/test/specs/setter.polyfill.spec.coffee +++ b/packages/litexa/test/specs/setter.polyfill.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - require '@src/setter.polyfill' {expect} = require 'chai' diff --git a/samples/.keep b/samples/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/samples/button-monte-sample/LICENSE b/samples/button-monte-sample/LICENSE new file mode 100644 index 00000000..44b3db7d --- /dev/null +++ b/samples/button-monte-sample/LICENSE @@ -0,0 +1,96 @@ +Amazon Software License 1.0 + +This Amazon Software License ("License") governs your use, reproduction, and +distribution of the accompanying software as specified below. + +1. Definitions + + "Licensor" means any person or entity that distributes its Work. + + "Software" means the original work of authorship made available under this + License. + + "Work" means the Software and any additions to or derivative works of the + Software that are made available under this License. + + The terms "reproduce," "reproduction," "derivative works," and + "distribution" have the meaning as provided under U.S. copyright law; + provided, however, that for the purposes of this License, derivative works + shall not include works that remain separable from, or merely link (or bind + by name) to the interfaces of, the Work. + + Works, including the Software, are "made available" under this License by + including in or with the Work either (a) a copyright notice referencing the + applicability of this License to the Work, or (b) a copy of this License. + +2. License Grants + + 2.1 Copyright Grant. Subject to the terms and conditions of this License, + each Licensor grants to you a perpetual, worldwide, non-exclusive, + royalty-free, copyright license to reproduce, prepare derivative works of, + publicly display, publicly perform, sublicense and distribute its Work and + any resulting derivative works in any form. + + 2.2 Patent Grant. Subject to the terms and conditions of this License, each + Licensor grants to you a perpetual, worldwide, non-exclusive, royalty-free + patent license to make, have made, use, sell, offer for sale, import, and + otherwise transfer its Work, in whole or in part. The foregoing license + applies only to the patent claims licensable by Licensor that would be + infringed by Licensor's Work (or portion thereof) individually and + excluding any combinations with any other materials or technology. + +3. Limitations + + 3.1 Redistribution. You may reproduce or distribute the Work only if + (a) you do so under this License, (b) you include a complete copy of this + License with your distribution, and (c) you retain without modification + any copyright, patent, trademark, or attribution notices that are present + in the Work. + + 3.2 Derivative Works. You may specify that additional or different terms + apply to the use, reproduction, and distribution of your derivative works + of the Work ("Your Terms") only if (a) Your Terms provide that the use + limitation in Section 3.3 applies to your derivative works, and (b) you + identify the specific derivative works that are subject to Your Terms. + Notwithstanding Your Terms, this License (including the redistribution + requirements in Section 3.1) will continue to apply to the Work itself. + + 3.3 Use Limitation. The Work and any derivative works thereof only may be + used or intended for use with the web services, computing platforms or + applications provided by Amazon.com, Inc. or its affiliates, including + Amazon Web Services, Inc. + + 3.4 Patent Claims. If you bring or threaten to bring a patent claim against + any Licensor (including any claim, cross-claim or counterclaim in a + lawsuit) to enforce any patents that you allege are infringed by any Work, + then your rights under this License from such Licensor (including the + grants in Sections 2.1 and 2.2) will terminate immediately. + + 3.5 Trademarks. This License does not grant any rights to use any + Licensor's or its affiliates' names, logos, or trademarks, except as + necessary to reproduce the notices described in this License. + + 3.6 Termination. If you violate any term of this License, then your rights + under this License (including the grants in Sections 2.1 and 2.2) will + terminate immediately. + +4. Disclaimer of Warranty. + + THE WORK IS PROVIDED "AS IS" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + EITHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OR CONDITIONS OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE OR + NON-INFRINGEMENT. YOU BEAR THE RISK OF UNDERTAKING ANY ACTIVITIES UNDER + THIS LICENSE. SOME STATES' CONSUMER LAWS DO NOT ALLOW EXCLUSION OF AN + IMPLIED WARRANTY, SO THIS DISCLAIMER MAY NOT APPLY TO YOU. + +5. Limitation of Liability. + + EXCEPT AS PROHIBITED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL + THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE + SHALL ANY LICENSOR BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, + INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR + RELATED TO THIS LICENSE, THE USE OR INABILITY TO USE THE WORK (INCLUDING + BUT NOT LIMITED TO LOSS OF GOODWILL, BUSINESS INTERRUPTION, LOST PROFITS + OR DATA, COMPUTER FAILURE OR MALFUNCTION, OR ANY OTHER COMM ERCIAL DAMAGES + OR LOSSES), EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF + SUCH DAMAGES. diff --git a/samples/button-monte-sample/LICENSE.TXT b/samples/button-monte-sample/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/samples/button-monte-sample/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/samples/button-monte-sample/NOTICE b/samples/button-monte-sample/NOTICE new file mode 100644 index 00000000..3937b44b --- /dev/null +++ b/samples/button-monte-sample/NOTICE @@ -0,0 +1,2 @@ +Alexa Games Sample Code +Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. diff --git a/samples/button-monte-sample/README.md b/samples/button-monte-sample/README.md index d9788e29..d1434f85 100644 --- a/samples/button-monte-sample/README.md +++ b/samples/button-monte-sample/README.md @@ -1,6 +1,7 @@ # button-monte-sample -This is an Echo Button version of the classic shell game, or three card monte. It is written using the Litexa framework. This sample code will demonstrate the following concepts: +This is an Echo Button version of the classic shell game, or three card monte. It is written using the Litexa framework. +This sample code will demonstrate the following concepts: * how to write and test an Alexa Skill in the Litexa framework * how to use the Input Handler Litexa extension diff --git a/samples/button-monte-sample/litexa.config.coffee b/samples/button-monte-sample/litexa.config.coffee index 6a3a9c10..e016b53e 100644 --- a/samples/button-monte-sample/litexa.config.coffee +++ b/samples/button-monte-sample/litexa.config.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = name: 'button-monte-sample' deployments: diff --git a/samples/button-monte-sample/litexa/main.coffee b/samples/button-monte-sample/litexa/main.coffee index 39457d3b..62eaecad 100644 --- a/samples/button-monte-sample/litexa/main.coffee +++ b/samples/button-monte-sample/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### gameplay logic ### black = '000000' diff --git a/samples/button-monte-sample/package.json b/samples/button-monte-sample/package.json index 6b50fdc9..5f6c6548 100644 --- a/samples/button-monte-sample/package.json +++ b/samples/button-monte-sample/package.json @@ -1,11 +1,13 @@ { "name": "button-monte-sample", - "version": "0.0.1", "description": "Sample game using Echo Buttons via the @litexa/gadgets extension.", - "main": "", - "scripts": { - "test": "echo \"Warning: no test specified\" && exit 0" - }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT" + "private": true, + "keywords": [ + "alexa", + "game", + "skill" + ], + "author": "Amazon", + "license": "SEE LICENSE IN LICENSE", + "scripts": {} } diff --git a/samples/button-monte-sample/skill.coffee b/samples/button-monte-sample/skill.coffee index d731b396..341bb736 100644 --- a/samples/button-monte-sample/skill.coffee +++ b/samples/button-monte-sample/skill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### This is a sample skill manifest for Button Monte. ### diff --git a/tests/LICENSE b/tests/LICENSE new file mode 100644 index 00000000..310701c9 --- /dev/null +++ b/tests/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2019 Amazon.com, Inc. + + 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/tests/LICENSE.TXT b/tests/LICENSE.TXT deleted file mode 100644 index 58eb1d13..00000000 --- a/tests/LICENSE.TXT +++ /dev/null @@ -1,3 +0,0 @@ -Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - -These materials are licensed as "Restricted Program Materials" under the Program Materials License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. The Agreement is available at https://developer.amazon.com/public/support/pml.html. See the Agreement for the specific terms and conditions of the Agreement. Capitalized terms not defined in this file have the meanings given to them in the Agreement. \ No newline at end of file diff --git a/tests/data/apl/litexa/main.js b/tests/data/apl/litexa/main.js index 3b626ad3..fbe4bc76 100644 --- a/tests/data/apl/litexa/main.js +++ b/tests/data/apl/litexa/main.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const audioCommand = { diff --git a/tests/data/apl/package.json b/tests/data/apl/package.json index 63ea4cfa..604d79b9 100644 --- a/tests/data/apl/package.json +++ b/tests/data/apl/package.json @@ -2,12 +2,11 @@ "name": "apl-integration-test", "version": "0.0.1", "description": "Project that tests the @litexa/apl extension's functionality.", - "main": "", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT", + "author": "Amazon", + "license": "Apache-2.0", "dependencies": { "@litexa/apl": "file:../../../packages/litexa-apl" } diff --git a/tests/data/async-functions/litexa/main.coffee b/tests/data/async-functions/litexa/main.coffee index 3885ad3c..13a8732c 100644 --- a/tests/data/async-functions/litexa/main.coffee +++ b/tests/data/async-functions/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - getAfterDelay = (number) -> if litexa.localTesting new Promise (resolve, reject) -> diff --git a/tests/data/db-classes/litexa/board.js b/tests/data/db-classes/litexa/board.js index bab0de90..1579c85a 100644 --- a/tests/data/db-classes/litexa/board.js +++ b/tests/data/db-classes/litexa/board.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ class Board { diff --git a/tests/data/db-classes/litexa/game.coffee b/tests/data/db-classes/litexa/game.coffee index 0e29fc26..2a985e0f 100644 --- a/tests/data/db-classes/litexa/game.coffee +++ b/tests/data/db-classes/litexa/game.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # When used to type a database variable in Litexa, # this class will be constructed only when the database # value is still undefined. Otherwise, on subsequent diff --git a/tests/data/directives/litexa/game.coffee b/tests/data/directives/litexa/game.coffee index 030318d6..d326a6bd 100644 --- a/tests/data/directives/litexa/game.coffee +++ b/tests/data/directives/litexa/game.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - makeSingleDirective = -> return type: "AudioPlayer.Play" diff --git a/tests/data/extensions/external/runtime-require/litexa.extension.coffee b/tests/data/extensions/external/runtime-require/litexa.extension.coffee index fafe7dcd..8c80b782 100644 --- a/tests/data/extensions/external/runtime-require/litexa.extension.coffee +++ b/tests/data/extensions/external/runtime-require/litexa.extension.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = (options, lib) -> runtime: apiName: "RuntimeRequire" diff --git a/tests/data/extensions/external/runtime-require/package.json b/tests/data/extensions/external/runtime-require/package.json index 9e8dcaf6..30263213 100644 --- a/tests/data/extensions/external/runtime-require/package.json +++ b/tests/data/extensions/external/runtime-require/package.json @@ -1,11 +1,10 @@ { "name": "runtime-require", "version": "0.0.1", - "description": "", "main": "index.js", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/data/extensions/external/runtime-require/runtime-source.js b/tests/data/extensions/external/runtime-require/runtime-source.js index b600ec4a..62b6f9c9 100644 --- a/tests/data/extensions/external/runtime-require/runtime-source.js +++ b/tests/data/extensions/external/runtime-require/runtime-source.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ module.exports = function(context) { diff --git a/tests/data/extensions/external/statement-require/litexa.extension.coffee b/tests/data/extensions/external/statement-require/litexa.extension.coffee index c5968ef5..4b2a4e05 100644 --- a/tests/data/extensions/external/statement-require/litexa.extension.coffee +++ b/tests/data/extensions/external/statement-require/litexa.extension.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = (options, lib) -> language: statements: diff --git a/tests/data/extensions/external/statement-require/package.json b/tests/data/extensions/external/statement-require/package.json index ea2cb8f7..57e02b0f 100644 --- a/tests/data/extensions/external/statement-require/package.json +++ b/tests/data/extensions/external/statement-require/package.json @@ -1,11 +1,10 @@ { "name": "statement-require", "version": "0.0.1", - "description": "", "main": "index.js", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/data/extensions/external/statement-require/stuff.js b/tests/data/extensions/external/statement-require/stuff.js index ef06d10f..3575e096 100644 --- a/tests/data/extensions/external/statement-require/stuff.js +++ b/tests/data/extensions/external/statement-require/stuff.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ module.exports = { diff --git a/tests/data/extensions/litexa/package.json b/tests/data/extensions/litexa/package.json index 0fa9ef8b..1d3a1dbb 100644 --- a/tests/data/extensions/litexa/package.json +++ b/tests/data/extensions/litexa/package.json @@ -1,12 +1,11 @@ { "name": "litexa", "version": "0.0.1", - "description": "", "main": "utils.js", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0", "dependencies": { "runtime-require": "file:../external/runtime-require", diff --git a/tests/data/extensions/litexa/utils.js b/tests/data/extensions/litexa/utils.js index 3f7667f4..8c69df3c 100644 --- a/tests/data/extensions/litexa/utils.js +++ b/tests/data/extensions/litexa/utils.js @@ -1,11 +1,6 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ - diff --git a/tests/data/extensions/litexa/utils_new.test.js b/tests/data/extensions/litexa/utils_new.test.js index e301e0be..96c578e6 100644 --- a/tests/data/extensions/litexa/utils_new.test.js +++ b/tests/data/extensions/litexa/utils_new.test.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ Test.expect("stuff to work", function() { diff --git a/tests/data/extensions/modules/runtime-inline/litexa.extension.coffee b/tests/data/extensions/modules/runtime-inline/litexa.extension.coffee index f8718873..e8f5056d 100644 --- a/tests/data/extensions/modules/runtime-inline/litexa.extension.coffee +++ b/tests/data/extensions/modules/runtime-inline/litexa.extension.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = (options, lib) -> compiler: validEventNames: [ 'TotallyNot.RealIntent' ] diff --git a/tests/data/extensions/modules/runtime-inline/package.json b/tests/data/extensions/modules/runtime-inline/package.json index 68e550ed..7aea10f8 100644 --- a/tests/data/extensions/modules/runtime-inline/package.json +++ b/tests/data/extensions/modules/runtime-inline/package.json @@ -1,8 +1,7 @@ { "name": "runtime-line", "version": "0.0.1", - "description": "", "scripts": {}, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/data/extensions/modules/statement-inline/litexa.extension.coffee b/tests/data/extensions/modules/statement-inline/litexa.extension.coffee index b67f15bf..b13cd6bb 100644 --- a/tests/data/extensions/modules/statement-inline/litexa.extension.coffee +++ b/tests/data/extensions/modules/statement-inline/litexa.extension.coffee @@ -1,34 +1,26 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = (options, lib) -> - language: - statements: + language: + statements: "InlineStatement": parser: "InlineStatement = 'inlineStatement' ___ n:Number { pushCode(location(), new lib.InlineStatement(n)); }" - lib: + lib: InlineStatement: InlineStatement class InlineStatement constructor: (@number) -> - + toLambda: (output, indent, options) -> output.push "#{indent}context.say.push('Inline statement said #{@number}.');" output.push "#{indent}console.log('inline statement value: #{@number}');" diff --git a/tests/data/extensions/modules/statement-inline/package.json b/tests/data/extensions/modules/statement-inline/package.json index a075b5ea..c6954704 100644 --- a/tests/data/extensions/modules/statement-inline/package.json +++ b/tests/data/extensions/modules/statement-inline/package.json @@ -1,8 +1,7 @@ { "name": "statement-inline", "version": "0.0.1", - "description": "", "scripts": {}, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/data/extensions/skeleton/litexa.extension.coffee b/tests/data/extensions/skeleton/litexa.extension.coffee index 85be2f12..9f3401a5 100644 --- a/tests/data/extensions/skeleton/litexa.extension.coffee +++ b/tests/data/extensions/skeleton/litexa.extension.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # This file documents the extension module format # An extension module should export this single function, returning diff --git a/tests/data/for-loops/litexa/main.coffee b/tests/data/for-loops/litexa/main.coffee index abc5647d..d529db2b 100644 --- a/tests/data/for-loops/litexa/main.coffee +++ b/tests/data/for-loops/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - getNumbers = -> [3, 5, 8, 9] getNames = -> diff --git a/tests/data/function-calls/litexa/main.coffee b/tests/data/function-calls/litexa/main.coffee index 8b42093b..ddd32507 100644 --- a/tests/data/function-calls/litexa/main.coffee +++ b/tests/data/function-calls/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - test = -> "test" echo = (num, str, bool, obj, result) -> if num == 10 and str == 'test' and bool and obj.exists and result == 'test' diff --git a/tests/data/gadgets/litexa/utils.coffee b/tests/data/gadgets/litexa/utils.coffee index a7e310d7..624dfa1a 100644 --- a/tests/data/gadgets/litexa/utils.coffee +++ b/tests/data/gadgets/litexa/utils.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - pulseButtons = -> directive = type: "GadgetController.SetLight" diff --git a/tests/data/gadgets/litexa/utils.test.coffee b/tests/data/gadgets/litexa/utils.test.coffee index c28d13e1..e85d781a 100644 --- a/tests/data/gadgets/litexa/utils.test.coffee +++ b/tests/data/gadgets/litexa/utils.test.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - Test.expect "Gadget Directives to be validated", -> Test.directives "inputHandler", anyButtonHandler() Test.directives "setLight", pulseButtons() diff --git a/tests/data/gadgets/package.json b/tests/data/gadgets/package.json index 30cf61a6..c4ed56ce 100644 --- a/tests/data/gadgets/package.json +++ b/tests/data/gadgets/package.json @@ -1,12 +1,10 @@ { "name": "gadgets-integration-test", "version": "0.0.1", - "description": "", - "main": "", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0", "dependencies": { "@litexa/gadgets": "file:../../../packages/litexa-gadgets" diff --git a/tests/data/gadgets/skill.coffee b/tests/data/gadgets/skill.coffee index e3714b08..97238465 100644 --- a/tests/data/gadgets/skill.coffee +++ b/tests/data/gadgets/skill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### This file exports an object that is a subset of the data specified for an Alexa skill manifest as defined at diff --git a/tests/data/hello-world/litexa/hello.litexa b/tests/data/hello-world/litexa/hello.litexa index d3db8d9c..0107e5ac 100644 --- a/tests/data/hello-world/litexa/hello.litexa +++ b/tests/data/hello-world/litexa/hello.litexa @@ -64,7 +64,6 @@ bye END - global when AMAZON.HelpIntent say "Introduce yourself by saying something like my name is Jane. " diff --git a/tests/data/hello-world/litexa/main.coffee b/tests/data/hello-world/litexa/main.coffee index 13793995..c9a6118a 100644 --- a/tests/data/hello-world/litexa/main.coffee +++ b/tests/data/hello-world/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - formatName = (name) -> path = require('path') nameFormatter = require('name-formatter') diff --git a/tests/data/hello-world/litexa/package.json b/tests/data/hello-world/litexa/package.json index 82aebbc0..e376be59 100644 --- a/tests/data/hello-world/litexa/package.json +++ b/tests/data/hello-world/litexa/package.json @@ -1,13 +1,12 @@ { "name": "dependencies", "version": "0.0.1", - "description": "", "main": "index.coffee", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT", + "author": "Amazon", + "license": "Apache-2.0", "dependencies": { "name-formatter": "file:../modules/name-formatter" } diff --git a/tests/data/hello-world/modules/name-formatter/index.coffee b/tests/data/hello-world/modules/name-formatter/index.coffee index 939eda5d..489ae1d5 100644 --- a/tests/data/hello-world/modules/name-formatter/index.coffee +++ b/tests/data/hello-world/modules/name-formatter/index.coffee @@ -1,17 +1,9 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - exports.format = (name) -> - "~~ #{name}! ~~" + "~~ #{name}! ~~" diff --git a/tests/data/hello-world/modules/name-formatter/package.json b/tests/data/hello-world/modules/name-formatter/package.json index f68cac49..3c6c1b0e 100644 --- a/tests/data/hello-world/modules/name-formatter/package.json +++ b/tests/data/hello-world/modules/name-formatter/package.json @@ -1,11 +1,10 @@ { "name": "name-formatter", "version": "0.0.1", - "description": "", "main": "index.js", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT" + "author": "Amazon", + "license": "Apache-2.0" } diff --git a/tests/data/hello-world/skill.coffee b/tests/data/hello-world/skill.coffee index f8d0a635..a614a749 100644 --- a/tests/data/hello-world/skill.coffee +++ b/tests/data/hello-world/skill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - ### This file exports an object that is a subset of the data specified for an Alexa skill manifest as defined at diff --git a/tests/data/lexical-scoping/externals/logger/index.js b/tests/data/lexical-scoping/externals/logger/index.js index 3b4ddafb..21b38d48 100644 --- a/tests/data/lexical-scoping/externals/logger/index.js +++ b/tests/data/lexical-scoping/externals/logger/index.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ module.exports = function(txt) { diff --git a/tests/data/lexical-scoping/externals/logger/package.json b/tests/data/lexical-scoping/externals/logger/package.json index e1a63b89..5a50155e 100644 --- a/tests/data/lexical-scoping/externals/logger/package.json +++ b/tests/data/lexical-scoping/externals/logger/package.json @@ -2,8 +2,7 @@ "name": "logger", "version": "0.0.1", "description": "Mock external package that exports a single function to test inline scope fallback behavior", - "main": "", "scripts": {}, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/data/lexical-scoping/litexa/main.coffee b/tests/data/lexical-scoping/litexa/main.coffee index 5ec43ee8..5bf66a14 100644 --- a/tests/data/lexical-scoping/litexa/main.coffee +++ b/tests/data/lexical-scoping/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - # WINCOMPAT: This doesn't work on Windows # logit = require 'logger' logit = (txt) -> console.log('logging ' + txt) diff --git a/tests/data/lexical-scoping/litexa/package.json b/tests/data/lexical-scoping/litexa/package.json index 0679f811..2986f3b1 100644 --- a/tests/data/lexical-scoping/litexa/package.json +++ b/tests/data/lexical-scoping/litexa/package.json @@ -2,11 +2,10 @@ "name": "lexical-scoping-integration-test", "version": "0.0.1", "description": "Test project to validate various scoping support in Litexa", - "main": "", "dependencies": { "logger": "file:../externals/logger" }, "scripts": {}, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/data/monetization/skill.coffee b/tests/data/monetization/skill.coffee index 2b1bb143..a2155f6f 100644 --- a/tests/data/monetization/skill.coffee +++ b/tests/data/monetization/skill.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - module.exports = manifest: publishingInformation: diff --git a/tests/data/parser-extension/modules/extension/litexa.extension.coffee b/tests/data/parser-extension/modules/extension/litexa.extension.coffee index eda050f3..21bb9914 100644 --- a/tests/data/parser-extension/modules/extension/litexa.extension.coffee +++ b/tests/data/parser-extension/modules/extension/litexa.extension.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - class ExtensionClass constructor: (@testData) -> diff --git a/tests/data/parser-extension/modules/extension/package.json b/tests/data/parser-extension/modules/extension/package.json index 76930f75..b1741ad7 100644 --- a/tests/data/parser-extension/modules/extension/package.json +++ b/tests/data/parser-extension/modules/extension/package.json @@ -2,10 +2,9 @@ "name": "@litexa/test-extension", "version": "0.0.1", "description": "Module for testing Litexa extensions.", - "main": "", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/data/render-template/litexa/main.js b/tests/data/render-template/litexa/main.js index f8700cfc..d4b83bdf 100644 --- a/tests/data/render-template/litexa/main.js +++ b/tests/data/render-template/litexa/main.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ const getListItems = function(template){ diff --git a/tests/data/render-template/package.json b/tests/data/render-template/package.json index 58fe3ee1..94f89500 100644 --- a/tests/data/render-template/package.json +++ b/tests/data/render-template/package.json @@ -2,12 +2,11 @@ "name": "render-template-integration-test", "version": "0.0.1", "description": "Project that tests the @litexa/render-template extension's functionality.", - "main": "", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT", + "author": "Amazon", + "license": "Apache-2.0", "dependencies": { "@litexa/render-template": "file:../../../packages/litexa-render-template" } diff --git a/tests/data/say-formatting/package.json b/tests/data/say-formatting/package.json index b25c30ab..84cba360 100644 --- a/tests/data/say-formatting/package.json +++ b/tests/data/say-formatting/package.json @@ -2,12 +2,11 @@ "name": "say-formatting-integration-test", "version": "0.0.1", "description": "Project that tests the say-formatting functionality.", - "main": "", "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT", + "author": "Amazon", + "license": "Apache-2.0", "dependencies": { "@litexa/render-template": "file:../../../packages/litexa-render-template" } diff --git a/tests/data/say-randomization/litexa/main.coffee b/tests/data/say-randomization/litexa/main.coffee index 2c30a104..88c3c9d5 100644 --- a/tests/data/say-randomization/litexa/main.coffee +++ b/tests/data/say-randomization/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - testSay = (context) -> # test the algorithm directly for a range of variation counts diff --git a/tests/data/state-tracing/litexa/utils.js b/tests/data/state-tracing/litexa/utils.js index 1f22468f..6ad3c8ac 100644 --- a/tests/data/state-tracing/litexa/utils.js +++ b/tests/data/state-tracing/litexa/utils.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; diff --git a/tests/data/state-tracing/litexa/utils.test.js b/tests/data/state-tracing/litexa/utils.test.js index 8b9f392a..b7f61080 100644 --- a/tests/data/state-tracing/litexa/utils.test.js +++ b/tests/data/state-tracing/litexa/utils.test.js @@ -1,12 +1,8 @@ /* - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + * Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0 + * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */ 'use strict'; diff --git a/tests/data/state-transitions/litexa/main.coffee b/tests/data/state-transitions/litexa/main.coffee index 157efd67..ef7f884b 100644 --- a/tests/data/state-transitions/litexa/main.coffee +++ b/tests/data/state-transitions/litexa/main.coffee @@ -1,16 +1,8 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - getList = -> [1, 2, 'yo', 4, 5] diff --git a/tests/data/switch/litexa/main.coffee b/tests/data/switch/litexa/main.coffee index ca0d09d6..9451243b 100644 --- a/tests/data/switch/litexa/main.coffee +++ b/tests/data/switch/litexa/main.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - pickSomething = -> 4 sumNumbers = -> diff --git a/tests/data/wav-extension/package.json b/tests/data/wav-extension/package.json index d5e181a5..f1f359db 100644 --- a/tests/data/wav-extension/package.json +++ b/tests/data/wav-extension/package.json @@ -1,14 +1,12 @@ { "name": "wav-extension-integration-test", "version": "0.0.1", - "description": "", - "main": "", "dependencies": { "@litexa/assets-wav": "file:../../../packages/litexa-assets-wav" }, "scripts": { "test": "echo \"Warning: no test specified\" && exit 0" }, - "author": "Amazon.com", + "author": "Amazon", "license": "Apache-2.0" } diff --git a/tests/features/apl.spec.coffee b/tests/features/apl.spec.coffee index 41622c06..85f75d82 100644 --- a/tests/features/apl.spec.coffee +++ b/tests/features/apl.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/async-functions.spec.coffee b/tests/features/async-functions.spec.coffee index 3c2f5ae1..109a45b9 100644 --- a/tests/features/async-functions.spec.coffee +++ b/tests/features/async-functions.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/cards.spec.coffee b/tests/features/cards.spec.coffee index 9261ceda..c825448c 100644 --- a/tests/features/cards.spec.coffee +++ b/tests/features/cards.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/comments.spec.coffee b/tests/features/comments.spec.coffee index 01bc0c7d..4dc3d724 100644 --- a/tests/features/comments.spec.coffee +++ b/tests/features/comments.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') path = require 'path' diff --git a/tests/features/directives.spec.coffee b/tests/features/directives.spec.coffee index bd3845da..49b4fe33 100644 --- a/tests/features/directives.spec.coffee +++ b/tests/features/directives.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/extensions.spec.coffee b/tests/features/extensions.spec.coffee index 9da8c856..18f3d2e9 100644 --- a/tests/features/extensions.spec.coffee +++ b/tests/features/extensions.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/for.spec.coffee b/tests/features/for.spec.coffee index 0f19e427..10215e7c 100644 --- a/tests/features/for.spec.coffee +++ b/tests/features/for.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/function-calls.spec.coffee b/tests/features/function-calls.spec.coffee index e81c3e6a..d800d4d9 100644 --- a/tests/features/function-calls.spec.coffee +++ b/tests/features/function-calls.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/gadgets.spec.coffee b/tests/features/gadgets.spec.coffee index 1eeba923..c0d68493 100644 --- a/tests/features/gadgets.spec.coffee +++ b/tests/features/gadgets.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/hello-world.spec.coffee b/tests/features/hello-world.spec.coffee index 45eea08d..21a4bf80 100644 --- a/tests/features/hello-world.spec.coffee +++ b/tests/features/hello-world.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/intents.spec.coffee b/tests/features/intents.spec.coffee index 801dfa80..d6786a40 100644 --- a/tests/features/intents.spec.coffee +++ b/tests/features/intents.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') {runSkill, expectParse, expectFailParse} = require '../preamble.coffee' diff --git a/tests/features/lexical-scoping.spec.coffee b/tests/features/lexical-scoping.spec.coffee index 3dbd13ae..2204c132 100644 --- a/tests/features/lexical-scoping.spec.coffee +++ b/tests/features/lexical-scoping.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/localization.spec.coffee b/tests/features/localization.spec.coffee index 8eef64e5..ae18b178 100644 --- a/tests/features/localization.spec.coffee +++ b/tests/features/localization.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' @@ -36,7 +28,7 @@ describe 'supports languages folder overrides', -> frCatBreeds = frModel.languageModel.types[0] expectedUsCatBreeds = ['american shorthair', 'american curl', 'maine coon'] # uses default testCompleteSlotValuesForIntent(frCatBreeds, expectedUsCatBreeds) - + it 'eliminates intent handlers that do not exist in the overridden state', -> frModel = await preamble.buildSkillModel 'localization', 'fr' intents = frModel.languageModel.intents.map (intent) -> intent.name @@ -46,4 +38,4 @@ describe 'supports languages folder overrides', -> for slotValue in actualSlots.values assert(slotValue.name.value in expectedSlots) expectedSlots.splice(expectedSlots.indexOf(slotValue.name.value), 1) - assert(expectedSlots.length == 0) \ No newline at end of file + assert(expectedSlots.length == 0) diff --git a/tests/features/render-template.spec.coffee b/tests/features/render-template.spec.coffee index ed3cb193..b53f3974 100644 --- a/tests/features/render-template.spec.coffee +++ b/tests/features/render-template.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/say.spec.coffee b/tests/features/say.spec.coffee index 3f258a9d..0c1e9b7f 100644 --- a/tests/features/say.spec.coffee +++ b/tests/features/say.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('says') path = require 'path' diff --git a/tests/features/skill-building.spec.coffee b/tests/features/skill-building.spec.coffee index 7845fab9..110578db 100644 --- a/tests/features/skill-building.spec.coffee +++ b/tests/features/skill-building.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') path = require 'path' diff --git a/tests/features/sound.spec.coffee b/tests/features/sound.spec.coffee index 5172e902..7c0116b3 100644 --- a/tests/features/sound.spec.coffee +++ b/tests/features/sound.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/states.spec.coffee b/tests/features/states.spec.coffee index e7464924..c24b8656 100644 --- a/tests/features/states.spec.coffee +++ b/tests/features/states.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' preamble = require '../preamble.coffee' diff --git a/tests/features/switch.spec.coffee b/tests/features/switch.spec.coffee index a977f606..bdfacc47 100644 --- a/tests/features/switch.spec.coffee +++ b/tests/features/switch.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/tag-test.spec.coffee b/tests/features/tag-test.spec.coffee index f4701c25..e53c4dce 100644 --- a/tests/features/tag-test.spec.coffee +++ b/tests/features/tag-test.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/features/test.spec.coffee b/tests/features/test.spec.coffee index c2b204fc..35f897f9 100644 --- a/tests/features/test.spec.coffee +++ b/tests/features/test.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' path = require 'path' preamble = require '../preamble.coffee' diff --git a/tests/features/wav-extension.spec.coffee b/tests/features/wav-extension.spec.coffee index fe9f3588..3867fa5d 100644 --- a/tests/features/wav-extension.spec.coffee +++ b/tests/features/wav-extension.spec.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - assert = require 'assert' debug = require('debug')('litexa') preamble = require '../preamble.coffee' diff --git a/tests/package.json b/tests/package.json index d907c077..87b13f1d 100644 --- a/tests/package.json +++ b/tests/package.json @@ -8,7 +8,7 @@ "coverage": "npx nyc npm test && node ../cacheCoverage.js", "test": "npx mocha --opts mocha.opts \"./features/*.spec.coffee\"" }, - "author": "Amazon.com", - "license": "SEE LICENSE IN LICENSE.TXT", + "author": "Amazon", + "license": "Apache-2.0", "private": true } diff --git a/tests/preamble.coffee b/tests/preamble.coffee index f408a692..5e9f0e98 100644 --- a/tests/preamble.coffee +++ b/tests/preamble.coffee @@ -1,18 +1,10 @@ - ### - - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - * Copyright 2019 Amazon.com (http://amazon.com/), Inc. or its affiliates. All Rights Reserved. - * These materials are licensed as "Restricted Program Materials" under the Program Materials - * License Agreement (the "Agreement") in connection with the Amazon Alexa voice service. - * The Agreement is available at https://developer.amazon.com/public/support/pml.html. - * See the Agreement for the specific terms and conditions of the Agreement. Capitalized - * terms not defined in this file have the meanings given to them in the Agreement. - * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ - +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. +# SPDX-License-Identifier: Apache-2.0 +# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ### - mkdirp = require 'mkdirp' path = require 'path' fs = require 'fs'