CLI client for Finalizer Server. Prepares and downloads npm builds without stressing your site.
npm install finalizerCLI client for Finalizer Server. Prepares and downloads npm builds without stressing your site. This project is still under development. Things will break.
bash
npm install -g finalizer
`Configuration
Make sure that you have a finalizer.json file on the root of your project (the same location as the package.json) that specifies the url on which the build server can be accessed.
`json
{
"baseUrl": "http://finalizer.myurl.com"
}
`Creating a project
This command will create (or link) the current project to the build server. This should be done only once. Once the project is created it will trigger the first build on the server.
- Project name. The name used here will be stored on the server for later access.`bash
finalizer create
`Download latest build
This will download the latest npm dependencies from the build server. The project must exist already on the build server, created with the create command.
`bash
finalizer download
`This command will:
- Download the dependencies in a compressed
.tar file.
- Extract them and run npm rebuild to relink these dependencies.Build project
This command will trigger a new build on the build server. The project must exist already on the build server, created with the create command.
`bash
finalizer build
`
If the package.json has not changed since the last build, the build will not be created. This will prevent the creation of innecesary builds on the server.Initialize project
This command will create a basic finalizer.json file with default settings on the project directory.
`bash
finalizer init
`Check connection to build server
This will make a basic http request to the build server to make sure that a connection to it is correctly established.
`bash
finalizer check
`Development
After cloning your repo
`bash
git clone git@github.com:yourusername/finalizer.git && cd finalizer
`Install your dependencies with
npm
`bash
npm install
`Tests are written with
Mocha and expect.js, run the test suite with:
`bash
npm test
``