@citolab/tspci 2.0.7 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +36 -35
- package/readme.md +4 -4
- package/release-notes.md +12 -1
- package/src/cli.js +7 -1
- package/src/rollup-plugin-live-server.js +3 -1
- package/src/rollup.config.dev.js +2 -2
- package/src/rollup.config.js +0 -4
- package/src/rollup.config.prod.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/tspci",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "an opiniated typescript ims-pci builder with tao integration",
|
|
5
5
|
"author": "patrick <patrick.deklein@cito.nl>",
|
|
6
6
|
"repository": "@citolab/tspci",
|
|
@@ -10,58 +10,59 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"types": "types/index.d.ts",
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@rollup/plugin-alias": "^
|
|
14
|
-
"@rollup/plugin-babel": "^
|
|
15
|
-
"@rollup/plugin-commonjs": "^
|
|
16
|
-
"@rollup/plugin-image": "^
|
|
17
|
-
"@rollup/plugin-json": "^
|
|
18
|
-
"@rollup/plugin-node-resolve": "
|
|
19
|
-
"@rollup/plugin-replace": "^
|
|
20
|
-
"@rollup/plugin-
|
|
21
|
-
"@
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
24
|
-
"@typescript-eslint/
|
|
13
|
+
"@rollup/plugin-alias": "^4.0.2",
|
|
14
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
15
|
+
"@rollup/plugin-commonjs": "^23.0.4",
|
|
16
|
+
"@rollup/plugin-image": "^3.0.1",
|
|
17
|
+
"@rollup/plugin-json": "^5.0.2",
|
|
18
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
19
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
20
|
+
"@rollup/plugin-terser": "^0.2.0",
|
|
21
|
+
"@rollup/plugin-typescript": "^10.0.1",
|
|
22
|
+
"@testing-library/dom": "^8.19.0",
|
|
23
|
+
"@types/node": "^18.11.12",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^5.46.0",
|
|
25
|
+
"@typescript-eslint/parser": "^5.46.0",
|
|
25
26
|
"live-server": "^1.2.2",
|
|
26
|
-
"postcss": "^8.4.
|
|
27
|
-
"postcss-import": "^
|
|
28
|
-
"rollup": "^
|
|
27
|
+
"postcss": "^8.4.19",
|
|
28
|
+
"postcss-import": "^15.1.0",
|
|
29
|
+
"rollup": "^3.7.0",
|
|
29
30
|
"rollup-plugin-copy": "^3.4.0",
|
|
30
31
|
"rollup-plugin-live-server": "^2.0.0",
|
|
31
32
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
32
33
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
33
34
|
"rollup-plugin-postcss": "^4.0.2",
|
|
34
35
|
"rollup-plugin-string": "^3.0.0",
|
|
35
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
36
36
|
"rollup-plugin-watch-assets": "^1.0.1",
|
|
37
|
-
"tailwindcss": "^3.
|
|
37
|
+
"tailwindcss": "^3.2.4"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@rollup/plugin-alias": "^
|
|
41
|
-
"@rollup/plugin-babel": "^
|
|
42
|
-
"@rollup/plugin-commonjs": "^
|
|
43
|
-
"@rollup/plugin-image": "^
|
|
44
|
-
"@rollup/plugin-json": "^
|
|
45
|
-
"@rollup/plugin-node-resolve": "
|
|
46
|
-
"@rollup/plugin-replace": "^
|
|
47
|
-
"@rollup/plugin-
|
|
48
|
-
"@
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@typescript-eslint/
|
|
40
|
+
"@rollup/plugin-alias": "^4.0.2",
|
|
41
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
42
|
+
"@rollup/plugin-commonjs": "^23.0.4",
|
|
43
|
+
"@rollup/plugin-image": "^3.0.1",
|
|
44
|
+
"@rollup/plugin-json": "^5.0.2",
|
|
45
|
+
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
46
|
+
"@rollup/plugin-replace": "^5.0.1",
|
|
47
|
+
"@rollup/plugin-terser": "^0.2.0",
|
|
48
|
+
"@rollup/plugin-typescript": "^10.0.1",
|
|
49
|
+
"@testing-library/dom": "^8.19.0",
|
|
50
|
+
"@types/node": "^18.11.12",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^5.46.0",
|
|
52
|
+
"@typescript-eslint/parser": "^5.46.0",
|
|
52
53
|
"live-server": "^1.2.2",
|
|
53
|
-
"postcss": "^8.4.
|
|
54
|
-
"
|
|
54
|
+
"postcss": "^8.4.19",
|
|
55
|
+
"postcss-import": "^15.1.0",
|
|
56
|
+
"rollup": "^3.7.0",
|
|
55
57
|
"rollup-plugin-copy": "^3.4.0",
|
|
56
58
|
"rollup-plugin-live-server": "^2.0.0",
|
|
57
59
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
58
60
|
"rollup-plugin-node-globals": "^1.4.0",
|
|
59
61
|
"rollup-plugin-postcss": "^4.0.2",
|
|
60
62
|
"rollup-plugin-string": "^3.0.0",
|
|
61
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
62
63
|
"rollup-plugin-watch-assets": "^1.0.1",
|
|
63
|
-
"tailwindcss": "^3.
|
|
64
|
+
"tailwindcss": "^3.2.4"
|
|
64
65
|
},
|
|
65
66
|
"scripts": {},
|
|
66
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "e634ba27698a093ceeaa1821c0b36894d4bc1197"
|
|
67
68
|
}
|
package/readme.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<img src="https://github.com/Citolab/tspci/blob/main/lib/tspci/tspci-development.png" alt="Typescript Pci Builder">
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
|
-
[Release notes](https://github.com/Citolab/tspci/lib/tspci/release-notes.md)
|
|
9
|
+
[Release notes](https://github.com/Citolab/tspci/blob/main/lib/tspci/release-notes.md)
|
|
10
10
|
|
|
11
11
|
## ✨ Features <a name="features"></a>
|
|
12
12
|
|
|
@@ -139,7 +139,7 @@ Examples package.json scripts
|
|
|
139
139
|
|
|
140
140
|
## 🛣 What's next
|
|
141
141
|
|
|
142
|
-
Use one of the [examples](https://github.com/Citolab/tspci-
|
|
142
|
+
Use one of the [examples](https://github.com/Citolab/tspci-examples) to get a headstart
|
|
143
143
|
|
|
144
144
|
Or read further how we build our PCIs
|
|
145
145
|
|
|
@@ -319,7 +319,7 @@ export const useMousePosition = () => {
|
|
|
319
319
|
Tao adds some lifecycle methods which you can implement and we supply an extended interfaee on top of the IMS one.
|
|
320
320
|
|
|
321
321
|
More info, see our extension
|
|
322
|
-
- [github](
|
|
322
|
+
- [github](https://github.com/Citolab/tspci/blob/main/lib/tspci-tao)
|
|
323
323
|
- [@citolab/tspci-tao](https://www.npmjs.com/package/@citolab/tspci-tao)
|
|
324
324
|
|
|
325
325
|
|
|
@@ -335,4 +335,4 @@ If you want your platform to be support, [contact us](mailto://getinspiredbycit
|
|
|
335
335
|
|
|
336
336
|
## License
|
|
337
337
|
|
|
338
|
-
[GPLv3](
|
|
338
|
+
[GPLv3](https://github.com/Citolab/tspci/blob/main/LICENSE)
|
package/release-notes.md
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
# 2.1.0
|
|
3
|
+
|
|
4
|
+
- tailwind picks up correct class changes
|
|
5
|
+
- added ROLLUP_WATCH=true to watch task in rollup
|
|
6
|
+
- upgraded nearly all packages
|
|
7
|
+
|
|
8
|
+
# 2.0.0
|
|
2
9
|
|
|
3
10
|
- added customized development templates in plugins
|
|
4
11
|
- removed tooltips development environment pci
|
|
5
12
|
- fixed storing and comparing responses
|
|
6
13
|
- fixed reload test and restoring state
|
|
7
14
|
|
|
15
|
+
# 1.5.9
|
|
16
|
+
|
|
17
|
+
- fixed broken images in readme
|
|
18
|
+
|
|
8
19
|
## 1.5.8
|
|
9
20
|
|
|
10
21
|
- fixed command line args --target not picked up by cli
|
package/src/cli.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import loadConfigFile from "rollup/dist/loadConfigFile.js";
|
|
2
|
+
import { loadConfigFile } from "rollup/dist/loadConfigFile.js";
|
|
3
3
|
import { rollup, watch } from "rollup";
|
|
4
4
|
import path from "path";
|
|
5
5
|
import fs from "fs";
|
|
6
6
|
|
|
7
7
|
const args = process.argv.slice(2);
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
|
|
9
11
|
// PK: retreive dirname, most of the time automaticly inserted in es modules
|
|
10
12
|
import { fileURLToPath } from "url";
|
|
11
13
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -19,6 +21,10 @@ const NODE_MODULES = path.join(process.cwd(), "node_modules");
|
|
|
19
21
|
const watchBuild = (devServer = false, target = 'IMS') => {
|
|
20
22
|
const rollupFile = devServer ? "rollup.config.dev.js" : "rollup.config.js";
|
|
21
23
|
|
|
24
|
+
// PK: this ensures tailwind watches changes
|
|
25
|
+
// PK: See link here: https://github.com/tailwindlabs/tailwindcss/issues/7063
|
|
26
|
+
process.env.ROLLUP_WATCH = "true"
|
|
27
|
+
|
|
22
28
|
fs.rmSync(PACKAGE_DIST_PATH, { recursive: true, force: true });
|
|
23
29
|
!fs.existsSync(PACKAGE_DIST_PATH) && fs.mkdirSync(PACKAGE_DIST_PATH);
|
|
24
30
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// PK: made a pull request for this https://bitbucket.org/robhicks55/rollup-plugin-live-server/pull-requests/
|
|
2
2
|
// WATCH argument added to live server, else this package could just be used
|
|
3
3
|
// https://www.npmjs.com/package/rollup-plugin-live-server
|
|
4
|
-
const ls = require("live-server");
|
|
4
|
+
// const ls = require("live-server");
|
|
5
|
+
|
|
6
|
+
import ls from "live-server";
|
|
5
7
|
|
|
6
8
|
export function liveServer(options = {}) {
|
|
7
9
|
const directories = options.directories || [];
|
package/src/rollup.config.dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import watchAssets from 'rollup-plugin-watch-assets';
|
|
2
2
|
// PK: not the official npm package, but a copy, needed watch functinoality
|
|
3
|
-
import { liveServer } from "./rollup-plugin-live-server";
|
|
3
|
+
import { liveServer } from "./rollup-plugin-live-server.js";
|
|
4
4
|
|
|
5
5
|
import path from "path";
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ const livesrvr = liveServer({
|
|
|
17
17
|
|
|
18
18
|
const watchassets = watchAssets({ assets: ['./src/**/*.json', './src/**/*.svg', './src/**/*.png'] })
|
|
19
19
|
|
|
20
|
-
import rollupConfig from "./rollup.config";
|
|
20
|
+
import rollupConfig from "./rollup.config.js";
|
|
21
21
|
|
|
22
22
|
const newRollupConfig = {
|
|
23
23
|
...rollupConfig,
|
package/src/rollup.config.js
CHANGED
|
@@ -11,7 +11,6 @@ import json from "@rollup/plugin-json";
|
|
|
11
11
|
import copy from "rollup-plugin-copy"; // copying assets to the assets folder in dist ( not for PCI, those assets are bundled )
|
|
12
12
|
import builtins from 'rollup-plugin-node-builtins'; // was fix for including pixi for QTI component development, see: https://github.com/rollup/rollup/issues/3230#issuecomment-585416594
|
|
13
13
|
import globals from 'rollup-plugin-node-globals'; // was fix for including pixi for QTI component development, see: https://github.com/rollup/rollup/issues/3230#issuecomment-585416594
|
|
14
|
-
// import litTailwind from "rollup-plugin-lit-tailwindcss3"; // Qti development, custom components can include tailwind classes
|
|
15
14
|
|
|
16
15
|
import fs from "fs";
|
|
17
16
|
import path from "path";
|
|
@@ -64,9 +63,6 @@ export default {
|
|
|
64
63
|
tsconfig: `${PACKAGE_ROOT_PATH}/tsconfig.json`,
|
|
65
64
|
declarationDir: `${PACKAGE_ROOT_PATH}/dist`
|
|
66
65
|
}),
|
|
67
|
-
// litTailwind({
|
|
68
|
-
// include: "src/components/**/*.ts",
|
|
69
|
-
// }),
|
|
70
66
|
postcss({
|
|
71
67
|
extract: false, // not extracting embeds the js in the build, which is what we need for shipping it
|
|
72
68
|
modules: false, // tried modules at first, could work, but not with html in the qti file
|