321 Commits

Author SHA1 Message Date
Eslam λ Hefnawy
eeb8b8a68c Merge pull request #3327 from HyperBrain/support-entrypoints-for-plugins
Allow entrypoints to be defined and called by plugins.
2017-03-17 23:59:05 +08:00
Eslam λ Hefnawy
808e666627 Merge pull request #3375 from serverless/updateDepricationNotice
update deprication message
2017-03-17 23:45:44 +08:00
Philipp Muens
96b135b7e7 Remove slightly misleading error message 2017-03-17 11:11:22 +01:00
davidwells
ade23e0d4c update linting 2017-03-16 15:10:58 -07:00
davidwells
4f6c719075 update test to work with new message 2017-03-16 15:04:14 -07:00
davidwells
da220cc826 add forums and chat links to errors 2017-03-16 14:57:00 -07:00
davidwells
59c33a1f36 update deprication message 2017-03-16 14:45:11 -07:00
Eslam A. Hefnawy
c2e51a6eb3 releasing v1.9 2017-03-15 03:07:52 +08:00
Frank Schmid
9ea13b4a37 Added pluginManager tests for spawn functionality. 2017-03-14 00:15:37 +01:00
Philipp Muens
1594868266 Merge pull request #3180 from nrako/fix_plugin_manager
Fix node_modules (serverless plugins) lookup
2017-03-13 13:54:28 +01:00
Frank Schmid
07d1141f99 Allow entrypoints to be defined and called by plugins.
Commands can contain a type property. The only allowed value currently is 'entrypoint'. This declares the command as hidden from the CLI. It will not appear in the help screen, nor can it be called from there.
However, entrypoint type commands can be called by plugins via the new PluginManager.spawn(commandsArray) method. In contrast to PluginManager.run() this method allows access to entrypoint commands and can be used to enter a plugin internal sub lifecycle. With this mechanism in place, plugins can expose their own lifecycle events which become then part of the global lifecycle and can be hooked again by dependent plugins.
2017-03-03 15:05:09 +01:00
Philipp Muens
bfb67aadde Minor typo fixes / cleanup 2017-03-01 09:17:10 +01:00
Philipp Muens
c7414211fb Merge branch 'master' into allow-self-reference 2017-03-01 09:07:31 +01:00
Eslam A. Hefnawy
fb6b94d088 releasing v1.8 2017-03-01 03:25:28 +08:00
Nicholas Rakoto
bc9917cffe Add test for plugins loading relatively to the working directory 2017-02-25 00:19:44 +01:00
Nicholas Rakoto
00bd68cef2 Fix node_modules (serverless plugins) lookup
This reset the `module.paths` relatively to the current working directory
`process.cwd()`. So the array of paths used to resolve packages is relative
to where the `serverless` CLI is run.
2017-02-25 00:19:44 +01:00
Eslam λ Hefnawy
74ceec541b Merge pull request #3186 from dannycohn/Issue2997
fix #2997
2017-02-23 20:38:53 +07:00
Andrey Tserkus
09ab0468c0 Improved tests for logBreakingChange() function:
- fixed the tests when `SLS_IGNORE_WARNING` is set in the shell environment
- refactored the tests to clearly expose the tested input combinations (+ added the missing combination - to have a formally complete verification)
- added the `SLS_IGNORE_WARNING=*` setting to Travis builds, so that their output doesn't contain unnecessary noise about upcoming changes
2017-02-16 23:18:56 -08:00
Eslam A. Hefnawy
fe2cf87474 updated test 2017-02-14 21:06:01 +07:00
Eslam A. Hefnawy
ba7bb7e0de releasing v1.7 2017-02-14 20:53:41 +07:00
Eslam λ Hefnawy
cc94945f8e Merge pull request #3067 from vladgolubev/fix-average-functions-duration
Fix average functions duration calculation in metrics output
2017-02-14 20:11:42 +07:00
Nikos Katsikanis
09ccc63b64 Remove unneeded code 2017-02-14 10:17:45 +00:00
Erik Erikson
93c7afb3f5 Resolve PR Comments
1. Improve wording of documentation.  Note the concrete object that will be written in its entirety
2. Expand documentation.  Note a potential security risk for secrets
3. Move, without changes, the `warnIfNotFound` method because it was putting space between `getValueFromSource` and the various source type specific functions it uses
4. Implement unit tests for `warnIfNotFound`
5. Implement unit tests for `logWarning`
2017-02-10 18:31:02 -08:00
Philipp Muens
7044d567df Refactor for more convenience and add tests 2017-02-09 14:40:08 +01:00
Philipp Muens
69d872604c Add minor aesthetic improvements 2017-02-09 11:23:13 +01:00
Eslam A. Hefnawy
4ea752e05e added opt-out message 2017-02-09 17:12:15 +07:00
Eslam A. Hefnawy
2069ac5352 logging up coming breaking changes 2017-02-09 17:03:26 +07:00
Erik Erikson
7376fc0dff Merge branch 'master' into allow-self-reference
# Conflicts:
#	lib/classes/Error.js
2017-02-08 15:51:57 -08:00
Erik Erikson
079d964908 Add Warning Messages for Unresolvable Variables
1. define new `logWarning` method in Error class and consolidate message formatting for consistency.
2. use new `logWarning` to inform users if a variable cannot be resolved.
2017-02-08 15:40:31 -08:00
Erik Erikson
b936492af1 Allow for Top Level References & Commit Comments
1. Newly allow `${opt:}` and `${env:}` as a valid reference to the root of the option and environment settings hive, respectively
2. Write a test ensuring the above
3. Document the new capability
4. Eliminate a silly through-${self:} use example
5. Allow for the use of populateProperty in a not-in-place manner
6. Allow for the valid (albeit odd) valueToPopulate[''] case
2017-02-08 14:05:36 -08:00
Erik Erikson
230f37f4a4 Allow for Self-Reference
1. Newly allow '${self:}' as a valid reference to the current serverless.yml's root
  a. This allows for a more clean manner of passing names and identifiers around between projects.  Particularly, this facilitates exporting values from projects so they can be used in other projects via Fn::ImportValue.
