@citolab/tspci 1.5.7 → 1.5.8
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 +1 -1
- package/readme.md +9 -11
- package/release-notes.md +7 -0
- package/src/cli.js +2 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
|
|
22
22
|
## 🔧 Installation & Setup
|
|
23
23
|
|
|
24
|
-
1
|
|
24
|
+
1️. **Install** by running: `npm i -D @citolab/tspci`
|
|
25
25
|
|
|
26
|
-
2
|
|
26
|
+
2️. **Set up** your `package.json`:
|
|
27
27
|
|
|
28
|
+
`// package.json`
|
|
28
29
|
```json
|
|
29
|
-
// package.json
|
|
30
30
|
{
|
|
31
31
|
"name": "@citolab/hello-world",
|
|
32
32
|
"description": "Hello world pci",
|
|
@@ -193,8 +193,8 @@ Appending css to shadowdom will prevent styles leaking into your player
|
|
|
193
193
|
### Use modern css
|
|
194
194
|
add `postcss.config.js` with autoprefixer
|
|
195
195
|
|
|
196
|
-
```json
|
|
197
196
|
// postcss.config.js
|
|
197
|
+
```js
|
|
198
198
|
module.exports = {
|
|
199
199
|
plugins: [
|
|
200
200
|
require('postcss-import'),
|
|
@@ -263,11 +263,11 @@ dispatch<{ x: number }>("ADD_ACTION", { x: +inputValue });
|
|
|
263
263
|
Use properties in config.json to let authors configure your PCI
|
|
264
264
|
Also used in the TAO export for configuring PCIs in TAO
|
|
265
265
|
```json
|
|
266
|
-
|
|
266
|
+
`// src/config.json`
|
|
267
267
|
{
|
|
268
268
|
"buttonText": "Calculate",
|
|
269
|
-
"sum1" : "$1 *
|
|
270
|
-
"sum2" : "$1 *
|
|
269
|
+
"sum1" : "$1 * 14 + 1",
|
|
270
|
+
"sum2" : "$1 * 2 + 21",
|
|
271
271
|
"tableSize" : "4"
|
|
272
272
|
}
|
|
273
273
|
```
|
|
@@ -310,7 +310,7 @@ export const useMousePosition = () => {
|
|
|
310
310
|
Tao adds some lifecycle methods which you can implement and we supply an extended interfaee on top of the IMS one.
|
|
311
311
|
|
|
312
312
|
More info, see our extension
|
|
313
|
-
[@citolab/tspci-tao](https://
|
|
313
|
+
[@citolab/tspci-tao](https://www.npmjs.com/package/@citolab/tspci-tao)
|
|
314
314
|
|
|
315
315
|
|
|
316
316
|
## Roadmap
|
|
@@ -320,11 +320,9 @@ More info, see our extension
|
|
|
320
320
|
- Create PCI with Vue
|
|
321
321
|
- Create PCI with Haunted
|
|
322
322
|
|
|
323
|
-
|
|
324
323
|
If you want your platform to be support, [contact us](mailto://getinspiredbycitolab@gmail.com)
|
|
325
324
|
|
|
326
325
|
|
|
327
326
|
## License
|
|
328
327
|
|
|
329
|
-
[
|
|
330
|
-
[rollup]: https://github.com/rollup/rollup
|
|
328
|
+
[GPLv3](./LICENSE)
|
package/release-notes.md
ADDED
package/src/cli.js
CHANGED
|
@@ -91,8 +91,8 @@ const prodBuild = async () => {
|
|
|
91
91
|
const run = async () => {
|
|
92
92
|
const help = args.indexOf("--help") >= 0 || args.indexOf("-h") >= 0;
|
|
93
93
|
const watch = args.indexOf("--watch") >= 0 || args.indexOf("-w") >= 0;
|
|
94
|
-
const dev = args.indexOf("--dev") >= 0 || args.indexOf("-d") >= 0
|
|
95
|
-
const target = args.indexOf("
|
|
94
|
+
const dev = args.indexOf("--dev") >= 0 || args.indexOf("-d") >= 0;
|
|
95
|
+
const target = args.indexOf("--target") >= 0 || args.indexOf("-t") >= 0;
|
|
96
96
|
|
|
97
97
|
if (help) {
|
|
98
98
|
console.log("--help -h list these commands");
|