From 2c096e2fb3b0b674109c8d8794a768090258ae5f Mon Sep 17 00:00:00 2001 From: Luciano Franca Date: Mon, 15 Oct 2018 12:22:35 -0300 Subject: [PATCH] core: basic setup --- .gitignore | 1 + index.js | 4 ++++ package-lock.json | 21 +++++++++++++++++++++ package.json | 16 ++++++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 .gitignore create mode 100644 index.js create mode 100644 package-lock.json create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..8a7d7f1 --- /dev/null +++ b/index.js @@ -0,0 +1,4 @@ +const momentTimezone = require('moment-timezone') +momentTimezone.tz.setDefault('America/Sao_Paulo') + +module.exports = momentTimezone diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..d480494 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,21 @@ +{ + "name": "moment-sao-paulo", + "version": "0.0.1", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "moment": { + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", + "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=" + }, + "moment-timezone": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.21.tgz", + "integrity": "sha512-j96bAh4otsgj3lKydm3K7kdtA3iKf2m6MY2iSYCzCm5a1zmHo1g+aK3068dDEeocLZQIS9kU8bsdQHLqEvgW0A==", + "requires": { + "moment": ">= 2.9.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..bbcbb3a --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "name": "moment-sao-paulo", + "version": "0.0.1", + "description": "A lib to proxy moment as America/Sao_Paulo", + "main": "index.js", + "repository": { + "type": "git", + "url": "git@github.com:pagarme/moment-sao-paulo.git" + }, + "author": "Pagar.me Pagamentos S/A <@pagarme>", + "license": "ISC", + "dependencies": { + "moment": "^2.22.2", + "moment-timezone": "^0.5.21" + } +}