Commit graph

275 commits

Author SHA1 Message Date
Simon Hausmann
84fd6dc08c Clean up Node.js port build system
- Instead of building index.js with esbuild and generating types with
  tsc, use tsc to build index.js and index.d.ts.
- Use ts-node instead of swc for typescript based tests, as that
  works with es modules.
- Remove "syntax_check" target from package.json as that's now
  implied with "compile".
- Sadly this requires one "as any" cast as tsc somehow fails to
  determine the right type info for node-fetch.

Unfortunately index.js can't be an ES module without breaking
compatiblity. It would imply that the Node.js port can't be used with
require() anymore. So even thought that would simplify things further,
it's not part of this PR.
2023-11-21 07:20:21 +01:00
Olivier Goffart
89fc27e73c xtask: Check that dev dependencies don't have a version
otherwise can't be uploaded to crates.io

And we have to do last minute patchup like 0b70cbc9a9
2023-11-13 18:37:16 +01:00
Simon Hausmann
50c4d23526 Make it possible to build installable node packages
When creating an npm package, substitute workspace fields, so that the resulting Cargo.toml
can actually be used.

Also added a --git=sha1 option to generate snapshot-friendly
packages that add `git = ...; rev = ...`
for all slint dependencies.

This revers the previously added publish step, this doesn't have to be
in the xtask.
2023-11-01 11:05:33 +01:00
Simon Hausmann
8a52de6b1e Initial attempt at GH action for publishing npm package 2023-10-31 15:19:04 +01:00
Olivier Goffart
0c529cd345 janitor: Some no-brainer deps update 2023-10-27 19:11:38 +02:00
Olivier Goffart
b88a3caacd swrenderer: Put the rotation feature behind a freature gate
We're not ready to make the API public as we want to have the API as
part of the Window rather than part of the renderer
2023-10-09 18:07:23 +02:00
Olivier Goffart
86968d6f80 Dependencies update 2023-10-02 20:27:25 +02:00
Tobias Hunger
85e1c6020b janitor: Use workspace dependnecies for the slint crates
This moves most of the version information we need to update into one
place.

