Comments (1)
Quick brainstorm of options:
- Allow the runtime to safely serialise functions. OR some functions. You should be able to decompile a function down to its source code, right? How does that work and can we exploit it? Then we can write functions to state and pass them downstream. This is a bit of a fiddly UX though because if you return state downstream, you could lose the functions entirely. Also I think writing logic to a state object feels like an antipattern
- That means we have to import the custom functions into the job.This might make the compiler's life harder because it has to distinguish adaptor functions from user functions (and what if there's a conflict?)
- One solution is to use a convention. If there's a file called utils.js - or perhaps a path to a utils file is on the workflow object (yes I like this), we can add
import * as util from './utils'
into each job. Now the exports from each job are available on a utils object. So you can doutils.convertToLocalCurrency
. I quite like this: it's achievable at low cost and adds a lot of utility. We need the right word for utils. Maybe the workflow can map it to whatever variable you like.
from kit.
Related Issues (20)
- Ensure prettier is automatically set up for new developers
- Rethink CircleCI workflow triggers
- Logger: support console.table
- Update lightning plan options to use snake case keys
- CLI: apollo command
- CLI: add better validation on workflows HOT 7
- Lazy state fails on function calls HOT 1
- Check that worker timeouts are actually working as planned HOT 1
- Auto-deploy worker to demo and staging
- Worker: do something better when the JWT expires
- Worker: better error messages on credentials HOT 1
- Runtime: support multiple inputs
- worker: if a module fails to load, that's a crash
- cli: make apollo user-friendly
- cli: unit tests for apollo command
- Update prettier to 3.x
- lazy state: doesn't work with ! expressionbs HOT 1
- CLI: add a `schema` command which prints configuration schema
- CLI: Config issues with pull HOT 1
- CLI Deploy: bad error message if project yaml has a workflow not in state json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kit.