@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@citolab/tspci",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
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",
package/readme.md CHANGED
@@ -21,12 +21,12 @@
21
21
 
22
22
  ## 🔧 Installation & Setup
23
23
 
24
- 1️⃣ **Install** by running: `npm i -D @citolab/tspci`
24
+ 1️. **Install** by running: `npm i -D @citolab/tspci`
25
25
 
26
- 2️⃣ **Set up** your `package.json`:
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
- // src/config.json
266
+ `// src/config.json`
267
267
  {
268
268
  "buttonText": "Calculate",
269
- "sum1" : "$1 * 12 + 3",
270
- "sum2" : "$1 * 4 + 53",
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://github.com/Citolab/qti-pci-bundler/tree/main/lib/tspci-tao)
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
- [GPL3](https://www.gnu.org/licenses/gpl-3.0.en.html)
330
- [rollup]: https://github.com/rollup/rollup
328
+ [GPLv3](./LICENSE)
@@ -0,0 +1,7 @@
1
+ ## 1.5.8
2
+
3
+ - fixed command line args --target not picked up by cli
4
+
5
+ ## 1.5.7
6
+
7
+ Initial release
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("-target") >= 0;
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");