Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@remix-run/dev
Advanced tools
@remix-run/dev is a development tool for building web applications using the Remix framework. It provides a set of utilities and commands to streamline the development process, including building, watching, and serving your application.
Build
The build feature compiles the client and server entry points into a production-ready build. This is useful for preparing your application for deployment.
const { build } = require('@remix-run/dev');
build({
entryClientFile: 'src/entry.client.tsx',
entryServerFile: 'src/entry.server.tsx',
outputDir: 'build',
publicPath: '/build/',
}).then(() => {
console.log('Build completed!');
}).catch((error) => {
console.error('Build failed:', error);
});
Watch
The watch feature monitors your source files for changes and automatically rebuilds the application. This is useful for development as it provides instant feedback on code changes.
const { watch } = require('@remix-run/dev');
watch({
entryClientFile: 'src/entry.client.tsx',
entryServerFile: 'src/entry.server.tsx',
outputDir: 'build',
publicPath: '/build/',
}).then(() => {
console.log('Watching for changes...');
}).catch((error) => {
console.error('Watch failed:', error);
});
Serve
The serve feature starts a local development server to serve your built application. This is useful for testing your application in a local environment.
const { serve } = require('@remix-run/dev');
serve({
buildDir: 'build',
port: 3000,
}).then(() => {
console.log('Server is running on http://localhost:3000');
}).catch((error) => {
console.error('Server failed to start:', error);
});
Webpack is a popular module bundler for JavaScript applications. It offers similar functionalities to @remix-run/dev, such as building, watching, and serving applications. However, Webpack is more general-purpose and can be used with various frameworks and libraries.
Parcel is a web application bundler that offers zero-configuration setup. It provides similar features to @remix-run/dev, including building, watching, and serving applications. Parcel is known for its ease of use and fast performance.
Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects. It offers similar functionalities to @remix-run/dev, such as building, watching, and serving applications. Vite is optimized for speed and efficiency, making it a strong alternative.
Remix is a web framework that helps you build better websites with React.
To get started, open a new shell and run:
npx create-remix@latest
Then follow the prompts you see in your terminal.
For more information about Remix, visit remix.run!
FAQs
Dev tools and CLI for Remix
We found that @remix-run/dev demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.