Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 4aec35e

Browse files
authored
feat: add frameworks titles (#134)
1 parent 880c556 commit 4aec35e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+63
-2
lines changed

README.md

Lines changed: 17 additions & 0 deletions

src/core.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ const getContext = (context) => {
4242

4343
/**
4444
* @typedef {object} Framework
45-
* @property {string} name - Name such as `"gatsby"`
45+
* @property {string} name - framework name such as `"gatsby"`
46+
* @property {string} title - framework title as `"Gatsby"`
4647
* @property {string} category - Category among `"static_site_generator"`, `"frontend_framework"` and `"build_tool"`
4748
* @property {Dev} dev - Information about the dev command
4849
* @property {Build} build - Information about the build command
@@ -131,6 +132,7 @@ const getProjectInfo = async function ({ pathExists, packageJson, packageJsonPat
131132
const getFrameworkInfo = function (
132133
{
133134
name,
135+
title,
134136
category,
135137
dev: { command: frameworkDevCommand, port },
136138
build: { command: frameworkBuildCommand, directory },
@@ -143,6 +145,7 @@ const getFrameworkInfo = function (
143145
const recommendedPlugins = getPlugins(plugins, { nodeVersion })
144146
return {
145147
name,
148+
title,
146149
category,
147150
dev: { commands: devCommands, port },
148151
build: { commands: [frameworkBuildCommand], directory },

src/frameworks/angular.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "angular",
3+
"title": "Angular",
34
"category": "frontend_framework",
45
"detect": {
56
"npmDependencies": ["@angular/cli"],

src/frameworks/assemble.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "assemble",
3+
"title": "Assemble",
34
"category": "static_site_generator",
45
"detect": {
56
"npmDependencies": ["assemble"],

src/frameworks/brunch.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "brunch",
3+
"title": "Brunch",
34
"category": "build_tool",
45
"detect": {
56
"npmDependencies": ["brunch"],

src/frameworks/create-react-app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "create-react-app",
3+
"title": "Create React App",
34
"category": "frontend_framework",
45
"detect": {
56
"npmDependencies": ["react-scripts"],

src/frameworks/docpad.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "docpad",
3+
"title": "DocPad",
34
"category": "static_site_generator",
45
"detect": {
56
"npmDependencies": ["docpad"],

src/frameworks/docusaurus-v2.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "docusaurus-v2",
3+
"title": "Docusaurus 2",
34
"category": "static_site_generator",
45
"detect": {
56
"npmDependencies": ["@docusaurus/core"],

src/frameworks/docusaurus.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "docusaurus",
3+
"title": "Docusaurus",
34
"category": "static_site_generator",
45
"detect": {
56
"npmDependencies": ["docusaurus"],

src/frameworks/eleventy.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "eleventy",
3+
"title": "Eleventy",
34
"category": "static_site_generator",
45
"detect": {
56
"npmDependencies": ["@11ty/eleventy"],

0 commit comments

Comments
 (0)