Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chiefy/metalsmith-push
push / publish your metalsmith-generated files somewhere else
https://github.com/chiefy/metalsmith-push
metalsmith nodejs s3 templating
Last synced: 3 days ago
JSON representation
push / publish your metalsmith-generated files somewhere else
- Host: GitHub
- URL: https://github.com/chiefy/metalsmith-push
- Owner: chiefy
- License: mit
- Created: 2015-12-18T19:48:28.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-22T20:06:22.000Z (about 9 years ago)
- Last Synced: 2024-12-15T12:17:25.738Z (about 1 month ago)
- Topics: metalsmith, nodejs, s3, templating
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# metalsmith-push
push / publish your metalsmith-generated files somewhere else## Installation
```bash
$ npm install --save metalsmith-push
```## Providers
Supported providers:
* s3## Config
### s3
```
s3 : {
bucket: 'bucket-name',
awsKey: 'AWS access key', // or use AWS_ACCESS_KEY_ID env var
awsSecret: 'AWS secret token' // or use AWS_SECRET_ACCESS_KEY env var
}
```## Example
```
var Metalsmith = require('metalsmith');
var metalsmithPush = require('metalsmith-push');var s3conf = {
bucket: 'my-bucket',
awsKey: 'DFJO90WFEFWEF(WE)(ELJKKJEEEJENNNAMLP',
awsSecret: 'ZDFW$lFDD(WlP{WDDELJFMZLLOPWDDDWDF'
};Metalsmith(__dirname)
.use(metalsmithPush({
provider: 's3',
s3: s3conf
}))
.build(function cb(err) {
if(err) {
console.err(err);
}
});```
## Tests
```bash
$ npm test
```