
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
sails-generate-archive
Advanced tools
A `archive` generator for use with the Sails command-line interface. This generate create a zip file (named "archiveX.X.X.zip") under a .archives folder who contains every files for a production server.
An archive
generator for use with the Sails command-line interface.
This generate create a zip file (named "archiveX.X.X.zip") under a .archives folder who contains every files for a production server.
The generator build all your assets files (js, css...) by lifting sails in production mode and then include all files in .tmp/public in zip file.
The generator also include all this file :
["/api", "/config", "/tasks", "/views", "/Gruntfile.js", "/app.js", "/package.json", "/.sailsrc"]
Like this all you have to do with the zip file is unzip it, make an npm install and then lift sails in production mode.
Sails will start quickly cause they only copy /assets folder in .tmp/public and it doesn't rebuild them.
It's simple, first unzip your archive :
unzip archive0.0.1.zip -d myProject
cd myProject
Install dependencies :
npm install
Run your project in production :
sails lift --prod
Easy right ? :)
If you use a server with low resources or if you deploy you project on a board like Raspberry PI. Your project will start quickly because grunt tasks don't rebuild assets.
Globally to use on every project you have (need to install sails globally too)
$ npm install -g sails-generate-archive
or for one project
$ npm install sails-generate-archive
$ sails generate archive
You can add file and folder if you want like this :
$ sails generate archive file1.js folder1 folder2
If you want to put other files in archives just add a /config/archive.js file like this :
module.exports.archive = {
filesToArchive : ["/file1.js", "/testFolder"],
removeFolder : true // Default to true, delete the tmp folder after ziping. You can force to false if you want to check or modify it after.
};
To get started quickly and see this generator in action, ...
Also see CONTRIBUTING.md
for more information on overriding/enhancing existing generators.
See FAQ.md
.
MIT © 2015 balderdashy & contributors
As for Sails? It's free and open-source under the MIT License.
FAQs
A `archive` generator for use with the Sails command-line interface. This generate create a zip file (named "archiveX.X.X.zip") under a .archives folder who contains every files for a production server.
The npm package sails-generate-archive receives a total of 0 weekly downloads. As such, sails-generate-archive popularity was classified as not popular.
We found that sails-generate-archive 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.