![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@architect/sandbox
Advanced tools
Architect dev server: run full Architect projects locally & offline
@architect/sandbox
Architect dev server: run full Architect projects locally & offline in a sandbox
npm i @architect/sandbox
npx sandbox
sandbox.cli({ver}, callback)
Invokes sandbox.start()
to start a sandbox instance, passing the parameter object in. Then sets up a filesystem watcher for changes to:
src/shared/, src/views/
, etc.), in which case it will re-hydrate all functions with the new files, andhttp()
.Prints the specified ver
on init, or falls back to the version string defined in this project's package.json
.
sandbox.db.start(callback)
Starts a singleton local in-memory DynamoDB server, automatically creating any tables or indexes defined in the project manifest's @tables
pragma. Also creates a local session table.
Returns an object with a close([callback])
method that gracefully shuts the server down.
Invokes callback
once the DB is up and listening.
sandbox.events.start(callback)
If Architect project manifest defines @queues
or @events
, sets up interprocess communication between your events and queues via a tiny web server.
Returns an object with a close([callback])
method that gracefully shuts the server down.
Invokes callback
once the server is up and listening.
sandbox.http.start(callback)
If Architect project manifest defines defines @http
or [@websocket
][websocket] routes, starts the necessary servers and sets up routes as defined in the project manifest.
Invokes callback
once the server is up and listening.
sandbox.http.close([callback])
Closes any servers started via sandbox.http.start()
.
sandbox.start({port, options, quiet}, callback)
Initializes the sandbox; first checks that ports are available to consume, prints a banner, loading basic environment variables and necessary AWS credentials, and sets up any local DBs via sandbox.db.start()
, events or queues via sandbox.events.start()
, HTTP handlers via sandbox.http.start()
.
Invokes callback
once everything is ready, passing null
as the first parameter and sandbox.end
as the second parameter.
Return a promise
if callback
is falsy.
sandbox.end([callback])
Shuts down the sandbox, closing down all running servers and services. Returns a promise
if callback
is falsy.
let sandbox = require('@architect/sandbox')
[1.13.3] 2020-09-14
.arc-config
FAQs
Architect dev server: run full Architect projects locally & offline
The npm package @architect/sandbox receives a total of 3,139 weekly downloads. As such, @architect/sandbox popularity was classified as popular.
We found that @architect/sandbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.