Skip to content

Commit 3094e51

Browse files
committed
# Conflicts: # .gitignore # .vscode/launch.json # .vscode/settings.json
2 parents e9cc8e3 + cd99ec1 commit 3094e51

27 files changed

+6710
-74
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
node_modules
2-
coverage
31
.DS_Store
4-
npm*.log
2+
coverage
3+
dist
54
lib
5+
node_modules
6+
npm*.log
67
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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
node_js:
3+
- '4.2'
4+
before_script:
5+
- npm install -g gulp
6+
script: gulp
7+
deploy:
8+
skip_cleanup: true
9+
provider: npm
10+
email: odspnpm@microsoft.com
11+
api_key:
12+
secure: kRLxDGieYjdhcPPkJfoT9cNGOxKdr1yYeUVc4G9pxm7JYZERG/bGGIFUb4D+pH9lAlthNDK3jxruEdcFmcQUG4wtN22+PaoJimObjOQWiyzLO/S1qbeexjYQDammn8Lv3JyNoPx3oxR2bwir5lamLO6SyMmwV8JqcE3awRCrYg61FD82fUQftrPKcJogDx70c720Me9JnULP+aDXhHtRogwaG6Qyq3FxqzvQsDWrXmdM80y45SxMgbpE35BEhhwsNZbz51b5vhHghTZSXwIJmuyX9MGN6h3vaYVkuJmE1Vdm+/NVYBFeKpiKrY8m9gWYDNK5AuPKztnS3/2iLvyAPegYaY7QQw82XFYbh0BtQEPon8MWI5Ooozz1JvFegP/NEX7xIZBmKuFqj1WHIIMb+1IJxEbTlbaNnTOSmN0CzQ5QWxz77H9DzjCUNDxJcxo9jKi7rGh67F/doL8q/R+ZHhYzIj2XJ+PYDtR5vRhYhCk2a6/BnfOaEqDJmru948emfglkP/0RuylWIgTn4p+Q311/dbJVzqDH+VtlFiLs/7X7GS63oL39Td3iRfkQtjHy/7XElQ65u+5de9NqBmlkVJnopyOMR7BD8+0lMP2T66YJw/VO4W/o/7USEuh/HjBLNTj1HIS3CcFN3ujUCIyt3WDZdNy/EFPAo9cJTlu23Ak=
13+
on:
14+
tags: true
15+
repo: Microsoft/gulp-core-build-webpack

.vscode/launch.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

.vscode/tasks.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@microsoft/gulp-core-build-webpack
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: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# gulp-core-build-webpack [![npm version](https://badge.fury.io/js/%40microsoft%2Fgulp-core-build-webpack.svg)](https://badge.fury.io/js/%40microsoft%2Fgulp-core-build-webpack)
2+
3+
[![Build Status](https://travis-ci.org/Microsoft/gulp-core-build-webpack.svg?branch=master)](https://travis-ci.org/Microsoft/gulp-core-build-webpack) [![Dependencies](https://david-dm.org/Microsoft/gulp-core-build-webpack.svg)](https://david-dm.org/Microsoft/gulp-core-build-webpack)
4+
5+
# Description
6+
`gulp-core-build-webpack` is a plugin for gulp-core-build which introduces the ability to bundle various source files into a set of bundles, using webpack.
7+
8+
# Tasks
9+
## WebpackTask
10+
11+
### Description
12+
This task invokes webpack using a consumer-specified `webpack.config.js` on a package.
13+
14+
### Command Line Options
15+
If the `--initwebpack` flag is passed to the command line, this task will initialize a `webpack.config.js` which bundles `lib/index.js` into `dist/{packagename}.js as a UMD module.
16+
17+
### Config
18+
```typescript
19+
interface IWebpackConfig {
20+
configPath: string;
21+
config: Webpack.Configuration;
22+
suppressWarnings: string[];
23+
}
24+
```
25+
* **configPath** used to specify the local package relative path to a `webpack.config.js`
26+
* **config** used to specify a webpack config object. **configPath** takes precidence over this option if it is set and the file it refefences exists.
27+
* **suppressWarnings** used to specify regular expressions or regular expression strings that will prevent logging of a warning if that warning matches.
28+
29+
Usage:
30+
```typescript
31+
build.webpack.setConfig({
32+
configPath: "./webpack.config.js"
33+
})
34+
```

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)