Comments (3)
trade-executor-frontend
library depends on Node v16, as it is using one very handy v16 only function. Array.at(-1)
to get the last item of the array.
So might need to upgrade sooner than later, as I need to bring the library to the main site.
from frontend.
I think it would be a good idea to enforce some consistency – both across dev team members and between dev & prod.
We could add the following to package.json
"engines": {
"node": "^16.14.0"
},
and/or add an .nvmrc
file.
I think my preference would be to specify engines.node
but not commit .nvmrc
. We already have an .npmrc
file (note the p
not v
) with engine-strict=true
(default when initializing a SvelteKit app), so setting an appropriate engines.node
will cause npm install
to fail if you're not running a supported version.
Developers may choose to use different node
version managers (or just manually install/run a supported version), so setting .nvmrc
(or .node-version
) feels like a dev-specific preference. We can add .nvmrc
to .gitignore
and everyone can manage node
versions as they see fit (as long as they pass the engines
check).
OTOH, it can be beneficial to commit .nvmrc
if your prod build toolchain uses this to determine the node
version to run in prod (e.g., render, netlify, vercel, etc.). This is not the case for us afaik, so it feels unnecessary (and slightly prescriptive) to include it.
@miohtama, @servatj, @hieuh25, @allozaur – any opinions / thoughts on this?
from frontend.
For simplicity I usually do both specifying engines.node
and adding ,nvmrc
with same version in the repo. Yes it's a bit strict and limited but we will have consistency :D
from frontend.
Related Issues (20)
- Include expected minSharesQuantity in payment transaction
- Add decision cycle to strategy overview metrics
- Aave v2 support
- SvelteKit 2.x upgrade
- Ability to click from a live strategy's main page to the next strategy's main page
- Wrong hostname in backtesting download links
- Update sitemap.xml to include live strategies HOT 3
- Add ETH breakout to strategies and address parse errors
- Body scrolling disabled after navigating from simple -> advanced search
- Update position/trade UIs to support credit positions
- Update strategy tile chart data source
- filter by multiple blockchains in advanced search mode
- pagination missing on dex page
- Add live strategy TVL to strategies index
- Add strategy investment differentiators to open strategies section
- Update profitability colour indicator on strategy tile chart
- Display interest rate for credit positions
- Use tables for metrics on position details
- Pagination controls missing on mobile responsive datatables
- Improve GCS Core Web Vitals for mobile pages
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 frontend.