Skip to content

Commit

Permalink
Merge pull request #413 from tsedio/beta
Browse files Browse the repository at this point in the history
Beta
  • Loading branch information
Romakita authored Oct 30, 2024
2 parents ac00fc1 + 6c07b4b commit 850e56c
Show file tree
Hide file tree
Showing 494 changed files with 8,982 additions and 11,854 deletions.
15 changes: 0 additions & 15 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install dependencies
run: yarn install --immutable
- name: Run lint
run: yarn test:lint
run: yarn lint

test:
runs-on: ${{ matrix.os }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ node_modules
typings/

# Typescript
tsconfig.*.tsbuildinfo
test/*.js
test/*.js.map
/packages/*.js
Expand Down
7 changes: 2 additions & 5 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"packages/*/src/**/*.ts": [
"prettier --write",
"eslint --fix",
"git add"
]
"**/*.{ts,js}": ["eslint --fix"],
"**/*.{ts,js,json,md,yml,yaml}": ["prettier --write"]
}

2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
module.exports = {extends: ["@commitlint/config-conventional"]};
export default {extends: ["@commitlint/config-conventional"]};
153 changes: 76 additions & 77 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
const generated = require("@tsed/markdown-it-symbols");
const team = require('../../team.json')
const api = require('./public/api.json')
const team = require("../../team.json");
const api = require("./public/api.json");
const {version} = require("../../package.json");

const url = "https://cli.tsed.io";
const title = 'Ts.ED CLI - CLI to bootstrap your Ts.ED project'
const title = "Ts.ED CLI - CLI to bootstrap your Ts.ED project";

