
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.
Node.js based tool for effective frontend development.
Includes stylus, browserify, es6, jade for now. Future builds will allow you to use your own modules.
All projet directories are configurable and you can disable express app as well in case you need only compilation and watchers (just do not forget to add livereload link manually if you need it).
Install the module globally: npm i -g frontizer
Create a folder for your new project and enter it.
Initialize your new project with frontizer init
than run it with frontizer start
.
Type frontizer
to see help.
Assets folder contains all statics and source files for your project. Compiled assets are placed inside assets/compiled directory by default.
All client JavaScript is precompiled by Babel with babel-preset-latest.
You can also use .vue
files which are processed by vueify
.
Views folder contains your templates. Each file here represents it's own route which is the same as a file name. The one exception is index.pug which represents a home page.
View based routing examples:
You can provide any data to your views by creating data files. They will be fetched in the same way as views. exports object fields will be variables in views.
Data shared with corresponding view also includes data from upper levels index files. For example, route /foo/bar will uses foo/bar view and tries to fetch and merge files:
Obviously, index.js file will be fetched on every route so you can use it to provide global data and defaults.
Any duplicated data field names will be overwritten by lower level data.
To create an API function or static JSON you can create an api folder in your project root. Any js file in this folder will be mapped to route /api/{filename without extension}.
If module.exports
is a function than it will be called with request and response objects as
arguments correspondingly.
If module.exports
is an object or array than it will be processed as a JSON response.
FAQs
Effective frontend development tool
The npm package frontizer receives a total of 3 weekly downloads. As such, frontizer popularity was classified as not popular.
We found that frontizer 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
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.