Skip to content

Commit 4001f49

Browse files
committed
# Conflicts: # .gitignore # .travis.yml # .vscode/launch.json # .vscode/settings.json
2 parents e9cebba + 95347c3 commit 4001f49

File tree

25 files changed

+6566
-18
lines changed

25 files changed

+6566
-18
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ coverage
33
.DS_Store
44
npm*.log
55
lib
6+
temp
7+
dist

.npmignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.vscode
2+
src
3+
node_modules
4+
5+
.gitignore
6+
.gitattributes
7+
.editorconfig
8+
gulpfile.js
9+
lib/**/*.test.js
10+
lib/**/*.test.d.ts
11+
npm-shrinkwrap.json
12+
coverage

.pullapprove.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
approve_by_comment: true
2+
approve_regex: ^Approved
3+
reject_regex: ^Rejected
4+
reset_on_push: false
5+
reviewers:
6+
members:
7+
- dzearing
8+
- iclanton
9+
- nickpape-msft
10+
name: default
11+
required: 1

.travis.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +0,0 @@
1-
language: node_js
2-
node_js:
3-
- '4.2'
4-
before_install: if [[ `npm -v` != 3.10.8 ]]; then npm i -g npm@^3.10.8; fi
5-
before_script:
6-
- npm install -g gulp
7-
script: gulp
8-
deploy:
9-
skip_cleanup: true
10-
provider: npm
11-
email: odspnpm@microsoft.com
12-
api_key:
13-
secure: 0sCS748+bJVFBW60KE305ANz5FpDA3G6r7HnTxJO6Zsx8miRbQj6aDGKnqFa0Lf9h2sBYzCDxYM75ZL+ZoR7JN9lQS6UhqMPK+PhT6V0EH4wy1WXTzEtqFm9y3HgcsNyD8dj84JbzzadjQLFX0POXoA6LvGIhWglmcX40rZrcQu1/fITX5899DcanQtqUxU3BQnKIdyUg+vqXb9zc8iCF0JqyeeXBW8xIJkBrCGbgJrnIevnEo0P7Q2fJEM4T87CxtkztyySPEDhVCioBQB0LreRQa/hJUiuDzEPX/s9OIAqWYkVdVi/d9XC7B8rdjEQTLuU0wOOqk2v33q6OJRvWWSTcKXRaXQ4rnVTqYGP2G4LPa3ov+/e6Y2PRI+OCgV9/rDRP7U8EjiMmfex14WA+QHVW9hhkbv4gIOZ5A9T9cHIuzX8ne5jnv4g1rj7j9GgzcrHcxvPYyc/aUXzHD7G8//XYrE5PoW0Lj7kNdsIDjVcu+fKe0V9mHwtwjdtkZljDhIXKiAg9yLoEcYaQKbYh638ah7d0nrFCJzlOtj4AtXjfghuI9yYrbaJk2E+2c1rLGjrmmJEOQO+vLGfM3LFEEpcgvQPb7MBzA0UUbB3bg9ZsQZMY8kedHZV+UhWnuM40kN9Rg7UmS8oYS7YIxSdDEDUbHI1BIg3mgb5ZLVgXrg=
14-
on:
15-
tags: true
16-
repo: Microsoft/gulp-core-build

.vscode/settings.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
// Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the file.exclude setting.
1010
"files.exclude": {
1111
"**/.git": true,
12-
"**/.DS_Store": true
12+
"**/.DS_Store": true,
13+
"**/node_modules": true,
14+
"**/lib": true
1315
},
1416
// Configure glob patterns for excluding files and folders in searches. Inherits all glob patterns from the file.exclude setting.
1517
"search.exclude": {
@@ -18,4 +20,4 @@
1820
},
1921
// Controls after how many characters the editor will wrap to the next line. Setting this to 0 turns on viewport width wrapping
2022
"editor.wrappingColumn": 110
21-
}
23+
}

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@microsoft/gulp-core-build-sass
2+
3+
Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
MIT License
6+
7+
Permission is hereby granted, free of charge, to any person obtaining
8+
a copy of this software and associated documentation files (the
9+
"Software"), to deal in the Software without restriction, including
10+
without limitation the rights to use, copy, modify, merge, publish,
11+
distribute, sublicense, and/or sell copies of the Software, and to
12+
permit persons to whom the Software is furnished to do so, subject to
13+
the following conditions:
14+
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# gulp-core-build-sass [![npm version](https://badge.fury.io/js/%40microsoft%2Fgulp-core-build-sass.svg)](https://badge.fury.io/js/%40microsoft%2Fgulp-core-build-sass)
2+
3+
[![Build Status](https://travis-ci.org/Microsoft/gulp-core-build-sass.svg?branch=master)](https://travis-ci.org/Microsoft/gulp-core-build-sass) [![Dependencies](https://david-dm.org/Microsoft/gulp-core-build-sass.svg)](https://david-dm.org/Microsoft/gulp-core-build-sass)
4+
5+
`gulp-core-build-sass` is a plugin for `gulp-core-build` which introduces the ability to compile SASS files to CSS.
6+
7+
# Tasks
8+
## SassTask
9+
10+
### Description
11+
This task invokes `gulp-sass` to compile source SASS files into a CommonJS module which uses `load-themed-styles` to load styles onto the page. If the `libAmdFolder` is specified globally, this task will also output an AMD module. Various templates may be specified.
12+
13+
### Config
14+
```typescript
15+
interface ISassTaskConfig {
16+
sassMatch?: string[];
17+
commonModuleTemplate: string;
18+
amdModuleTemplate: string;
19+
}
20+
```
21+
* **
22+
23+
Usage (and defaults):
24+
```typescript
25+
sass.setConfig({
26+
sassMatch: [
27+
'src/**/*.scss'
28+
],
29+
commonModuleTemplate: "require('load-themed-styles').loadStyles(<%= content %>);",
30+
amdModuleTemplate: "define(['load-themed-styles'], function(loadStyles) { loadStyles.loadStyles(<%= content %>); });"
31+
});
32+
```

gulpfile.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
let build = require('@microsoft/node-library-build');
4+
5+
build.initialize(require('gulp'));

0 commit comments

Comments
 (0)