Skip to content

Commit

Permalink
chore: prepare 0.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
evilebottnawi committed Mar 28, 2018
1 parent 3aa93c4 commit 365b0d7
Show file tree
Hide file tree
Showing 11 changed files with 1,135 additions and 384 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ dist
!.gitkeep

# Fixtures
src/__tests__/build
src/__tests__/fixtures/build
src/__tests__/fixtures/css/fonts
src/__tests__/fixtures/css/webfont.css
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

This project adheres to [Semantic Versioning](http://semver.org).

## 0.2.0 - 2018-03-27

* Added: `bail` option for ignore errors.
* Refactor: use other generate strategy to avoid infinity loops.

## 0.1.0 - 2018-03-21

* Added: `webpack@4` support.
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

[![NPM version](https://img.shields.io/npm/v/webfont-webpack-plugin.svg)](https://www.npmjs.org/package/webfont-webpack-plugin)
[![Travis Build Status](https://img.shields.io/travis/itgalaxy/webfont-webpack-plugin/master.svg?label=build)](https://travis-ci.org/itgalaxy/webfont-webpack-plugin)
[![Build status](https://ci.appveyor.com/api/projects/status/355nglgpgweh2i8a/branch/master?svg=true)](https://ci.appveyor.com/project/evilebottnawi/webfont-webpack-plugin/branch/master)
[![dependencies Status](https://david-dm.org/itgalaxy/webfont-webpack-plugin/status.svg)](https://david-dm.org/itgalaxy/webfont-webpack-plugin)
[![devDependencies Status](https://david-dm.org/itgalaxy/webfont-webpack-plugin/dev-status.svg)](https://david-dm.org/itgalaxy/webfont-webpack-plugin?type=dev)
[![Greenkeeper badge](https://badges.greenkeeper.io/itgalaxy/webfont-webpack-plugin.svg)](https://greenkeeper.io)
Expand All @@ -17,11 +18,9 @@ npm install --save-dev webfont-webpack-plugin

## Usage

Example for `css`:
Example for `CSS` with directly `import` (will be works for `SCSS`/`Less`/Etc):

```css
@import "webfont.css";
```
**entry.js**

```js
import "webfont.css";
Expand Down Expand Up @@ -54,13 +53,15 @@ export default {
new WebfontPlugin({
files: path.resolve(__dirname, "../fixtures/svg-icons/**/*.svg"),
dest: path.resolve(__dirname, "../fixtures/css/fonts"),
destTemplate: path.resolve(__dirname, "../fixtures/css/webfont.css")
destTemplate: path.resolve(__dirname, "../fixtures/css")
})
]
};
```

For `SCSS`:
Example for `SCSS` with `import` inside `SCSS` file (will be works for `CSS`/`SCSS`/`Less`/Etc):

**any-file.scss**

```scss
@import "webfont.scss";
Expand All @@ -73,8 +74,10 @@ a.avatar {
}
```

**entry.js**

```js
import "webfont.scss";
import "any-file.scss";
```

**webpack.config.js**
Expand Down Expand Up @@ -104,7 +107,7 @@ export default {
new WebfontPlugin({
files: path.resolve(__dirname, "../fixtures/svg-icons/**/*.svg"),
dest: path.resolve(__dirname, "../fixtures/css/fonts"),
destTemplate: path.resolve(__dirname, "../fixtures/css/webfont.css")
destTemplate: path.resolve(__dirname, "../fixtures/css")
})
]
};
Expand All @@ -115,6 +118,7 @@ export default {
* `files` - (required) `glob` for files (non `svg` files ignored by default).
* `dest` - (required) path to generated files.
* `destTemplate` - (optional) path to generated template directory (if not passed used `dest` option value).
* `bail` - (optional) break build if generation have error.
* additional options - see [webfont](https://github.com/itgalaxy/webfont) options.

## Related
Expand Down
30 changes: 30 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# AppVeyor file
# http://www.appveyor.com/docs/appveyor-yml

# What combinations to test
environment:
matrix:
- nodejs_version: 9
- nodejs_version: 8
- nodejs_version: 6

version: "{build}"
build: off
deploy: off

branches:
only:
- master

install:
- ps: Install-Product node $env:nodejs_version
- npm install -g npm@latest
- npm install

test_script:
- node --version
- npm --version
- npm run test-only

matrix:
fast_finish: true # set this flag to immediately finish build once one of the jobs fails.

0 comments on commit 365b0d7

Please sign in to comment.