Commit graph

16 commits

Author SHA1 Message Date
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
Jürg Lehni
f89934e331 Release version 0.12.3 2019-06-22 14:40:54 +02:00
Samuel Asensi
b24e9b3835 Fix typescript definition issues (#1669)
Closes #1667
Closes #1664
Closes #1663
Closes #1659
2019-06-22 13:46:05 +02:00
sapics
be4199b6eb Update copyright year to 2019 2018-12-27 16:13:01 +09:00
sasensi
f25690aa91 Rename type definition file to paper.d.ts. 2018-12-03 14:41:47 +01:00
sasensi
bbd65324bc Add typescript definition generation
This add a gulp task (`gulp docs:typescript`) to automatically generate
a typescript definition for the library. This should solve the problem
of having an out of sync type definition when we change the API.

This task takes advantage of existing JSDoc parsing to generate a
temporary file which is later formatted through a mustache template to
generate the final definition. This definition is then tested by
compiling a typescript file that use it.
The generated definition is added to the `gulp zip` task in order to be
published along with the bundled library.

So 2 new dev-dependencies are added with this change: `mustache` and
`typescript` packages. Using node and mustache to generate the
definition instead of relying on existing templating system is
motivated by a better development experience, with easier debugging
possibilities... through the usage of more modern tools.

As a side note, support of "rest parameters" (when a parameter can be
present multiple times) is added to existing JSDoc parser in order to
support this pattern on typescript side (E.g. for `Color#set()` method
which accept any sequence of parameters that is supported by `Color`
constructors).
2018-12-03 14:41:47 +01:00
sapics
cfc5a912da Replace url to avoid redirection
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
Jürg Lehni
118deea20b Gulp: Define publish:website task to keep paperjs.org in sync. 2017-04-20 12:50:09 +02:00
Jürg Lehni
0311c267f5 Gulp: More work on improved publish task for Bower. 2016-07-09 20:56:58 +02:00
Jürg Lehni
7e20770126 Gulp: Fix docs task.
Omitted return means streaming wasn't working.
2016-07-09 16:11:18 +02:00
Jürg Lehni
1a3a4be0b6 Gulp: Implement publish task. 2016-01-31 14:30:14 +01:00
Jürg Lehni
89b3238385 Build and copy paper.js vesrion for docs.
And fix build issues introduced in previous commit: We do need a closure to create local name variables for the callback fucntions.
2016-01-25 11:26:08 +01:00
Jürg Lehni
d09459646d Move clear tasks to the task files they relate to. 2016-01-25 11:06:45 +01:00
Jürg Lehni
82de56ea2c Render paper.js version number as part of the docs. 2016-01-23 19:48:41 +01:00
Jürg Lehni
79a6915a7e Move jsdoc-toolkit submodule to gulp/jsdoc 2016-01-23 19:23:43 +01:00
Jürg Lehni
eda738d4fa Split gulpfile.js into separate task files. 2016-01-23 18:26:56 +01:00