@leapfrog/interactive-canvas 2.0.8-beta → 2.0.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 +30 -30
- package/readme.md +60 -60
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@leapfrog/interactive-canvas",
|
|
3
|
-
"version": "2.0.8
|
|
4
|
-
"description": "Leapfrog interactive canvas",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist"
|
|
7
|
-
],
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"main": "dist/interactive-canvas.js",
|
|
10
|
-
"module": "dist/interactive-canvas.es.js",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "rollup -c",
|
|
13
|
-
"watch": "rollup -cw"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@types/fabric": "^4.2.0",
|
|
17
|
-
"@types/lodash": "^4.14.153",
|
|
18
|
-
"typescript": "^3.5.3"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"fabric": "^5.2.4",
|
|
22
|
-
"lodash": "^4.17.15",
|
|
23
|
-
"rollup": "^2.13.0",
|
|
24
|
-
"rollup-plugin-typescript2": "^0.27.1",
|
|
25
|
-
"rxjs": "^6.5.5",
|
|
26
|
-
"ts-optchain": "^0.1.8"
|
|
27
|
-
},
|
|
28
|
-
"author": "",
|
|
29
|
-
"license": "UNLICENSED"
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@leapfrog/interactive-canvas",
|
|
3
|
+
"version": "2.0.8",
|
|
4
|
+
"description": "Leapfrog interactive canvas",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"main": "dist/interactive-canvas.js",
|
|
10
|
+
"module": "dist/interactive-canvas.es.js",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"watch": "rollup -cw"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/fabric": "^4.2.0",
|
|
17
|
+
"@types/lodash": "^4.14.153",
|
|
18
|
+
"typescript": "^3.5.3"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"fabric": "^5.2.4",
|
|
22
|
+
"lodash": "^4.17.15",
|
|
23
|
+
"rollup": "^2.13.0",
|
|
24
|
+
"rollup-plugin-typescript2": "^0.27.1",
|
|
25
|
+
"rxjs": "^6.5.5",
|
|
26
|
+
"ts-optchain": "^0.1.8"
|
|
27
|
+
},
|
|
28
|
+
"author": "",
|
|
29
|
+
"license": "UNLICENSED"
|
|
30
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
# Leapfrog Interactive Canvas #
|
|
2
|
-
|
|
3
|
-
A set of APIs wrapping the fabric.js library, providing Leapfrog-specific behavior and interactions.
|
|
4
|
-
|
|
5
|
-
### Installing
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm install --save @leapfrog/interactive-canvas
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
### Installing (Node)
|
|
12
|
-
|
|
13
|
-
If running in node, you additionally need `jsdom`:
|
|
14
|
-
|
|
15
|
-
```
|
|
16
|
-
npm install --save jsdom
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Building
|
|
20
|
-
|
|
21
|
-
npm run build
|
|
22
|
-
|
|
23
|
-
or
|
|
24
|
-
|
|
25
|
-
npm run watch
|
|
26
|
-
|
|
27
|
-
### Using library in another Project
|
|
28
|
-
|
|
29
|
-
`npm install @leapfrog/interactive-canvas`
|
|
30
|
-
|
|
31
|
-
### Linking for local development
|
|
32
|
-
|
|
33
|
-
You can use `npm link` to see changes to the library immediately in a linked project.
|
|
34
|
-
|
|
35
|
-
Add the following lines to the `package.json` `scripts` config in the project that uses this library:
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
{
|
|
39
|
-
"scripts": {
|
|
40
|
-
"link:lic": "npm link @leapfrog/interactive-canvas",
|
|
41
|
-
"upgrade:lic": "npm install @leapfrog/interactive-canvas@latest --save"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
* In this project: `npm link`
|
|
47
|
-
* In the calling project: `npm run link:lic`
|
|
48
|
-
* In this project: `npm run watch`
|
|
49
|
-
|
|
50
|
-
Changes in the library will be visible in the calling project.
|
|
51
|
-
|
|
52
|
-
Once complete, publish the changes then run `npm run upgrade:lic` to get the latest published version of the library in the calling project.
|
|
53
|
-
|
|
54
|
-
### Publishing
|
|
55
|
-
|
|
56
|
-
The `.npmrc` file contains the access token needed to publish to the `@leapfrog` npm repo.
|
|
57
|
-
|
|
58
|
-
* `npm version <version>` or `npm version <version>-beta.0`
|
|
59
|
-
* `npm run build`
|
|
60
|
-
* `npm publish` or `npm publish --tag beta`
|
|
1
|
+
# Leapfrog Interactive Canvas #
|
|
2
|
+
|
|
3
|
+
A set of APIs wrapping the fabric.js library, providing Leapfrog-specific behavior and interactions.
|
|
4
|
+
|
|
5
|
+
### Installing
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install --save @leapfrog/interactive-canvas
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Installing (Node)
|
|
12
|
+
|
|
13
|
+
If running in node, you additionally need `jsdom`:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
npm install --save jsdom
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Building
|
|
20
|
+
|
|
21
|
+
npm run build
|
|
22
|
+
|
|
23
|
+
or
|
|
24
|
+
|
|
25
|
+
npm run watch
|
|
26
|
+
|
|
27
|
+
### Using library in another Project
|
|
28
|
+
|
|
29
|
+
`npm install @leapfrog/interactive-canvas`
|
|
30
|
+
|
|
31
|
+
### Linking for local development
|
|
32
|
+
|
|
33
|
+
You can use `npm link` to see changes to the library immediately in a linked project.
|
|
34
|
+
|
|
35
|
+
Add the following lines to the `package.json` `scripts` config in the project that uses this library:
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"scripts": {
|
|
40
|
+
"link:lic": "npm link @leapfrog/interactive-canvas",
|
|
41
|
+
"upgrade:lic": "npm install @leapfrog/interactive-canvas@latest --save"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
* In this project: `npm link`
|
|
47
|
+
* In the calling project: `npm run link:lic`
|
|
48
|
+
* In this project: `npm run watch`
|
|
49
|
+
|
|
50
|
+
Changes in the library will be visible in the calling project.
|
|
51
|
+
|
|
52
|
+
Once complete, publish the changes then run `npm run upgrade:lic` to get the latest published version of the library in the calling project.
|
|
53
|
+
|
|
54
|
+
### Publishing
|
|
55
|
+
|
|
56
|
+
The `.npmrc` file contains the access token needed to publish to the `@leapfrog` npm repo.
|
|
57
|
+
|
|
58
|
+
* `npm version <version>` or `npm version <version>-beta.0`
|
|
59
|
+
* `npm run build`
|
|
60
|
+
* `npm publish` or `npm publish --tag beta`
|