Gathering detailed insights and metrics for sails-generate-archive
Gathering detailed insights and metrics for sails-generate-archive
Gathering detailed insights and metrics for sails-generate-archive
Gathering detailed insights and metrics for sails-generate-archive
npm install sails-generate-archive
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
8 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Oct 28, 2017
Latest Version
0.0.5
Package Id
sails-generate-archive@0.0.5
Size
7.64 kB
NPM Version
2.14.4
Node Version
4.1.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
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)
1$ npm install -g sails-generate-archive
or for one project
1$ npm install sails-generate-archive
1$ sails generate archive
You can add file and folder if you want like this :
1$ 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.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More