Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

wrap node-sass and build binaries separately fixes #23 #26

Merged
merged 1 commit into from
Jun 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions emails.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ Mailer =

# ## Deps
#
# Use `juice` for inlining CSS into the templates.
juice = Npm.require 'juice'
Utils = share.MailerUtils

# ## Template helpers
Expand Down Expand Up @@ -349,16 +347,16 @@ MailerClass = (options) ->
# Typically `/emails/preview/myEmailTemplate`.
# Do some formatting. The `path` should be the prefix, followed by
# the type (`preview` or `send`). So it could look like
#
#
# /emails/preview/sampleTemplate/:param
#
#
# Also capitalize the first character in the template name for
# the name of the route, so it will look like `previewSample` for a
# the name of the route, so it will look like `previewSample` for a
# template named `sample`.
path = "#{settings.routePrefix}/#{type}" + template.route.path
name = Utils.capitalizeFirstChar(template.name)
routeName = "#{type}#{name}"

Utils.Logger.info "Add route: [#{routeName}] at path /" + path, TAG

Router.route routeName,
Expand Down
7 changes: 2 additions & 5 deletions package.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ Package.describe({
git: 'https://github.com/lookback/meteor-emails.git'
});

Npm.depends({
'node-sass': '3.2.0',
'juice': '1.0.0'
});

Package.onUse(function(api) {

api.versionsFrom('1.0.4');
Expand All @@ -21,6 +16,8 @@ Package.onUse(function(api) {
'underscore',
'coffeescript',
'email',
'sacha:juice',
'chrisbutler:node-sass',
'iron:[email protected]',
'meteorhacks:[email protected]'
], where);
Expand Down
1 change: 0 additions & 1 deletion utils.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

fs = Npm.require 'fs'
path = Npm.require 'path'
sass = Npm.require 'node-sass'

# This package assumes that assets (templates, SCSS, CSS ..) are
# stored in the `private` directory. Thanks to that, Meteor won't
Expand Down