From 89bd0411252c10621b11bb9b21ff67a407fcba5a Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Thu, 28 Jun 2018 10:36:55 -0400 Subject: [PATCH] first commit --- .gitignore | 1 + index.js | 7 +++++++ package-lock.json | 13 +++++++++++++ package.json | 14 ++++++++++++++ 4 files changed, 35 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..c2658d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/index.js b/index.js new file mode 100644 index 0000000..d33708b --- /dev/null +++ b/index.js @@ -0,0 +1,7 @@ +const Haml = require('haml'); + +module.exports = function(embark) { + embark.registerPipeline((embark.pluginConfig.files || ['**/*.haml']), function (opts) { + return Haml.render(opts.source); + }); +}; diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..6f1e3f1 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "embark-haml", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "haml": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/haml/-/haml-0.4.3.tgz", + "integrity": "sha1-90BTGPPC7dGXpIsbjysvE+C7U3g=" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..bfa3c3d --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "embark-haml", + "version": "1.0.0", + "description": "Embark plugin to support haml templates", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "Iuri Matias ", + "license": "ISC", + "dependencies": { + "haml": "^0.4.3" + } +}