You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Investigate approaches to scripting our task functions.
We're currently replacing gulp tasks with vanilla functions, but we're still running these functions via wrapping Gulp tasks. This means we have several task files which export these new functions, but no scripting for actually collecting and running a set of those tasks together.
Some initial ideas include:
Making heavy use of npm scripts, but keeping them simple by abstracting them into external files
Having a large collection of "scripting" files that each run a set of tasks
Having one scripting controller file that takes an argument and runs the correct set of tasks
Should we differentiate between tasks that do one thing and tasks that run several subtasks?
Should we have lots of individual task scripting files that each execute a series of functions, or one file that can be passed an argument and decide which functions to run? Or something else?
There's a sheet comparing the tasks our npm scripts actually perform under the hood, and a deeper dive into the SCSS and JS compilation tasks because they're quite convoluted.
Some takeaways:
npm run heroku and npm start are very similar, except the heroku script doesn't clean the public folder, and doesn't watch file changes
build-release, publish-release and pre-release all run .sh scripts, so there is precedence for doing things that way (but that relies on devs being comfortable with bash scripts - most FE devs are more likely to be comfortable with JS?)
npm run build-release runs check-nvmrc 3 times, CSS compilation twice and JS compilation three times.
Stepping through our tasks to audit them is a pain of looking up nested tasks
What
Investigate approaches to scripting our task functions.
We're currently replacing gulp tasks with vanilla functions, but we're still running these functions via wrapping Gulp tasks. This means we have several task files which export these new functions, but no scripting for actually collecting and running a set of those tasks together.
Some initial ideas include:
npm
scripts, but keeping them simple by abstracting them into external filesWhy
We have made the decision to move away from Gulp and write our own build scripts.
Assumptions
npm
(ie, "standard" commands like:npm start
,npm test
, etc)Timebox
2 days
We should review progress after this period of time has elapsed, even if the spike has not been 'completed'
Who is working on this?
Spike lead:
Spike buddy:
Questions to answer
Done when
You may find it helpful to refer to our expected outcomes of spikes.
The text was updated successfully, but these errors were encountered: