Commit graph

66 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
fa4502dfe3 Include NodeJS related files in zipped distribution. 2017-01-01 14:40:58 +01:00
Jürg Lehni
89c60b1a05 Loosely couple Node.js code to canvas module.
Treat absence of canvas module like a web worker context.
Relates to #1103
2016-07-12 19:11:09 +02:00
Jürg Lehni
4df2dfb343 No need for npm prepublish now that we have the gulp publish task. 2016-07-09 23:49:11 +02:00
Jürg Lehni
a14e1e4c97 Replace extend() with Object.assign() 2016-07-09 23:36:11 +02:00
Jürg Lehni
bf2eada11c Remove component.json and clean up package files a bit.
Component is not maintained anymore, per https://github.com/componentjs/component/issues/639
2016-07-09 21:31:25 +02:00
Jürg Lehni
6154b44d68 Gulp: Cleanup publish task. 2016-07-09 21:20:47 +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
1b1b9a1606 Gulp: Change publish task so that dist folder contains built versions on master branch.
As required by Bower...
2016-07-09 19:48:02 +02:00
Jürg Lehni
6aa983f367 Gulp: Use correct depenency sequence for publish task. 2016-07-09 16:37:00 +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
cfa215051d Update to latest gulp-git-streamed and remove publish workaround code. 2016-07-03 12:17:37 +02:00
Jürg Lehni
3e2a3827fd Gulp: Have jshint errors trigger Travis CI failures. 2016-06-10 17:22:11 +02:00
Jürg Lehni
8542eb62b4 Gulp: Add test:browser task, to solve CORS issues on Chrome. 2016-02-11 10:05:21 +01:00
Jürg Lehni
1a3a4be0b6 Gulp: Implement publish task. 2016-01-31 14:30:14 +01:00