add functions directory to provided constants
See original GitHub issuein https://github.com/netlify/build/blob/4d6202b0a141fdcd0d98335dc64d165c51bac0b4/packages/build/src/plugins/child/constants.js we provide cache dir build dir and config path but not functions dir. we should provide functions dir.
pseudocode i lifted from the functions plugin
const { build } = config
if (!build || !build.publish) {
throw new Error('No build settings')
}
const functionsDir = build.functions
if (!functionsDir) {
console.log('No functions directory found')
return
}
const buildDir = resolve(build.publish)
const buildDirFunctions = resolve(buildDir, functionsDir)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Create a list of functions to be executed from constant file in ...
I have list of functions to be executed based on the value of a variable, age. These functions correspond to a number of...
Read more >Best method to define constants used by several functions
I am implementing a model in MATLAB that relies on several functions. All of these functions are dependent on the same set of...
Read more >Manage functions | Cloud Functions for Firebase - Google
By default, the Firebase CLI looks in the functions/ folder for the source code. If you prefer, you can organize functions in codebases...
Read more >Python Constants: Improve Your Code's Maintainability
Using named constants to provide default argument values to functions, methods, and classes is another common practice in Python.
Read more >Predefined constants - Manual - PHP
As such, the constant has lost its *magic*, and would be rather useless unless you assure yourself to have all of your includes...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
destination i guess
but also source should build in the default value of
functions
for me so that i dont have to remember tbhDone at #429.