module.exports = {
title,
description: 'A Node.js CLI to bootstrap and manage a Ts.ED project.',
description: "A Node.js CLI to bootstrap and manage a Ts.ED project.",
serviceWorker: false,
theme: 'tsed',
theme: "tsed",
head: [
["link", {canonical: url}],
["link", {rel: "shortcut icon", href: "/favicon.ico", type: "image/x-icon"}],
Expand All @@ -23,12 +23,12 @@ module.exports = {
["meta", {property: "og:type", content: "website"}],
["meta", {property: "og:site_name", content: title}],
["meta", {property: "og:title", content: title}],
["meta", {property: "og:description", content: 'A Node.js CLI to bootstrap and manage a Ts.ED project.'}],
["meta", {property: "og:description", content: "A Node.js CLI to bootstrap and manage a Ts.ED project."}],
["meta", {property: "og:image", content: "https://tsed.io/tsed-og.png"}],
["meta", {property: "og:image:width", content: "1024"}],
["meta", {property: "og:image:height", content: "1024"}],
["meta", {name: "twitter:title", content: title}],
["meta", {name: "twitter:description", content: 'A Node.js CLI to bootstrap and manage a Ts.ED project.'}],
["meta", {name: "twitter:description", content: "A Node.js CLI to bootstrap and manage a Ts.ED project."}],
["meta", {name: "twitter:card", content: "summary"}]

// ["script", {
Expand All @@ -38,51 +38,51 @@ module.exports = {
// }]
],
themeConfig: {
shortTitle: 'Ts.ED CLI',
htmlTitle: '<span class=\'text-blue\'>Ts</span>.ED CLI',
shortTitle: "Ts.ED CLI",
htmlTitle: "<span class='text-blue'>Ts</span>.ED CLI",
version,
team,
licenseType: 'MIT',
author: 'Lenzotti Romain',
licenseType: "MIT",
author: "Lenzotti Romain",
copyrightDates: {
start: '2016',
start: "2016",
end: new Date().getFullYear()
},
repo: 'tsedio/tsed-cli',
githubProxyUrl: 'https://api.tsed.io/rest/github/tsedio/tsed-cli',
openCollective: 'https://api.tsed.io/rest/opencollective',
repo: "tsedio/tsed-cli",
githubProxyUrl: "https://api.tsed.io/rest/github/tsedio/tsed-cli",
openCollective: "https://api.tsed.io/rest/opencollective",
slackUrl: "https://api.tsed.io/rest/slack/tsedio/tsed",
stackoverflowUrl: 'https://stackoverflow.com/search?q=tsed',
sponsorUrl: 'https://tsed.io/support.html',
stackoverflowUrl: "https://stackoverflow.com/search?q=tsed",
sponsorUrl: "https://tsed.io/support.html",
twitterUrl: "https://twitter.com/TsED_io",
editLinks: true,
docsDir: 'docs',
sidebar: 'auto',
docsBranch: 'master',
docsDir: "docs",
sidebar: "auto",
docsBranch: "master",
api,
smoothScroll: true,
lastUpdated: 'Last updated',
lastUpdated: "Last updated",
// algolia: {
// apiKey: "f8a038207e461aaac0e2fd16403c2b01",
// indexName: "ts_ed"
// },
locales: {
'/': {
label: 'English',
selectText: 'Languages',
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last Updated',
"/": {
label: "English",
selectText: "Languages",
editLinkText: "Edit this page on GitHub",
lastUpdated: "Last Updated",
serviceWorker: {
updatePopup: {
message: 'New content is available.',
buttonText: 'Refresh'
message: "New content is available.",
buttonText: "Refresh"
}
},
nav: [
{
text: 'Getting started',
text: "Getting started",
title: `Getting started | ${title}`,
link: '/getting-started.html'
link: "/getting-started.html"
},
{
title: `Warehouse | ${title}`,
Expand All @@ -94,36 +94,36 @@ module.exports = {
link: "https://tsed.io/warehouse/"
},
{
text: 'Eslint',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-eslint'
text: "Eslint",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-eslint"
},
{
text: 'Vitest',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-vitest'
text: "Vitest",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-vitest"
},
{
text: 'Jest',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-jest'
text: "Jest",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-jest"
},
{
text: 'Mocha',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-mocha'
text: "Mocha",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-mocha"
},
{
text: 'Mongoose',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-mongoose'
text: "Mongoose",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-mongoose"
},
{
text: 'Passport.js',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-passport'
text: "Passport.js",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-passport"
},
{
text: 'TsLint',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-tslint'
text: "TsLint",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-tslint"
},
{
text: 'TypeORM',
link: 'https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-typeorm'
text: "TypeORM",
link: "https://github.com/tsedio/tsed-cli/tree/master/packages/cli-plugin-typeorm"
}
]
},
Expand Down Expand Up @@ -160,32 +160,31 @@ module.exports = {
link: "/api.html"
}
]
},

}
],
sidebar: [
{
title: 'Getting started', // required
path: '/getting-started.html',
title: "Getting started", // required
path: "/getting-started.html",
collapsable: true // optional, defaults to true
},
{
title: 'Api reference', // required
path: '/api.html',
title: "Api reference", // required
path: "/api.html",
collapsable: true // optional, defaults to true
},
{
title: 'Team', // required
path: 'https://tsed.io/team.html',
title: "Team", // required
path: "https://tsed.io/team.html",
collapsable: true // optional, defaults to true
},
{
title: 'Contributing', // required
path: '/contributing.html',
title: "Contributing", // required
path: "/contributing.html",
collapsable: true // optional, defaults to true
},
{
title: 'Support us', // required
title: "Support us", // required
link: "https://tsed.io/support.html",
collapsable: true // optional, defaults to true
}
Expand All @@ -194,45 +193,45 @@ module.exports = {
footer: {
sections: [
{
title: 'Discover',
title: "Discover",
items: [
{
label: 'Our team',
url: 'https://tsed.io/team.html'
label: "Our team",
url: "https://tsed.io/team.html"
},
{
label: 'Contact us',
url: 'https://form.typeform.com/to/uJLP7anG'
label: "Contact us",
url: "https://form.typeform.com/to/uJLP7anG"
}
]
},
{
title: 'Help',
title: "Help",
items: [
{
label: 'Resources',
url: 'https://tsed.io/tutorials/index.html'
label: "Resources",
url: "https://tsed.io/tutorials/index.html"
},
{
label: 'Chat with us',
url: 'https://api.tsed.io/rest/slack/tsedio/tsed'
label: "Chat with us",
url: "https://api.tsed.io/rest/slack/tsedio/tsed"
},
{
label: 'Contribution guide',
url: '/contributing.html'
label: "Contribution guide",
url: "/contributing.html"
}
]
},
{
title: 'Support',
title: "Support",
items: [
{
label: 'Issues',
url: 'https://github.com/tsedio/tsed/issues'
label: "Issues",
url: "https://github.com/tsedio/tsed/issues"
},
{
label: 'Sponsoring & donations',
url: 'https://tsed.io/support.html'
label: "Sponsoring & donations",
url: "https://tsed.io/support.html"
}
]
}
Expand All @@ -242,16 +241,16 @@ module.exports = {
},
plugins: [
[
'@vuepress/google-analytics',
"@vuepress/google-analytics",
{
ga: 'UA-35240348-4'
ga: "UA-35240348-4"
}
]
]
},
markdown: {
lineNumbers: true,
extendMarkdown: md => {
extendMarkdown: (md) => {
md.use(generated);
}
}
Expand Down
18 changes: 10 additions & 8 deletions docs/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
import "./window-boot"
import "./window-boot";

import VueAnalytics from "vue-analytics";
import VueTsED from "vuepress-theme-tsed/src/install";

import SupportUsBlock from "./components/SupportUsBlock";

export default ({
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData // site metadata
}) => {
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData // site metadata
}) => {
try {
Vue.use(VueTsED);
Vue.component('SupportUsBlock', SupportUsBlock)
Vue.component("SupportUsBlock", SupportUsBlock);
Vue.use(VueAnalytics, {
id: siteData.themeConfig.plugins[0][1].ga,
router
});
} catch (er) {
console.warn("====", er);
}
}
};
Loading

0 comments on commit 850e56c

Please sign in to comment.