forked from Meteor-Community-Packages/meteor-scss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
58 lines (50 loc) · 1.56 KB
/
package.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Package.describe({
summary: 'Style with attitude. Sass and SCSS support for Meteor.js (with autoprefixer and sourcemaps).',
version: "3.4.1",
git: "https://github.com/marccantwell/meteor-scss.git",
name: "marccantwell:meteor-scss"
});
Package.registerBuildPlugin({
name: "compileScssBatch",
sources: [
'plugin/compile-scss.js'
],
npmDependencies: {
'node-sass': '3.4.1'
}
});
Package.onUse(function (api) {
api.versionsFrom("1.2.0.2");
api.use('isobuild:[email protected]');
});
Package.on_test(function (api) {
api.use(['test-helpers',
'tinytest']);
api.use(['marccantwell:meteor-scss']);
// Tests for .scss
api.addFiles([
'test/scss/_emptyimport.scss',
'test/scss/_not-included.scss',
'test/scss/_top.scss',
'test/scss/_top3.scss',
'test/scss/empty.scss',
'test/scss/dir/_in-dir.scss',
'test/scss/dir/_in-dir2.scss',
'test/scss/dir/root.scss',
'test/scss/dir/subdir/_in-subdir.scss']);
api.addFiles('test/scss/top2.scss', 'client', {isImport: true});
// Tests for .sass
//api.addFiles([
// 'test/sass/_emptyimport.sass',
// 'test/sass/_not-included.sass',
// 'test/sass/_top.sass',
// 'test/sass/_top3.sass',
// 'test/sass/empty.sass',
// 'test/sass/dir/_in-dir.sass',
// 'test/sass/dir/_in-dir2.sass',
// 'test/sass/dir/root.sass',
// 'test/sass/dir/subdir/_in-subdir.sass']);
//api.addFiles('test/sass/top2.sass', 'client', {isImport: true});
api.addFiles('tests.js', 'client');
});