@backstage-community/plugin-linguist-common 0.1.3

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/CHANGELOG.md ADDED
@@ -0,0 +1,44 @@
1
+ # @backstage-community/plugin-linguist-common
2
+
3
+ ## 0.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - afff3cf: Migrated from the [backstage/backstage](https://github.com/backstage/backstage) monorepo.
8
+
9
+ ## 0.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 406b786a2a2c: Mark package as being free of side effects, allowing more optimized Webpack builds.
14
+
15
+ ## 0.1.2-next.0
16
+
17
+ ### Patch Changes
18
+
19
+ - 406b786a2a2c: Mark package as being free of side effects, allowing more optimized Webpack builds.
20
+
21
+ ## 0.1.1
22
+
23
+ ### Patch Changes
24
+
25
+ - 12a8c94eda8d: Add package repository and homepage metadata
26
+ - d440f1dd0e72: Exported new LanguageType type alias
27
+
28
+ ## 0.1.1-next.1
29
+
30
+ ### Patch Changes
31
+
32
+ - d440f1dd0e72: Exported new LanguageType type alias
33
+
34
+ ## 0.1.1-next.0
35
+
36
+ ### Patch Changes
37
+
38
+ - 12a8c94eda8d: Add package repository and homepage metadata
39
+
40
+ ## 0.1.0
41
+
42
+ ### Minor Changes
43
+
44
+ - 75cfee5688: Introduced the Linguist plugin, checkout the plugin's `README.md` for more details!
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Linguist Common
2
+
3
+ Common types, permissions, and constants for the Linguist plugin.
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ const LINGUIST_ANNOTATION = "backstage.io/linguist";
4
+
5
+ exports.LINGUIST_ANNOTATION = LINGUIST_ANNOTATION;
6
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/** @public */\nexport const LINGUIST_ANNOTATION = 'backstage.io/linguist';\n"],"names":[],"mappings":";;AAiBO,MAAM,mBAAsB,GAAA;;;;"}
@@ -0,0 +1,40 @@
1
+ /** @public */
2
+ type EntityResults = {
3
+ entityRef: string;
4
+ results: Languages;
5
+ };
6
+ /** @public */
7
+ type Languages = {
8
+ languageCount: number;
9
+ totalBytes: number;
10
+ processedDate: string;
11
+ breakdown: Language[];
12
+ };
13
+ /** @public */
14
+ type LanguageType = 'programming' | 'data' | 'markup' | 'prose';
15
+ /** @public */
16
+ type Language = {
17
+ name: string;
18
+ percentage: number;
19
+ bytes: number;
20
+ type: LanguageType;
21
+ color?: `#${string}`;
22
+ };
23
+ /** @public */
24
+ type ProcessedEntity = {
25
+ entityRef: string;
26
+ processedDate: Date;
27
+ };
28
+ /** @public */
29
+ type EntitiesOverview = {
30
+ entityCount: number;
31
+ processedCount: number;
32
+ pendingCount: number;
33
+ staleCount: number;
34
+ filteredEntities: string[];
35
+ };
36
+
37
+ /** @public */
38
+ declare const LINGUIST_ANNOTATION = "backstage.io/linguist";
39
+
40
+ export { type EntitiesOverview, type EntityResults, LINGUIST_ANNOTATION, type Language, type LanguageType, type Languages, type ProcessedEntity };
@@ -0,0 +1,4 @@
1
+ const LINGUIST_ANNOTATION = "backstage.io/linguist";
2
+
3
+ export { LINGUIST_ANNOTATION };
4
+ //# sourceMappingURL=index.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/** @public */\nexport const LINGUIST_ANNOTATION = 'backstage.io/linguist';\n"],"names":[],"mappings":"AAiBO,MAAM,mBAAsB,GAAA;;;;"}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@backstage-community/plugin-linguist-common",
3
+ "version": "0.1.3",
4
+ "description": "Common functionalities for the linguist plugin",
5
+ "backstage": {
6
+ "role": "common-library"
7
+ },
8
+ "publishConfig": {
9
+ "access": "public",
10
+ "main": "dist/index.cjs.js",
11
+ "module": "dist/index.esm.js",
12
+ "types": "dist/index.d.ts"
13
+ },
14
+ "homepage": "https://backstage.io",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/backstage/community-plugins",
18
+ "directory": "workspaces/linguist/plugins/linguist-common"
19
+ },
20
+ "license": "Apache-2.0",
21
+ "sideEffects": false,
22
+ "main": "dist/index.cjs.js",
23
+ "types": "dist/index.d.ts",
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "scripts": {
28
+ "build": "backstage-cli package build",
29
+ "clean": "backstage-cli package clean",
30
+ "lint": "backstage-cli package lint",
31
+ "prepack": "backstage-cli package prepack",
32
+ "postpack": "backstage-cli package postpack",
33
+ "test": "backstage-cli package test"
34
+ },
35
+ "devDependencies": {
36
+ "@backstage/cli": "^0.26.3"
37
+ },
38
+ "module": "dist/index.esm.js"
39
+ }