Commit Graph

12 Commits (893ad44ff26f074b0797b8e934a2f4f75e5e6e32)

Author SHA1 Message Date
Thomas Bouffard 893ad44ff2
chore: improve the configuration to build the npm package (#87)
Root and all package.json files
  - Fix license, version and authors
  - Remove the non-relevant .npmignore file at the project. It was designed for mxgraph, the whole directory structure
  changed, and we don't plan to publish the root package

`core` package
  - Generate type definition and javascript files for ESM output
    - dedicated folder for `esm` and `types` in the `dist` folder to clearly separate concerns
    - exported in the package.json
  - Add npm script for `npm pack` configuration
  - Drop the `postinstall` npm script that built the `core` bundle. It would have been run when the package is installed
  in dependent projects at dependencies install. And it would have failed as it tries to build the project from TypeScript
  sources that are not available in the npm package.

fix: ConstraintHandler now loads image as everywhere else in the code using `Client.imageBasePath`
Using import doesn't work as the image is not available in the npm package. It generated error like this in ViteJS
project:
Failed to resolve import "../../../images/point.gif" from "../core/dist/esm/view/handler/ConstraintHandler.js". Does the file exist?
This gif import had been introduced to make `Anchors.stories.js` retrieve the gif file. Configuring `imageBasePath` as
already done in other stories fixes the issue.

Don't export EditorCodec and StylesheetCodec as they generate errors.
This is a temporary solution to avoid error in dependent project (at least, with ViteJS projects).
2022-07-05 08:08:25 +02:00
Amine B. Hassouna 4aa277cf9d
Add Apache 2.0 license note to PR template (#91) 2022-06-07 06:12:15 +02:00
Thomas Bouffard 3a1b08cd4c
chore: remove the stale bot configuration file
We are not using https://github.com/apps/stale in this repository, so remove this useless file.
Note: it was used in the original mxGraph GitHub repository.
2022-05-07 17:41:47 +02:00
Thomas Bouffard 443ebf7a52
chore: GitHub workflow generates TypeScript declarations (#80)
This ensures we don't have type errors in the code.

Update tsconfig to only include source TS files.
Previous configuration prevented to run the type generation twice.
The generated d.ts files were considered as source files, so we got file override errors.

Add a dedicated npm script to generate scripts.
We cannot directly call the tsc or lerna commands on the macOS GH actions runner, so introduce the script.
2022-04-03 13:09:24 +02:00
Thomas Bouffard fb7819f92a
chore: fix build error and introduce a build github workflow (#71)
Fix imports that are not respecting the case of the filenames.

The build often has errors and they are only detected after a developer pull the `development` branch on their local machine.
To early catch build failures, add a GitHub workflow that runs a build command.
2022-01-14 06:17:38 +01:00
Jon Gadsden a659cce166 move pull request template to correct directory 2021-05-11 07:18:59 +01:00
David Benson 8a2a3a818f
Update stale.yml 2020-11-09 20:50:48 +00:00
David Benson e904e2d1ef
Update stale.yml 2020-11-09 16:03:12 +00:00
David Benson fcdf987c4d
Update stale.yml 2020-05-26 12:50:50 +01:00
David Benson fa0863895a
Update stale.yml 2020-05-14 09:35:00 +01:00
David Benson 2f45f74a37
Bump 2019-10-08 10:37:52 +01:00
David Benson [draw.io] 00060e6691 Stale bot config 2019-07-11 09:41:22 +01:00