Skip to content

Commit

Permalink
Move to Github Actions (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladikoff authored Feb 25, 2021
1 parent 3b1a0fc commit 4cb5129
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 58 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Tests

on: [push, pull_request]

env:
FORCE_COLOR: 2

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [10, 12, 14]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install npm dependencies
run: npm ci

- name: Run tests
run: npm test

# We test multiple Windows shells because of prior stdout buffering issues
# filed against Grunt. https://github.com/joyent/node/issues/3584
- name: Run PowerShell tests
run: "npm test # PowerShell" # Pass comment to PS for easier debugging
shell: powershell
if: startsWith(matrix.os, 'windows')
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
v3.0.0
v3.0.0:
date: 2021-02-23
changes:
- Update to pug 3.0.0
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# grunt-contrib-pug v2.0.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-pug.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-pug) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/aso1brjxx79khb41/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-pug/branch/master)
# grunt-contrib-pug v3.0.0 [![Build Status](https://github.com/gruntjs/grunt-contrib-pug/workflows/Tests/badge.svg)](https://github.com/gruntjs/grunt-contrib-pug/actions?workflow=Tests)

> Compile Pug templates
Expand Down Expand Up @@ -28,7 +28,7 @@ Task targets, files and options may be specified according to the grunt [Configu
### Options

#### pretty
Type: `Boolean`
Type: `Boolean`
Default: `false`

Output indented HTML.
Expand Down Expand Up @@ -98,21 +98,21 @@ pugfilters.another = function(block) {};
```

#### compileDebug
Type: `Boolean`
Type: `Boolean`
Default: `true`

Add Pug debug instructions to generated JS templates.

#### client
Type: `Boolean`
Type: `Boolean`
Default: `false`

Compile to JS template functions for client-side use rather than directly to HTML.

Make sure to also include the Pug runtime (only `runtime.js`) as described in the [Pug documentation](https://github.com/visionmedia/pug#browser-support).

#### namespace
Type: `String`, `Boolean`
Type: `String`, `Boolean`
Default: `'JST'`

The namespace in which the precompiled templates will be assigned. Use dot notation (*e.g.* `App.Templates`) for nested namespaces or `false` for no namespace wrapping.
Expand All @@ -121,7 +121,7 @@ When set to `false` with **amd** option set to `true`, the templates will be ret


#### amd
Type: `Boolean`
Type: `Boolean`
Default: `false`

Wraps the output file with an AMD define function and returns the compiled template namespace unless namespace has been explicitly set to false in which case the template function will be returned directly.
Expand Down Expand Up @@ -237,7 +237,8 @@ pug: {


## Release History
* 2021-02-23 v3.0.0 Update to pug 3.0.0. Drop Node.js < 10 support.

* 2021-02-23   v3.0.0   Update to pug 3.0.0 Drop Node.js < 10 support.
* 2018-09-07   v2.0.0   Drop Node.js < 6 support. Update dependencies.
* 2016-03-04   v1.0.0   Point main to task and remove peerDeps. Update docs and tests.
* 2015-07-08   v0.15.0   Update to jade 1.11.0. Add test for Codeblocks
Expand Down Expand Up @@ -265,4 +266,4 @@ pug: {

Task submitted by [Eric Woroshow](http://ericw.ca/)

*This file was generated on Fri Sep 07 2018 03:45:41.*
*This file was generated on Wed Feb 24 2021 22:30:18.*
33 changes: 0 additions & 33 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"repository": "gruntjs/grunt-contrib-pug",
"license": "MIT",
"engines": {
"node": ">=6"
"node": ">=10"
},
"main": "tasks/pug.js",
"scripts": {
Expand Down

0 comments on commit 4cb5129

Please sign in to comment.