Eslam A. Hefnawy
ee72cee853
add all events
2018-06-20 12:33:54 +03:00
Eslam A. Hefnawy
396febb306
publish, archive, access keys and login updated
2018-06-15 16:10:52 +03:00
Doug Moscrop
8bde1b4902
Support arrays in function definition too
2018-04-04 20:03:56 -04:00
Erik Erikson
91a10940eb
Add further comments noting code entanglement
2018-02-23 10:09:18 -08:00
Erik Erikson
dc3a4aa6af
Fix print, clean pre-population, fix cyclic bug
...
Fix `print`
The print command is highly linked to the `Variables` and `Service` codebases, keep those in sync and leave reminders about the link. Made these explicit and separately implemented to avoid complexity.
Additionally, the print command re-populates an object with the *very similar* content as the previously pre-populated service (just not augmented as just mentioned). This can lead to cross contamination between the two. As such, all caches must be cleared per unique invocation of service/object/property population.
Add tests for some expected but previously unverified behaviors.
Clean pre-population
The previous implementation worked okay but was unnecessary and would have been a maintenance problem. Instead, just knock out the population of variables depending on those config dependent services and use the standard means of resolution.
Fix cyclic bug (resulting from running print against a self-referencing serverless.yml)
The caching of values could lead to a cyclic object remaining in the caches for variable population. This causes crashes and pain. Solved by the cache cleaning logic.
2018-02-22 16:30:04 -08:00
Pavel Vlasov
d05e45668e
validate serverless.js to export plain object + address feedback
2017-12-20 08:50:10 +11:00
Pavel Vlasov
ea7c6620af
fix eslint
2017-12-19 20:35:07 +11:00
Pavel Vlasov
bca4da55b3
add support for serverless.js
2017-12-19 20:14:39 +11:00
Toby Hede
33431cb45a
Allow double-quoted and single-quoted variables
...
Empty string is now valid
2017-08-20 11:05:15 +10:00
Toby Hede
2b3181c362
Handle both single and double quoted strings
2017-08-18 09:13:01 +10:00
Toby Hede
a1c8a37b9a
Allow use of string as default values in variables
2017-08-18 09:07:29 +10:00
Philipp Muens
5d1bbd5999
Remove provider name validation
2017-07-17 14:33:33 +02:00
Filipe Azevedo
aab492f079
handle absolute paths with ~ in file()
2017-07-03 18:19:23 +01:00
Philipp Muens
34595e1f6d
Add opt-out config for dev dependency exclusion
2017-06-30 09:25:59 +02:00
Philipp Muens
9c19d7a773
Remove deployment bucket reference from Service class
2017-06-16 08:43:25 +01:00
Philipp Muens
b912ad91bd
Minor code cleanup
2017-06-16 08:36:19 +01:00
Max Redmond
d045201315
adding test for setDeploymentBucketname()
...
Merge branch 'deployment'
2017-06-16 08:17:24 +01:00
Max Redmond
d3a5794c2e
added setDeploymentBucketName function
2017-06-16 08:12:40 +01:00
Max Redmond
abef261722
update serverside encryption options so that they are configured in the deploymentBucket section
2017-06-16 08:12:23 +01:00
Frank Schmid
a227e5b3d2
Added support for serverless.json. Improved error messages with filename.
2017-05-18 21:26:44 +02:00
Doug Moscrop
4dbd94e465
fix resources as an array to support variables
2017-05-16 15:41:00 -04:00
Frank Schmid
4da99861fa
Added unit tests
2017-04-26 16:54:50 +02:00
Frank Schmid
0ebee72f65
Allow service object
2017-04-26 15:18:09 +02:00
Rafał Wiliński
c6d5710cdc
Replace Array.filter with Array.find
2017-04-15 10:59:31 +02:00
Rafał Wiliński
bc15494c00
Fix linter errors
2017-04-15 10:55:34 +02:00
Rafał Wiliński
59bd52d520
Merge remote-tracking branch 'serverless/master'
2017-04-15 00:05:55 +02:00
Rafał Wiliński
77ed53218b
Change getAllEventsInFunction implementation to return array
2017-04-15 00:05:21 +02:00
Rafał Wiliński
7bca42f680
Change getEventInFunction implementation to return array element
2017-04-15 00:05:05 +02:00
Eslam A. Hefnawy
e38f22585f
seperated packaging and deployment
2017-04-06 18:28:59 +07:00
Eslam λ Hefnawy
74ceec541b
Merge pull request #3186 from dannycohn/Issue2997
...
fix #2997
2017-02-23 20:38:53 +07:00
Vlad Golubev
12ba45421c
Merge branch 'master' into fix-average-functions-duration
2017-02-07 23:42:25 +02:00
Danny Cohn
7bbf9ce6d0
fix #2997
2017-02-05 00:11:20 -06: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
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
Vlad Golubev
37f4545139
Add getAllFunctionsNames to Service class
2017-01-06 18:59:36 +02: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
James Thomas
da3356b1e2
Rename provider name from 'ibm' to 'openwhisk'.
2016-12-05 15:46:10 +00:00
Doug Moscrop
e4395875c1
add Support for resources as an array
2016-12-01 19:31:36 -05:00
Philipp Muens
74a3f004d7
Bring back include configuration for an easier packaging control
2016-11-14 10:26:44 +01:00
Fabien Ruffin
e7ef6fdbb9
Merge remote-tracking branch 'upstream/master' into fix-2418
2016-11-03 08:04:15 +11:00
Nik Graf
fca214c184
add version check tests and refactoring
2016-11-01 10:11:30 +01:00
Nik Graf
f47b9025b6
add semver check
2016-11-01 09:48:45 +01:00
Nik Graf
e8248b5e8a
Merge branch 'master' into version-lock
2016-11-01 08:24:31 +01:00
John McKim
fd1545d89d
Allow services with no functions #2267
2016-10-25 06:15:23 +10:00
Fabien Ruffin
3dc779413f
Removed unnecessary comment
2016-10-23 16:30:01 +11:00
Fabien Ruffin
73ef6587aa
Refactored service validation to happen after variable population
2016-10-23 13:57:10 +11:00
Nik Graf
9ec317aa3a
implement version check
2016-10-21 17:35:45 +02:00
Fabien Ruffin
17afedb566
Allow function event definitions to be variables
2016-10-18 22:03:07 +11:00