Skip to content

Commit 423112d

Browse files
committed
2.0.0
1 parent 46845b7 commit 423112d

File tree

2 files changed

+63
-56
lines changed

2 files changed

+63
-56
lines changed

CHANGELOG.md

Lines changed: 57 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
55

66
[Upcoming Changes](https://github.com/patrickarlt/acetate/compare/v1.3.5...master)
77

8+
## [2.0.0] - 2018-02-1
9+
10+
* Custom `dest` and `url` properties are now respected by builds.
11+
* Headers on 404 page are now fixed
12+
* Default highlight.js instance is now exposed and can now be overwritten at `acetate.highlight`.
13+
814
## [2.0.0-rc.4] - 2017-08-11
915

1016
### Changed
@@ -29,11 +35,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2935

3036
```js
3137
acetate.load("**/*.+(md|html)", {
32-
basePath: 'doc'
38+
basePath: "doc"
3339
});
3440
```
3541

3642
Will cause all pages to have `/doc/` prepended to their URLs and be output to the `/doc` folder when building.
43+
3744
* A new config method `acetate.symlink(src, dest)` will create a symlink from a `src` directory, relative to `acetate.root` (usually `process.cwd()`) to a destination directory in your source folder. This should allow you to easily bring external directories into your acetate site, for example you could `acetate.symlink` a Git submodule.
3845

3946
## [2.0.0-rc.1] - 2017-07-22
@@ -46,15 +53,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4653
### Breaking Changes
4754

4855
* Logging methods (`log`, `info`, `debug`, 'success', `error`, `time`, and `timeEnd`) are no longer on instances of `Acetate`. They are available on under `acetate.log` object. You will need to make the following changes:
49-
* `acetate.log(/* ... */)` => `acetate.log.log(/* ... */)`
50-
* `acetate.info(/* ... */)` => `acetate.log.info(/* ... */)`
51-
* `acetate.debug(/* ... */)` => `acetate.log.debug(/* ... */)`
52-
* `acetate.success(/* ... */)` => `acetate.log.success(/* ... */)`
53-
* `acetate.error(/* ... */)` => `acetate.log.error(/* ... */)`
54-
* `acetate.time(/* ... */)` => `acetate.log.time(/* ... */)`
55-
* `acetate.timeEnd(/* ... */)` => `acetate.log.timeEnd(/* ... */)`
56+
* `acetate.log(/* ... */)` => `acetate.log.log(/* ... */)`
57+
* `acetate.info(/* ... */)` => `acetate.log.info(/* ... */)`
58+
* `acetate.debug(/* ... */)` => `acetate.log.debug(/* ... */)`
59+
* `acetate.success(/* ... */)` => `acetate.log.success(/* ... */)`
60+
* `acetate.error(/* ... */)` => `acetate.log.error(/* ... */)`
61+
* `acetate.time(/* ... */)` => `acetate.log.time(/* ... */)`
62+
* `acetate.timeEnd(/* ... */)` => `acetate.log.timeEnd(/* ... */)`
5663
* `acetate.transformAync` has been removed. You can now use `acetate.transform` for the same purpose. You will need to make the following changes:
57-
* `acetate.transformAsync(/* ... */)` => `acetate.transform(/* ... */)`.
64+
* `acetate.transformAsync(/* ... */)` => `acetate.transform(/* ... */)`.
5865
* `acetate.transformAll` and `acetate.transformAllAsync` have been removed. Removal of these funcations allows for the performance improvments in the development server.
5966
* The [MarkdownIt](https://markdown-it.github.io/markdown-it/) instance at `acetate.renderer.markdown` has been moved to `acetate.markdown`.
6067
* The [Nunjucks environment](https://mozilla.github.io/nunjucks/api.html#environment) instance at `acetate.renderer.nunjucks` has been moved to `acetate.nunjucks`.
@@ -255,7 +262,6 @@ This project adheres to [Semantic Versioning](http://semver.org/).
255262

256263
* Extensions that are run inside extensions now run and execute after the extension that invoked them has finished.
257264

258-
259265
## [0.4.0] - 2016-01-04
260266

261267
### Added
@@ -269,7 +275,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
269275
### Changed
270276

271277
* Console output from BrowserSync now has the `[Acetate]` prefix.
272-
* Tests now use [node-tap] (https://github.com/isaacs/node-tap)
278+
* Tests now use [node-tap](https://github.com/isaacs/node-tap)
273279
* Switch to [Coveralls.io](https://coveralls.io/github/patrickarlt/acetate) for code coverage reporting.
274280
* `acetate.helper` can now create helpers without arguments.
275281

@@ -310,6 +316,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
310316
## [0.2.1] - 2015-05-01
311317

312318
### Added
319+
313320
* Lots of new tests. Test coverage should now be fairly high with only a few remaining edge cases
314321
* New `watcher:ready` event when the watcher starts watching files
315322
* New `watcher:start` event when the watcher starts
@@ -318,13 +325,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
318325
* New `page:clean` method for when a pages built output is deleted
319326

320327
### Changed
328+
321329
* Improvements to `travis.yml`, readme and contributing guide.
322330
* Updated dependencies
323331
* Simplified framework for running tests and gathering coverage information
324332
* `page.clean()` will no longer clear the directory if it is empty
325333
* Previously `acetate.query(name, glob, builder)` and `acetate.transform(glob, transformer)` only accepted globs like `'**/*'` to filter there input. They can now accept functions like `function (page) { return page.transformMe; }` or simple objects `{ transformMe: true }` to filter pages before running the query or transform
326334

327335
### Fixed
336+
328337
* It is not possible to run Acetate without a configuration file. Previously this worked but reported an error.
329338
* Edge cases with building pretty URLs for non HTML files have been fixed
330339
* Sever will now properly use a `404.html` page if it is present in your `src` folder.
@@ -333,38 +342,45 @@ This project adheres to [Semantic Versioning](http://semver.org/).
333342
## [0.2.0] - 2015-04-25
334343

335344
### Changed
336-
- Large refactor to move to a factory based API and use composition to improve code clarity
337-
- `acetate.args` will no longer include Acetate command line arguments
338-
- The `options`, `args` `src`, `dest`, `root`, and `config` properties are now frozen and cannot be updated.
339-
- Update dependencies
345+
346+
* Large refactor to move to a factory based API and use composition to improve code clarity
347+
* `acetate.args` will no longer include Acetate command line arguments
348+
* The `options`, `args` `src`, `dest`, `root`, and `config` properties are now frozen and cannot be updated.
349+
* Update dependencies
340350

341351
### Added
342-
- Additional CLI doc
343-
- Pages now have more public properties including `metadata` which is a read only copy of the metadata found in the file and `dirty` with will tell you if a page has changed since it was last built.
352+
353+
* Additional CLI doc
354+
* Pages now have more public properties including `metadata` which is a read only copy of the metadata found in the file and `dirty` with will tell you if a page has changed since it was last built.
344355

345356
### Removed
346-
- Remove the `clean` option since it was buggy and did not operate how most people expect.
347-
-
357+
358+
* Remove the `clean` option since it was buggy and did not operate how most people expect.
359+
*
360+
348361
## [0.1.0] - 2015-04-17
349362

350363
### Added
351-
- tests for error handling
352-
- tests for edge cases in templates
353-
- tests for data loading
354-
- added release automation
355-
- added changelog
364+
365+
* tests for error handling
366+
* tests for edge cases in templates
367+
* tests for data loading
368+
* added release automation
369+
* added changelog
356370

357371
### Changed
358-
- **BREAKING** `acetate.src` and `acetate.dest` are removed. Pass them as options or with the `-i` or `-o` flags on the command line
359-
- refactored error handling and logging to be more compact
360-
- refactored page loading to be simpler
361-
- move runner and CLI to event based system
372+
373+
* **BREAKING** `acetate.src` and `acetate.dest` are removed. Pass them as options or with the `-i` or `-o` flags on the command line
374+
* refactored error handling and logging to be more compact
375+
* refactored page loading to be simpler
376+
* move runner and CLI to event based system
362377

363378
## 0.0.27 - 2015-04-13
364379

365380
### Added
366-
- Unit testing
367-
- Continuous integration
381+
382+
* Unit testing
383+
* Continuous integration
368384

369385
[0.1.0]: https://github.com/patrickarlt/acetate/compare/db93ca4703148fe1a962a8cc3ecca63ba19d08ed...v0.1.0
370386
[0.2.0]: https://github.com/patrickarlt/acetate/compare/v0.1.0...v0.2.0
@@ -383,17 +399,17 @@ This project adheres to [Semantic Versioning](http://semver.org/).
383399
[0.4.8]: https://github.com/patrickarlt/acetate/compare/v0.4.7...v0.4.8
384400
[0.4.9]: https://github.com/patrickarlt/acetate/compare/v0.4.8...v0.4.9
385401
[0.4.10]: https://github.com/patrickarlt/acetate/compare/v0.4.9...v0.4.10
386-
[0.4.11]:https://github.com/patrickarlt/acetate/compare/v0.4.10...v0.4.11
402+
[0.4.11]: https://github.com/patrickarlt/acetate/compare/v0.4.10...v0.4.11
387403
[1.0.0]: https://github.com/patrickarlt/acetate/compare/v0.4.11...v1.0.0
388404
[1.0.1]: https://github.com/patrickarlt/acetate/compare/v1.0.0...v1.0.1
389405
[1.0.2]: https://github.com/patrickarlt/acetate/compare/v1.0.1...v1.0.2
390-
[1.1.0]:https://github.com/patrickarlt/acetate/compare/v1.0.2...v1.1.0
391-
[1.1.1]:https://github.com/patrickarlt/acetate/compare/v1.1.0...v1.1.1
392-
[1.2.1]:https://github.com/patrickarlt/acetate/compare/v1.1.1...v1.2.1
393-
[1.3.1]:https://github.com/patrickarlt/acetate/compare/v1.2.1...v1.3.1
394-
[1.3.2]:https://github.com/patrickarlt/acetate/compare/v1.3.1...v1.3.2
395-
[1.3.3]:https://github.com/patrickarlt/acetate/compare/v1.3.2...v1.3.3
396-
[1.3.4]:https://github.com/patrickarlt/acetate/compare/v1.3.3...v1.3.4
397-
[1.3.5]:https://github.com/patrickarlt/acetate/compare/v1.3.4...v1.3.5
398-
[2.0.0-rc.1]:https://github.com/patrickarlt/acetate/compare/v1.3.5...2.0.0-rc.1
399-
[2.0.0-rc.2]:https://github.com/patrickarlt/acetate/compare/2.0.0-rc.1...2.0.0-rc.2
406+
[1.1.0]: https://github.com/patrickarlt/acetate/compare/v1.0.2...v1.1.0
407+
[1.1.1]: https://github.com/patrickarlt/acetate/compare/v1.1.0...v1.1.1
408+
[1.2.1]: https://github.com/patrickarlt/acetate/compare/v1.1.1...v1.2.1
409+
[1.3.1]: https://github.com/patrickarlt/acetate/compare/v1.2.1...v1.3.1
410+
[1.3.2]: https://github.com/patrickarlt/acetate/compare/v1.3.1...v1.3.2
411+
[1.3.3]: https://github.com/patrickarlt/acetate/compare/v1.3.2...v1.3.3
412+
[1.3.4]: https://github.com/patrickarlt/acetate/compare/v1.3.3...v1.3.4
413+
[1.3.5]: https://github.com/patrickarlt/acetate/compare/v1.3.4...v1.3.5
414+
[2.0.0-rc.1]: https://github.com/patrickarlt/acetate/compare/v1.3.5...2.0.0-rc.1
415+
[2.0.0-rc.2]: https://github.com/patrickarlt/acetate/compare/2.0.0-rc.1...2.0.0-rc.2

package.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"name": "acetate",
33
"description": "A layout and templating framework for static websites.",
4-
"version": "2.0.0-rc.6",
4+
"version": "2.0.0",
55
"author": "Patrick Arlt <patrick.arlt@gmail.com> (https://patrickarlt.com/)",
66
"babel": {
7-
"presets": [
8-
"es2015"
9-
]
7+
"presets": ["es2015"]
108
},
119
"bugs": {
1210
"url": "https://github.com/patrickarlt/acetate/issues/"
@@ -64,19 +62,11 @@
6462
"node": ">=6.0.0"
6563
},
6664
"homepage": "https://acetate.io",
67-
"keywords": [
68-
"site",
69-
"static",
70-
"template",
71-
"templating"
72-
],
65+
"keywords": ["site", "static", "template", "templating"],
7366
"license": "ISC",
7467
"main": "lib/Acetate.js",
7568
"nyc": {
76-
"exclude": [
77-
".acetate_fixtures",
78-
"test/**/*"
79-
]
69+
"exclude": [".acetate_fixtures", "test/**/*"]
8070
},
8171
"repository": {
8272
"type": "git",
@@ -90,7 +80,8 @@
9080
"release": "npm publish && gh-release",
9181
"pretest": "npm run clean:fixtures && npm run lint",
9282
"test": "ava test/*.test.js --verbose --serial",
93-
"test:coverage": "nyc --reporter text --reporter html --require babel-register ava test/*.test.js ",
83+
"test:coverage":
84+
"nyc --reporter text --reporter html --require babel-register ava test/*.test.js ",
9485
"precommit": "npm run prettier && npm run lint",
9586
"prepush": "npm test",
9687
"prettier": "prettier --write \"{lib,src}/**/*.js\""

0 commit comments

Comments
 (0)