Skip to content

Commit

Permalink
feat: modernize, bump deps, removed support for squirrelly due to maj…
Browse files Browse the repository at this point in the history
…or API changes in v8, removed support for razor-tmpl removed marko support (per <fastify/point-of-view#218>), fixed try/catch issues (per <tj#341>)
  • Loading branch information
titanism committed Jun 9, 2023
1 parent ec2e1ae commit feb5b06
Show file tree
Hide file tree
Showing 34 changed files with 1,669 additions and 1,463 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
};
6 changes: 1 addition & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

[{**/{actual,fixtures,expected,templates}/**,*.md}]
trim_trailing_whitespace = false
insert_final_newline = false
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.*.js
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: CI
on:
- push
- pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
node_version:
- 16
- 18
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install dependencies
run: npm install
- name: Run tests
run: npm run test
37 changes: 12 additions & 25 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
# always ignore files
*.DS_Store
*.sublime-*

# test related, or directories generated by tests
test/actual
actual
coverage
.nyc*

# npm
.DS_Store
*.log
.idea
node_modules
npm-debug.log

# yarn
coverage
.nyc_output
locales/
package-lock.json
yarn.lock
yarn-error.log

# misc
_gh_pages
_draft
_drafts
bower_components
vendor
temp
tmp
TODO.md
package-lock.json
Thumbs.db
tmp/
temp/
*.lcov
.env
5 changes: 5 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
"*.md": filenames => filenames.map(filename => `remark ${filename} -qfo`),
'package.json': 'fixpack',
'*.js': 'xo --fix'
};
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
5 changes: 5 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
singleQuote: true,
bracketSpacing: true,
trailingComma: 'none'
};
3 changes: 3 additions & 0 deletions .remarkrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
plugins: ['preset-github']
};
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .xo-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
prettier: true,
space: true,
extends: ['xo-lass'],
rules: {
'guard-for-in': 'off',
'no-multi-assign': 'off',
'prefer-spread': 'off',
'no-prototype-builtins': 'off',
'n/no-deprecated-api': 'off',
'ava/no-ignored-test-files': 'off'
}
};
136 changes: 136 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# History

**This has moved to the [Releases](https://github.com/ladjs/consolidate.js/releases) page on GitHub for all new releases.**


## 0.15.1 / 2018-03-19

* add support for underscore partials
* updating metadata and configurations
* lint and cleanup code and tests


## 0.15.0 / 2017-11-01

* add plates support
* add teacup support
* add liquid-node support
* add velocityjs support
* allow absolute and relative partial paths
* extend dot options
* support layouts in vash


## 0.14.0 / 2016-01-24

* add slm support
* add vash support
* add twig support
* fixes lodash 4 options
* fixes liquid file extensions and path resolving


## 0.13.0 / 2015-05-26

* fixes react template error
* adds promises when a callback function is not passed to `render`
* documentation updates


## 0.11.0 / 2015-02-07

* fix aptl tests
* update jade caching
* add HTMLing support
* add hamlet support
* readme updates
* add tinyliquid support
* pass `options` to ECT.js
* update ractive
* update travis-ci to test 0.10, 0.12, and iojs


## 0.10.0 / 2013-11-23

* add lodash support
* add nunjucks support


## 0.9.1 / 2013-04-29

* Update ECT version
* Added support for Handlebars helpers with test.
* Invalidates built-in dust cache if caching disabled


## 0.9.0 / 2013-03-28

* dust-helpers support, latest version of dust
* Re-add doT - global leaks fixed
* improving templayed support


## 0.8.0 / 2013-01-23

* add templayed support
* add `then-jade` as an alternative to `jade`


## 0.7.0 / 2012-12-28

* add atpl support


## 0.6.0 2012-12-22

* add partials support
* add support for toffee templates
* remove dot it still leaks and the author has not fixed it


## 0.5.0 / 2012-10-29

* add `mote` support
* add support to `dust` partials
* add support for `ECT`
* add support for rendering without file
* add support for `JUST`
* improve Haml-Coffee caching.


## 0.4.0 / 2012-07-30

* add doT support \[sannis]
* add mustache support \[ForbesLindesay]
* add walrus support \[kagd]


## 0.3.1 / 2012-06-28

* add QEJS support
* add underscore support
* change whiskers to use pre-defined `.__express`
* remove engines. Closes #37
* remove kernel, cannot comply with our caching


## 0.3.0 / 2012-04-18

* Added partials loading for whiskers \[gsf]
* Added dustjs-linkedin support


## 0.2.0 / 2012-04-04

* Added support for dust \[fatjonny]
* Added handlebars support \[jstewmon]


## 0.1.0 / 2012-01-03

* Added support for several more engines


## 0.0.1 / 2010-01-03

* Initial release
Loading

0 comments on commit feb5b06

Please sign in to comment.