@thefittingroom/sdk 0.0.1-alpha.10 → 0.0.5

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,75 +1,37 @@
1
1
  {
2
2
  "name": "@thefittingroom/sdk",
3
- "version": "0.0.1-alpha.10",
3
+ "version": "0.0.5",
4
4
  "description": "the fitting room SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/esm/index.js",
7
7
  "access": "public",
8
8
  "scripts": {
9
- "build:rollup": "rm -rf dist && rollup --config",
10
- "dev:rollup": "rm -rf dist && rollup --config -w",
11
- "build": "rm -rf dist && rollup --config",
12
- "build:main": "tsc -p tsconfig.json",
13
- "build:module": "tsc -p tsconfig.module.json",
14
- "fix": "run-s fix:*",
15
- "fix:prettier": "prettier \"src/**/*.ts\" --write",
16
- "fix:lint": "eslint src --ext .ts --fix",
17
- "test": "run-s build test:*",
18
- "test:lint": "eslint src --ext .ts",
19
- "test:prettier": "prettier \"src/**/*.ts\" --list-different",
20
- "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
21
- "test:unit": "nyc --silent ava",
22
- "check-cli": "run-s test diff-integration-tests check-integration-tests",
23
- "check-integration-tests": "run-s check-integration-test:*",
24
- "diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'",
25
- "watch:build": "tsc -p tsconfig.json -w",
26
- "watch:test": "nyc --silent ava --watch",
27
- "doc": "run-s doc:html && open-cli build/docs/index.html",
28
- "doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs",
29
- "doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json",
30
- "doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
31
- "version": "standard-version",
32
- "reset-hard": "git clean -dfx && git reset --hard && yarn",
33
- "prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish",
9
+ "clean": "rm -rf dist",
10
+ "clean:all": "rm -rf dist && rm -rf build && rm -rf .rollup.cache",
11
+ "build": "npm run clean && rollup --config",
12
+ "watch": "npm run clean && rollup --config -w",
34
13
  "postinstall": "patch-package"
35
14
  },
36
15
  "engines": {
37
16
  "node": ">=10"
38
17
  },
39
18
  "dependencies": {
19
+ "dotenv": "^16.3.1",
40
20
  "firebase": "^9.10.0",
41
21
  "patch-package": "^6.5.0"
42
22
  },
43
23
  "devDependencies": {
44
- "@ava/typescript": "^1.1.1",
45
- "@istanbuljs/nyc-config-typescript": "^1.0.1",
46
- "@rollup/plugin-commonjs": "^22.0.2",
47
24
  "@rollup/plugin-node-resolve": "^14.1.0",
48
25
  "@rollup/plugin-typescript": "^8.5.0",
49
26
  "@trivago/prettier-plugin-sort-imports": "^4.1.1",
50
- "@typescript-eslint/eslint-plugin": "^5.59.5",
51
- "@typescript-eslint/parser": "^5.59.5",
52
- "codecov": "^3.5.0",
53
- "cspell": "^4.1.0",
54
- "cz-conventional-changelog": "^3.3.0",
55
- "eslint": "^7.8.0",
56
- "eslint-config-prettier": "^6.11.0",
57
- "eslint-plugin-eslint-comments": "^3.2.0",
58
- "eslint-plugin-functional": "^3.0.2",
59
- "eslint-plugin-import": "^2.22.0",
60
- "gh-pages": "^3.1.0",
61
27
  "live-server": "^1.2.2",
62
- "npm-run-all": "^4.1.5",
63
- "open-cli": "^7.2.0",
64
28
  "prettier": "^2.8.8",
65
29
  "rollup": "^2.79.1",
66
30
  "rollup-plugin-dotenv": "^0.4.0",
67
31
  "rollup-plugin-styles": "^4.0.0",
68
32
  "rollup-plugin-terser": "^7.0.2",
69
- "standard-version": "^9.0.0",
70
33
  "ts-node": "^9.0.0",
71
34
  "tslib": "^2.4.0",
72
- "typedoc": "^0.24.6",
73
35
  "typescript": "^4.0.2"
74
36
  }
75
37
  }
package/.env.dev DELETED
@@ -1,14 +0,0 @@
1
- <!-- firebase configs start -->
2
- FIREBASE_API_KEY=AIzaSyDfjBWzpmzb-mhGN8VSURxzLg6nkzmKUD8
3
- FIREBASE_AUTH_DOMAIN=fittingroom-dev-5d248.firebaseapp.com
4
- FIREBASE_PROJECT_ID=fittingroom-dev-5d248
5
- FIREBASE_STORAGE_BUCKET=fittingroom-dev-5d248.appspot.com
6
- FIREBASE_MESSAGING_SENDER_ID=2298664147
7
- FIREBASE_APP_ID=1:2298664147:web:340bda75cd5d25f3997026
8
- FIREBASE_MEASUREMENT_ID=G-B7GDQ1Y9LL
9
- <!-- firebase configs ends -->
10
- API_ENDPOINT=https://tfr.dev.thefittingroom.xyz/v1
11
- LANGUAGE_URL=https://assets.dev.thefittingroom.xyz/shop-sdk/${GITHUB_SHA_7}/languages
12
- ASSETS_URL=https://assets.dev.thefittingroom.xyz/shop-sdk/assets
13
- VTO_TIMEOUT_MS=120000
14
- AVATAR_TIMEOUT_MS=120000
package/.env.prod DELETED
@@ -1,14 +0,0 @@
1
- <!-- firebase configs start -->
2
- FIREBASE_API_KEY=AIzaSyA3kQ6w1vkA9l9lgY0nNACVPXe-QmP5T1Y
3
- FIREBASE_AUTH_DOMAIN=fittingroom-prod.firebaseapp.com
4
- FIREBASE_PROJECT_ID=fittingroom-prod
5
- FIREBASE_STORAGE_BUCKET=fittingroom-prod.appspot.com
6
- FIREBASE_MESSAGING_SENDER_ID=965656825574
7
- FIREBASE_APP_ID=1:965656825574:web:933493cddc73213bd43527
8
- FIREBASE_MEASUREMENT_ID=G-XH9VV5N6EW
9
- <!-- firebase configs ends -->
10
- API_ENDPOINT=https://tfr.p.thefittingroom.xyz/v1
11
- LANGUAGE_URL=https://assets.p.thefittingroom.xyz/shop-sdk/${GITHUB_REF}/languages
12
- ASSETS_URL=https://assets.p.thefittingroom.xyz/shop-sdk/assets
13
- VTO_TIMEOUT_MS=120000
14
- AVATAR_TIMEOUT_MS=120000