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

Commit 39a6520

Browse files
committed
wrap node-sass and build binaries separately fixes #23
1 parent 6358fa8 commit 39a6520

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

Diff for: emails.coffee

+4-6
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ Mailer =
3333

3434
# ## Deps
3535
#
36-
# Use `juice` for inlining CSS into the templates.
37-
juice = Npm.require 'juice'
3836
Utils = share.MailerUtils
3937

4038
# ## Template helpers
@@ -349,16 +347,16 @@ MailerClass = (options) ->
349347
# Typically `/emails/preview/myEmailTemplate`.
350348
# Do some formatting. The `path` should be the prefix, followed by
351349
# the type (`preview` or `send`). So it could look like
352-
#
350+
#
353351
# /emails/preview/sampleTemplate/:param
354-
#
352+
#
355353
# Also capitalize the first character in the template name for
356-
# the name of the route, so it will look like `previewSample` for a
354+
# the name of the route, so it will look like `previewSample` for a
357355
# template named `sample`.
358356
path = "#{settings.routePrefix}/#{type}" + template.route.path
359357
name = Utils.capitalizeFirstChar(template.name)
360358
routeName = "#{type}#{name}"
361-
359+
362360
Utils.Logger.info "Add route: [#{routeName}] at path /" + path, TAG
363361

364362
Router.route routeName,

Diff for: package.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ Package.describe({
77
git: 'https://github.com/lookback/meteor-emails.git'
88
});
99

10-
Npm.depends({
11-
'node-sass': '3.2.0',
12-
'juice': '1.0.0'
13-
});
14-
1510
Package.onUse(function(api) {
1611

1712
api.versionsFrom('1.0.4');
@@ -21,6 +16,8 @@ Package.onUse(function(api) {
2116
'underscore',
2217
'coffeescript',
2318
'email',
19+
'sacha:juice',
20+
'chrisbutler:node-sass',
2421
2522
'meteorhacks:[email protected]'
2623
], where);

Diff for: utils.coffee

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
fs = Npm.require 'fs'
44
path = Npm.require 'path'
5-
sass = Npm.require 'node-sass'
65

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

0 commit comments

Comments
 (0)