@vnejs/plugins.font.montserrat 0.1.0 → 0.1.2

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.
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { injectStyles } from "@vnejs/uis.utils";
2
+ import fontUrl from "../montserrat.ttf";
3
+ injectStyles(`
4
+ @font-face {
5
+ font-family: Montserrat;
6
+ src: url('${fontUrl}');
7
+ }
8
+ `);
package/package.json CHANGED
@@ -1,21 +1,39 @@
1
1
  {
2
2
  "name": "@vnejs/plugins.font.montserrat",
3
- "version": "0.1.0",
4
- "main": "index.js",
3
+ "version": "0.1.2",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src",
18
+ "montserrat.ttf",
19
+ "tsconfig.json"
20
+ ],
5
21
  "scripts": {
6
22
  "test": "echo \"Error: no test specified\" && exit 1",
23
+ "build": "npx @vnejs/monorepo package",
7
24
  "publish:major:plugin": "npm run publish:major",
8
25
  "publish:minor:plugin": "npm run publish:minor",
9
26
  "publish:patch:plugin": "npm run publish:patch",
10
- "publish:major": "npm version major && npm publish --access public",
11
- "publish:minor": "npm version minor && npm publish --access public",
12
- "publish:patch": "npm version patch && npm publish --access public"
27
+ "publish:major": "npx @vnejs/monorepo publish major --access public",
28
+ "publish:minor": "npx @vnejs/monorepo publish minor --access public",
29
+ "publish:patch": "npx @vnejs/monorepo publish patch --access public"
13
30
  },
14
31
  "author": "",
15
32
  "license": "ISC",
16
- "description": "",
17
33
  "peerDependencies": {
18
- "@vnejs/shared": "*",
19
- "@vnejs/module": "*"
34
+ "@vnejs/uis.utils": "~0.1.0"
35
+ },
36
+ "devDependencies": {
37
+ "@vnejs/configs.ts-common": "~0.0.1"
20
38
  }
21
39
  }
@@ -0,0 +1,4 @@
1
+ declare module "*.ttf" {
2
+ const url: string;
3
+ export default url;
4
+ }
package/src/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { injectStyles } from "@vnejs/uis.utils";
2
+
3
+ import fontUrl from "../montserrat.ttf";
4
+
5
+ injectStyles(`
6
+ @font-face {
7
+ font-family: Montserrat;
8
+ src: url('${fontUrl}');
9
+ }
10
+ `);
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@vnejs/configs.ts-common/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist"
6
+ },
7
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "../../../uis/peer-modules.d.ts"],
8
+ "exclude": ["dist", "node_modules"]
9
+ }
package/index.js DELETED
@@ -1 +0,0 @@
1
- import "./index.styl";
package/index.styl DELETED
@@ -1,3 +0,0 @@
1
- @font-face
2
- font-family: 'Montserrat'
3
- src: url('./index.ttf')
File without changes