forked from Meteor-Community-Packages/meteor-scss
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.js
More file actions
47 lines (40 loc) · 1.25 KB
/
package.js
File metadata and controls
47 lines (40 loc) · 1.25 KB
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
Package.describe({
summary: 'Sass and SCSS support for Meteor. Supports M1 CPUs.',
version: '1.1.5',
git: 'https://github.com/leonardoventurini/meteor-scss.git',
name: 'leonardoventurini:scss',
})
Package.registerBuildPlugin({
name: 'compileScssBatch',
use: ['caching-compiler@1.2.2||2.0.0-rc300.1', 'ecmascript@0.15.1||0.16.9-rc300.1'],
sources: ['plugin/compile-scss.js'],
npmDependencies: {
sass: '1.77.2',
},
})
Package.onUse(function (api) {
api.versionsFrom(['2.3', '3.0-rc.1'])
api.use('isobuild:compiler-plugin@1.0.0')
})
Package.onTest(function (api) {
api.use(['ecmascript', 'leonardoventurini:scss', 'meteortesting:mocha@3.0.3-beta300.0'])
// 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 })
// Test for includePaths
api.addFiles([
'test/include-paths/include-paths.scss',
'test/include-paths/modules/module/_module.scss',
])
api.mainModule('tests.js', 'client')
})