2. Write a test ensuring the above
3. Document the new capability

Example usage: https://github.com/Nordstrom/hello-retail/pull/26/files
2017-02-07 19:19:30 -08:00
Vlad Golubev
9a8a9ddff4 Add missing unit tests for #getAllFunctionsNames 2017-02-08 00:03:10 +02:00
Vlad Golubev
12ba45421c Merge branch 'master' into fix-average-functions-duration 2017-02-07 23:42:25 +02:00
Vlad Golubev
e8bf95997e Merge branch 'master' into fix-average-functions-duration 2017-02-07 23:41:50 +02:00
Danny Cohn
7bbf9ce6d0 fix #2997 2017-02-05 00:11:20 -06:00
Andrey Tserkus
634f115118 fix typo in CLI test: construtor -> constructor 2017-01-31 01:50:17 -08:00
Andrey Tserkus
ffd6152de0 cover Error with tests; rename SError export to ServerlessError 2017-01-31 01:50:07 -08:00
Philipp Muens
b32803a8ff Fix wrong provider value assigning 2017-01-30 13:33:15 +01:00
Philipp Muens
54fbaadede Remove defaults service property 2017-01-30 11:03:40 +01:00
Philipp Muens
a30984d908 Fix broken unit test after merging #2434 2017-01-25 09:12:28 +01:00
Eslam λ Hefnawy
1cb298d592 Merge pull request #2434 from fruffin/fix-2418
[Fix #2418] Allow function event definitions to be variables
2017-01-24 20:15:34 +07:00
Philipp Muens
791880911a Remove unnecessary assertions 2017-01-10 08:57:43 -08:00
Philipp Muens
dc8fe5c22f Remove unnecessary getRootPath method 2017-01-10 08:16:17 -08:00
Philipp Muens
2d2ba4521d Update Docker detection to be cgroup based
This ensures a more stable detection strategy since .dockerenv might be not around for the long term.
2017-01-09 11:15:12 -08:00
Philipp Muens
ce8bbc4885 Add Docker detection 2017-01-08 14:19:25 +01:00
Vlad Golubev
37f4545139 Add getAllFunctionsNames to Service class 2017-01-06 18:59:36 +02:00
Philipp Muens
daa223a2fc Add npm scripts for slStats 2016-12-23 14:51:56 +01:00
Philipp Muens
092487ab10 Increase test coverage for CLI class 2016-12-22 14:57:34 +01:00
Eslam λ Hefnawy
3ab58d4643 Merge pull request #2891 from johncmckim/issue-2890
Temporarily remove provider.variableSyntax during variable population
2016-12-08 21:31:08 +07:00
Philipp Muens
b6683d9440 Merge pull request #2842 from dougmoscrop/array_resources
add Support for resources as an array
2016-12-08 13:28:51 +01:00