@fefade/common 1.0.0 → 1.0.1
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/.changeset/README.md +8 -0
- package/.changeset/config.json +11 -0
- package/.github/workflows/changesets.yml +41 -0
- package/.prettierignore +11 -0
- package/.prettierrc +7 -0
- package/dist/images/icon-1024.png +0 -0
- package/dist/images/icon-128.png +0 -0
- package/dist/images/icon-16.png +0 -0
- package/dist/images/icon-192.png +0 -0
- package/dist/images/icon-256.png +0 -0
- package/dist/images/icon-32.png +0 -0
- package/dist/images/icon-48.png +0 -0
- package/dist/images/icon-512.png +0 -0
- package/dist/images/icon-64.png +0 -0
- package/dist/index.d.mts +19 -4
- package/dist/index.d.ts +19 -4
- package/dist/index.js +50 -2
- package/dist/index.mjs +29 -2
- package/package.json +10 -8
- package/src/constants.ts +12 -0
- package/src/images/icon-1024.png +0 -0
- package/src/images/icon-128.png +0 -0
- package/src/images/icon-16.png +0 -0
- package/src/images/icon-180.png +0 -0
- package/src/images/icon-192.png +0 -0
- package/src/images/icon-256.png +0 -0
- package/src/images/icon-32.png +0 -0
- package/src/images/icon-48.png +0 -0
- package/src/images/icon-512.png +0 -0
- package/src/images/icon-64.png +0 -0
- package/src/index.ts +1 -0
- package/src/types.d.ts +14 -0
- package/tsconfig.json +12 -0
- package/tsup.config.ts +26 -0
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- /package/dist/{icon-180-RUMMBWKA.png → images/icon-180.png} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changesets
|
|
2
|
+
|
|
3
|
+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
|
|
4
|
+
with multi-package repos, or single-package repos to help you version and publish your code. You can
|
|
5
|
+
find the full documentation for it [in our repository](https://github.com/changesets/changesets).
|
|
6
|
+
|
|
7
|
+
We have a quick list of common questions to get you started engaging with this project in
|
|
8
|
+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
|
|
3
|
+
"changelog": "@changesets/cli/changelog",
|
|
4
|
+
"commit": false,
|
|
5
|
+
"fixed": [],
|
|
6
|
+
"linked": [],
|
|
7
|
+
"access": "restricted",
|
|
8
|
+
"baseBranch": "main",
|
|
9
|
+
"updateInternalDependencies": "patch",
|
|
10
|
+
"ignore": []
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Changesets
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
env:
|
|
9
|
+
CI: true
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
version:
|
|
13
|
+
timeout-minutes: 15
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code repository
|
|
17
|
+
uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Setup pnpm
|
|
20
|
+
uses: pnpm/action-setup@v4
|
|
21
|
+
with:
|
|
22
|
+
version: 10.32.1
|
|
23
|
+
|
|
24
|
+
- name: Setup node.js
|
|
25
|
+
uses: actions/setup-node@v4
|
|
26
|
+
with:
|
|
27
|
+
node-version: 22.13.1
|
|
28
|
+
cache: "pnpm"
|
|
29
|
+
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: pnpm install
|
|
32
|
+
|
|
33
|
+
- name: Create and publish versions
|
|
34
|
+
uses: changesets/action@v1
|
|
35
|
+
with:
|
|
36
|
+
commit: "chore: update versions"
|
|
37
|
+
title: "chore: update versions"
|
|
38
|
+
publish: pnpm ci:publish
|
|
39
|
+
env:
|
|
40
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
41
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
declare const ORG_NAME = "Fefade";
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
2
|
+
declare const PREFIX = "ff";
|
|
3
|
+
declare const DEFAULT_LOCALE = "en";
|
|
4
|
+
declare const SUPPORT_EMAIL = "support@fefade.com";
|
|
5
|
+
declare const URLS: {
|
|
6
|
+
base: string;
|
|
7
|
+
auth: string;
|
|
8
|
+
email: string;
|
|
9
|
+
play_store: string;
|
|
10
|
+
github: string;
|
|
5
11
|
};
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
declare const constants_DEFAULT_LOCALE: typeof DEFAULT_LOCALE;
|
|
14
|
+
declare const constants_ORG_NAME: typeof ORG_NAME;
|
|
15
|
+
declare const constants_PREFIX: typeof PREFIX;
|
|
16
|
+
declare const constants_SUPPORT_EMAIL: typeof SUPPORT_EMAIL;
|
|
17
|
+
declare const constants_URLS: typeof URLS;
|
|
18
|
+
declare namespace constants {
|
|
19
|
+
export { constants_DEFAULT_LOCALE as DEFAULT_LOCALE, constants_ORG_NAME as ORG_NAME, constants_PREFIX as PREFIX, constants_SUPPORT_EMAIL as SUPPORT_EMAIL, constants_URLS as URLS };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { constants as Constants };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
declare const ORG_NAME = "Fefade";
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
|
|
2
|
+
declare const PREFIX = "ff";
|
|
3
|
+
declare const DEFAULT_LOCALE = "en";
|
|
4
|
+
declare const SUPPORT_EMAIL = "support@fefade.com";
|
|
5
|
+
declare const URLS: {
|
|
6
|
+
base: string;
|
|
7
|
+
auth: string;
|
|
8
|
+
email: string;
|
|
9
|
+
play_store: string;
|
|
10
|
+
github: string;
|
|
5
11
|
};
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
declare const constants_DEFAULT_LOCALE: typeof DEFAULT_LOCALE;
|
|
14
|
+
declare const constants_ORG_NAME: typeof ORG_NAME;
|
|
15
|
+
declare const constants_PREFIX: typeof PREFIX;
|
|
16
|
+
declare const constants_SUPPORT_EMAIL: typeof SUPPORT_EMAIL;
|
|
17
|
+
declare const constants_URLS: typeof URLS;
|
|
18
|
+
declare namespace constants {
|
|
19
|
+
export { constants_DEFAULT_LOCALE as DEFAULT_LOCALE, constants_ORG_NAME as ORG_NAME, constants_PREFIX as PREFIX, constants_SUPPORT_EMAIL as SUPPORT_EMAIL, constants_URLS as URLS };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { constants as Constants };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,50 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
Constants: () => constants_exports
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
|
|
27
|
+
// src/constants.ts
|
|
28
|
+
var constants_exports = {};
|
|
29
|
+
__export(constants_exports, {
|
|
30
|
+
DEFAULT_LOCALE: () => DEFAULT_LOCALE,
|
|
31
|
+
ORG_NAME: () => ORG_NAME,
|
|
32
|
+
PREFIX: () => PREFIX,
|
|
33
|
+
SUPPORT_EMAIL: () => SUPPORT_EMAIL,
|
|
34
|
+
URLS: () => URLS
|
|
35
|
+
});
|
|
36
|
+
var ORG_NAME = "Fefade";
|
|
37
|
+
var PREFIX = "ff";
|
|
38
|
+
var DEFAULT_LOCALE = "en";
|
|
39
|
+
var SUPPORT_EMAIL = "support@fefade.com";
|
|
40
|
+
var URLS = {
|
|
41
|
+
base: "https://fefade.com",
|
|
42
|
+
auth: "https://auth.fefade.com",
|
|
43
|
+
email: `mailto:${SUPPORT_EMAIL}`,
|
|
44
|
+
play_store: "https://play.google.com/store/apps/dev?id=7701571155946352525",
|
|
45
|
+
github: "https://github.com/fefade"
|
|
46
|
+
};
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
Constants
|
|
50
|
+
});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
// src/constants.ts
|
|
8
|
+
var constants_exports = {};
|
|
9
|
+
__export(constants_exports, {
|
|
10
|
+
DEFAULT_LOCALE: () => DEFAULT_LOCALE,
|
|
11
|
+
ORG_NAME: () => ORG_NAME,
|
|
12
|
+
PREFIX: () => PREFIX,
|
|
13
|
+
SUPPORT_EMAIL: () => SUPPORT_EMAIL,
|
|
14
|
+
URLS: () => URLS
|
|
15
|
+
});
|
|
16
|
+
var ORG_NAME = "Fefade";
|
|
17
|
+
var PREFIX = "ff";
|
|
18
|
+
var DEFAULT_LOCALE = "en";
|
|
19
|
+
var SUPPORT_EMAIL = "support@fefade.com";
|
|
20
|
+
var URLS = {
|
|
21
|
+
base: "https://fefade.com",
|
|
22
|
+
auth: "https://auth.fefade.com",
|
|
23
|
+
email: `mailto:${SUPPORT_EMAIL}`,
|
|
24
|
+
play_store: "https://play.google.com/store/apps/dev?id=7701571155946352525",
|
|
25
|
+
github: "https://github.com/fefade"
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
constants_exports as Constants
|
|
29
|
+
};
|
package/package.json
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fefade/common",
|
|
3
3
|
"description": "Shared images and constants",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
|
-
"main": "dist/index.
|
|
10
|
-
"module": "dist/index.
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"module": "dist/index.mjs",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"files": [
|
|
13
|
-
"dist"
|
|
14
|
-
],
|
|
15
12
|
"exports": {
|
|
16
13
|
".": {
|
|
17
|
-
"import": "./dist/index.
|
|
18
|
-
"require": "./dist/index.
|
|
14
|
+
"import": "./dist/index.mjs",
|
|
15
|
+
"require": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./images/*": {
|
|
18
|
+
"import": "./dist/images/*",
|
|
19
|
+
"require": "./dist/images/*"
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
"repository": {
|
|
@@ -31,6 +32,7 @@
|
|
|
31
32
|
"keywords": [],
|
|
32
33
|
"devDependencies": {
|
|
33
34
|
"@changesets/cli": "^2.30.0",
|
|
35
|
+
"@types/node": "^25.5.2",
|
|
34
36
|
"prettier": "^3.8.1",
|
|
35
37
|
"tsup": "^8.5.1",
|
|
36
38
|
"typescript": "^5.9.3"
|
package/src/constants.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const ORG_NAME = "Fefade"
|
|
2
|
+
export const PREFIX = "ff"
|
|
3
|
+
export const DEFAULT_LOCALE = "en"
|
|
4
|
+
export const SUPPORT_EMAIL = "support@fefade.com"
|
|
5
|
+
|
|
6
|
+
export const URLS = {
|
|
7
|
+
base: "https://fefade.com",
|
|
8
|
+
auth: "https://auth.fefade.com",
|
|
9
|
+
email: `mailto:${SUPPORT_EMAIL}`,
|
|
10
|
+
play_store: "https://play.google.com/store/apps/dev?id=7701571155946352525",
|
|
11
|
+
github: "https://github.com/fefade"
|
|
12
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Constants from "./constants"
|
package/src/types.d.ts
ADDED
package/tsconfig.json
ADDED
package/tsup.config.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineConfig } from "tsup"
|
|
2
|
+
import { join, resolve } from "path"
|
|
3
|
+
import { copyFileSync, existsSync, mkdirSync, readdirSync } from "fs"
|
|
4
|
+
|
|
5
|
+
export default defineConfig({
|
|
6
|
+
entry: ["src/index.ts"],
|
|
7
|
+
format: ["esm", "cjs"],
|
|
8
|
+
dts: true,
|
|
9
|
+
clean: true,
|
|
10
|
+
outDir: "dist",
|
|
11
|
+
esbuildOptions(options) {
|
|
12
|
+
options.target = "esnext"
|
|
13
|
+
},
|
|
14
|
+
onSuccess: async () => {
|
|
15
|
+
const srcImages = resolve("src/images")
|
|
16
|
+
const distImages = resolve("dist/images")
|
|
17
|
+
|
|
18
|
+
if (!existsSync(distImages)) {
|
|
19
|
+
mkdirSync(distImages, { recursive: true })
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
for (const file of readdirSync(srcImages)) {
|
|
23
|
+
copyFileSync(join(srcImages, file), join(distImages, file))
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
})
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/constants.ts"],"sourcesContent":["import icon180 from \"./images/icon-180.png\"\n\nexport * from \"./constants\"\n\nexport const images = {\n\ticon180\n}\n","export const ORG_NAME = \"Fefade\"\n"],"mappings":"yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,EAAA,WAAAC,IAAA,eAAAC,EAAAJ,G,gCCAO,IAAMK,EAAW,SDIjB,IAAMC,EAAS,CACrB,QAAAC,CACD","names":["index_exports","__export","ORG_NAME","images","__toCommonJS","ORG_NAME","images","icon_180_default"]}
|
package/dist/index.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/constants.ts","../src/index.ts"],"sourcesContent":["export const ORG_NAME = \"Fefade\"\n","import icon180 from \"./images/icon-180.png\"\n\nexport * from \"./constants\"\n\nexport const images = {\n\ticon180\n}\n"],"mappings":"gCAAO,IAAMA,EAAW,SCIjB,IAAMC,EAAS,CACrB,QAAAC,CACD","names":["ORG_NAME","images","icon_180_default"]}
|
|
File without changes
|