Note that the workplace dependency features are in *addition* to any
feature set when using the workspace dependency. So we have all
workspace dependencies defined with `no-default-features = true`.
2023-09-25 16:34:16 +02:00
Tobias Hunger
d6695c55cb Janitor: Use cargo workspace package data more 2023-09-25 16:34:16 +02:00
Aurindam Jana
e01e9685be
Update Slint logo folder with new design (#3432)
This PR updates the logos and branding guideline of Slint to match the new website design. The new logos are a 1:1 replacement of the old logos except for the circular logo. In the new logo design, there isn't a separate circular logo, as the square logo with circular crop can be used. Further, the logo folder also contains logos in CMYK for use in printed materials. The PMS is just the color value in the naming and can be used where Pantome colors are required. The README has been updated to explain which logos to use when as well as the Slint "blue" color.
2023-09-11 16:41:06 +02:00
J-P Nurmi
5ce11e302a
vscode: add "wrap in element" code action (#3420) 2023-09-07 12:11:14 +02:00
tronical
b8b9db4e42 Bump version number to 1.3.0 2023-09-05 15:46:36 +02:00
Olivier Goffart
5052aa8561 Remove clap dependency of cbindgen
we don't use it, and clap used by cbindgen is an old version resulting
in duplicate clap versions being built
2023-08-25 10:51:59 +02:00
Olivier Goffart
146ed520e8
C++: rename SLINT_FEATURE_STD in SLINT_FEATURE_FREESTANDING with the opposite meaning 2023-08-21 16:52:30 +02:00
Tobias Hunger
f8d95afa2e Make xtask's license checker handle html-style SPDX headers
.. and enable those for .md files
2023-08-17 08:55:28 +02:00
Simon Hausmann
bf7e7e7323 Move debugging techniques under advanced topics in the Slint reference 2023-08-15 10:43:49 +02:00
Simon Hausmann
870e0e541d Restructure the Slint reference documentation
- Move the language reference into a sub-section of its own
- Made Reciples & Examples a top-level section

This paves the way for adding more top-level sections, such as advanced topics (with debugging techniques), or the list of supported
platforms.
2023-08-15 10:43:49 +02:00
Simon Hausmann
2e3f5637ea Fix license header check on napi/.npmignore
Fixes

Error: checking /Users/simon/src/slint/api/napi/.npmignore

Caused by:
    Cannot determine the expected license header style. Please fix the license checking xtask.
2023-08-15 10:21:38 +02:00
Olivier Goffart
c9f716d898
Make a esp-idf component for slint 2023-08-07 16:33:02 +02:00
darknight
37488f015d Refactoring: define macro rules to group builtin structs
apply new macro for struct declaration, type register,
doc generation, cpp header generation, struct-value conversion.
2023-08-03 11:01:18 +02:00
Simon Hausmann
7ff7c2f875 Fix let-else formatting
Nightly now supports it and thus `cargo +nightly fmt` yields a
difference.
2023-07-28 13:43:21 +02:00
Olivier Goffart
fd7fc5ab9b C++, remove the experimental flag
The platform namespace is now always enabled.
2023-07-28 10:36:08 +02:00
Olivier Goffart
3a807e46c1
Renderer feature refactor 2023-07-27 19:11:24 +02:00
Olivier Goffart
caabf9ae1e Remove unused dependency 2023-07-27 10:39:51 +02:00
ogoffart
aebaa7d6c9 Bump version number to 1.2.0 2023-07-25 10:44:53 +00:00
Olivier Goffart
7cffad2c3f C++: add a STD feature enabled by default 2023-07-18 12:44:20 +02:00
Olivier Goffart
a1bf77383f
C++: Add a mechanism to #define features that are enabled (#3103) 2023-07-18 11:49:00 +02:00
Simon Hausmann
8f6669194a Fix disapearing debugging techniques docs from C++ docs
Amends a11c4c42b0
2023-07-17 18:08:31 +02:00
Simon Hausmann
7961bd68e5 Fix inclusion of some C++ interpreter data structures C++ docs
Make sure to generate the public interpreter header file for the docs
xtask unconditionally.
2023-07-17 15:52:42 +02:00
Simon Hausmann
a11c4c42b0 Remove the Slint language docs from the C++ API docs index
The symlink from docs/ is not needed anymore. Its presence meant that
sphinx recursively compiled all .md and .rst files and ended up adding
them to the searchable index.

Fixes #3033
2023-07-11 18:22:44 +02:00
Aurindam Jana
5a4a7fee63
Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
Olivier Goffart
e836e42997 Docs: don't commit the generated enums.md to the repo
Just generate it as we build the docs
2023-06-30 09:55:35 +02:00
ogoffart
c8c9496722 Bump version number to 1.1.1 2023-06-26 12:50:02 +00:00
Tobias Hunger
50cc61c242 Fix reuse 3.1 spec compliance issues 2023-06-22 10:49:18 +02:00
Olivier Goffart
11dea135f7 Domain: slint-ui.com -> slint.dev 2023-06-16 10:55:08 +02:00
Tobias Hunger
24c822dd60 xtask: Make docs MIT license 2023-06-16 09:14:20 +02:00
Tobias Hunger
04d1229685 Fix licnese information using xtask 2023-06-16 09:14:20 +02:00
Tobias Hunger
4a24d9cfdc xtask: Save license changes in Cargo.toml file 2023-06-16 09:14:20 +02:00
Tobias Hunger
ef0ce14930 xtask: Report fixing cargo.toml issues 2023-06-16 09:14:20 +02:00
Tobias Hunger
7e50d3c740 xtask: clippy polish 2023-06-16 09:14:20 +02:00
Tobias Hunger
b06d2573dd xtask: Store path in CargoToml struct so we can report better errors 2023-06-16 09:14:20 +02:00
Tobias Hunger
1589cd7941 xtask: Support different licences for different sections of the repo 2023-06-16 09:14:20 +02:00
Tobias Hunger
0788f683c6 xtask: Reorder and fix regular expressions used to match files 2023-06-16 09:14:20 +02:00
ogoffart
641cab0e75 Bump version number to 1.1.0 2023-06-15 16:01:28 +00:00
Aurindam Jana
039e54a5de
Add royalty free license to files except examples and docs (#2888) 2023-06-15 11:20:50 +02:00
Olivier Goffart
72de76b71a Documentation for enums 2023-06-12 13:02:14 +02:00
Olivier Goffart
3dd24b862e Fix license check 2023-06-05 16:34:59 +02:00
Cole Lawrence
3490fa936a dev: Ignore CHANGELOG.md from pre-commit hook checks
* Add license checking for .prettierignore
2023-05-05 08:51:19 +02:00
ogoffart
dfd5fc38b3 Bump version number to 1.0.3 2023-04-26 14:04:08 +00:00
ogoffart
53cce5bf44 Bump version number to 1.0.2 2023-04-26 11:33:16 +02:00