![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
a simaple deploy tools inspired by mina
npm install dy -g
create your own dy config file
dy-init
read document and edit this config file
dy-init
to run your deploy commands
/var/www/test.com/ # The deploy_to path
|- releases/ # Holds releases, one subdir per release
| |- 1/
| |- 2/
| |- 3/
| '- ...
|- shared/ # Holds files shared between releases
| |- logs/ # Log files are usually stored here
| `- ...
'- current/ # A symlink to the current release in releases/
set('appname', 'xxx')
set('username', 'web')
set('host', 'localhost')
set('port', 22)
set('deploy_folder', '/user/local/good/to/deploy')
task('setup', function(){
queue('cd ${deploy_folder}')
queue('pwd .')
})
//another task
task('deploy', function(){
queue('pwd .')
queue('pwd .')
})
task('stop', function(){
queue('killall node')
})
//subtask inside
task('restart',function(){
invoke('stop')
invoke('deploy')
})
set('deploy_to', '/var/www/test.me')
//default settings
set('releases_path', 'releases')
set('shared_path', 'shared')
set('current_path', 'current')
set('lock_file', 'deploy.lock')
set('keep_releases', 5)
dy # run dy.js deploy task
dy sometask # run dy.js 'sometask' task
dy -f xx.js deploy # run xx.js deploy task
dy -f xx.js -v deploy # run xx.js deploy task and show detail
-v
/ --verbose
: show detail, default is off.-f FILE
/ --file
: use custom dy.js configuration.-S
/ --simulate
: output build scripts. TODOdy tasks
: show all aviable tasks
dy NODE_ENV=production
: set NODE_ENV
to production
FAQs
another deploy tool
The npm package dy receives a total of 1 weekly downloads. As such, dy popularity was classified as not popular.
We found that dy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.