Commit graph

83 commits

Author SHA1 Message Date
Ron de las Alas
352acb9700 ci: ts-definition-test from gitignore and add the file 2023-10-31 09:54:34 -04:00
Ron de las Alas
597c18c04a ci: add paperjs build workflow 2023-10-30 16:12:18 -04:00
adroitwhiz
c3c51d29f6 Merge commit '7bb34e4' into merge-latest-paper 2020-05-29 12:26:53 -04:00
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
Jürg Lehni
b6d01e55e5 Finally fix weird issues with publish tasks
See b65527e360
2020-05-23 21:42:04 +02:00
Jürg Lehni
65886449e1 Release version 0.12.6 2020-05-23 21:30:44 +02:00
DD Liu
eab98477cb
Revert "Merge paper.js 0.12.3" 2020-04-30 11:43:22 -04:00
adroitwhiz
fbd0de1925 Merge paper.js 0.12.3 2019-11-08 21:16:48 -05:00
Samuel Asensi
43bbb249ab Allow paper core import in TypeScript (#1716)
* Allow paper core import in TypeScript

Typings were missing when importing paper core version with:
`import * as paper from 'paper/dist/paper-core'` syntax.
This changes the generated TypeScript definition so that it exports two
modules: `paper` and `paper/dist/paper-core`. In the same logic,
`paper-core.d.ts` file is added to make sure that the corresponding
definition is automatically loaded.
This also takes care of the fact that `PaperScript` class is not
available in paper core version, by removing it from the corresponding
TypeScript definition.
Finally, this also simplifies existing definition by directly exporting
a `PaperScope` instance as the module instead of duplicating all
`PaperScope` properties and methods on the module itself.
Closes #1713
2019-11-07 12:12:14 +01:00
Jürg Lehni
c9a8d54623 Update JSDoc for #1677 2019-07-12 11:57:33 +02:00
Samuel Asensi
0c885964d3 Add support for nullable in documentation 2019-07-12 11:52:53 +02:00
Jürg Lehni
a5a13f541a Update JSDoc to fix regression in link rendering 2019-06-22 15:18:40 +02:00
Jürg Lehni
f89934e331 Release version 0.12.3 2019-06-22 14:40:54 +02:00
Jürg Lehni
68ea63d99e Fix JSDoc warning message 2019-06-22 14:16:49 +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
Jürg Lehni
e5d7bafd39 Update JSDoc and add some minor doc changes 2019-06-22 13:41:05 +02:00
Jürg Lehni
0b806e52db Another attempt at fixing publish task
I guess we'll find out shortly if it works
2019-06-22 13:14:16 +02:00
Jürg Lehni
41094cd871 Change publish:packages task to publish in series 2019-06-10 00:39:11 +02:00
Jürg Lehni
33a5625936 Reactivate ‘publish:packages’ script 2019-06-06 00:15:23 +02:00
Jürg Lehni
bcfc0eb413 Release version 0.12.1 2019-06-06 00:13:07 +02:00
Jürg Lehni
330b7d0eb9 Avoid clash with --branch argv in Node 10 2019-04-11 20:01:31 +02:00
sapics
be4199b6eb Update copyright year to 2019 2018-12-27 16:13:01 +09:00
sasensi
b8a0743e3d Avoid using _ as parameter name. 2018-12-03 14:41:47 +01: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
Jürg Lehni
0cced9788c Switch back to load.js versions on develop branch. 2018-12-03 14:29:13 +01:00
Jürg Lehni
a66391678e Release version 0.12.0 2018-12-03 14:26:23 +01:00
Jürg Lehni
9c684091f4 Move Tween class to anim namespace + changes
- Change from item to object, as it can be used to tween any property on any object really
- Make _handleFrame() private
- Minor documentation tweaks
2018-12-03 12:51:31 +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
DD
bb7ebe0d24 Add linting to test 2018-10-25 14:22:55 -04:00
DD
ab7fa1e091 Merge branch 'doubleUpstreamDevelop' into mergePaper 2018-10-23 10:16:40 -04:00
Jürg Lehni
8518baf6bb Revert temporary publish hack 2018-10-17 17:00:18 +02:00
Jürg Lehni
3cc3ce8f13 Release version 0.11.7 2018-10-17 16:56:58 +02:00
Jürg Lehni
e043c6cbd5 Fix issues with gulp publish script 2018-10-17 16:49:04 +02:00
Jürg Lehni
1c4e5cd84b Update JSDoc 2018-10-03 18:38:40 +02:00
Jürg Lehni
e41ed5e723 Increase test:phantom timeout 2018-10-03 11:37:46 +02:00
Paul Kaplan
feb044048f Disable browser test step because CI cannot run it 2018-03-29 15:21:14 -04:00
DD
6b1421eb4d Build before testing so we dont have to track the dist files 2017-12-06 17:07:59 -05:00
DD
fd1435d94d Fix tests and make Travis deploy scratch paperjs 2017-12-04 18:34:59 -05:00
Jürg Lehni
c72f578d8d Gulp: Prevent paperjs.zip from showing up in NPM packages. 2017-04-22 20:01:34 +02:00
Jürg Lehni
11e9437b37 Gulp: Bump website version when publishing. 2017-04-21 12:54:40 +02:00
Jürg Lehni
5d125d6a43 Improve publishing of website assets. 2017-04-20 19:51:45 +02:00
Jürg Lehni
eeed73c1e9 Sub-modules need to be updated and published before main module. 2017-04-20 18:53:35 +02:00
Jürg Lehni
966425d962 Some tweaks on publishing scripts. 2017-04-20 18:16:21 +02: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
d364c32e6b Minor fixes. 2017-04-19 23:34:35 +02:00
Jürg Lehni
d0a4532d94 Release version 0.11.0 2017-04-19 22:07:46 +02:00
Jürg Lehni
2bac4e71e0 Introduce paper-jsdom and paper-jsdom-canvas submodules.
Relates to #1252
2017-04-19 19:53:39 +02:00
Jürg Lehni
36f5b314d9 Update JSDoc and a minor documentation fix. 2017-01-11 14:45:52 +01:00
Jürg Lehni
fa4502dfe3 Include NodeJS related files in zipped distribution. 2017-01-01 14:40:58 +01:00