Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta #413

Merged
merged 72 commits into from
Oct 30, 2024
Merged

Beta #413

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
074348f
chore: migrate unit test on vitest
Romakita Sep 14, 2024
b12605c
chore(cli): migrate unit test on vitest
Romakita Sep 14, 2024
a5cb34f
chore: fix lint
Romakita Sep 14, 2024
128b7c3
chore: fix snapshots
Romakita Sep 14, 2024
8972a65
feat(cli-plugin-eslint): generate configuration for eslint 9
Romakita Sep 14, 2024
937287f
feat(cli): migrate all project on ESM
Romakita Sep 16, 2024
c542a58
fix(cli): remove mocha plugin
Romakita Sep 16, 2024
673d61c
fix(cli-core): add update notifier
Romakita Sep 16, 2024
b8de785
fix(cli): use @tsed/barrels instead barrelsby to generate barrels
Romakita Sep 16, 2024
df1cafe
feat(cli): use swc loader to load ts files
Romakita Sep 16, 2024
6f48f28
fix(barrels): fix globby import
Romakita Sep 16, 2024
799d73c
Merge remote-tracking branch 'origin/master' into feat-alpha
Romakita Sep 16, 2024
95540d2
fix: fix configuration and build issue
Romakita Sep 17, 2024
ffbbccf
Github CI build: __run_2 v6.0.0-alpha.1 [ci skip]
semantic-release-bot Sep 17, 2024
db11fe3
fix(cli-core): fix missing .js in import
Romakita Sep 17, 2024
3106831
Github CI build: __run_2 v6.0.0-alpha.2 [ci skip]
semantic-release-bot Sep 17, 2024
eb5ba20
fix(cli-core): fix missing .js in import
Romakita Sep 17, 2024
de38119
Github CI build: __run_2 v6.0.0-alpha.3 [ci skip]
semantic-release-bot Sep 17, 2024
1d87dfa
fix(cli): remove module-alias which is not longer required
Romakita Sep 17, 2024
b2016f2
Github CI build: __run_2 v6.0.0-alpha.4 [ci skip]
semantic-release-bot Sep 17, 2024
5928aec
fix(core): force type module on package.json
Romakita Sep 18, 2024
992d3b9
fix(cli): fix miscellaneous issue in templates
Romakita Sep 18, 2024
14bcd6c
fix(cli): use loader to resolve plugin loading issue
Romakita Sep 19, 2024
a997c2a
Github CI build: __run_2 v6.0.0-alpha.5 [ci skip]
semantic-release-bot Sep 19, 2024
7bf4692
fix(cli): fix plugin module resolution
Romakita Sep 19, 2024
1be1d7c
fix(cli-plugin-eslint): fix template link
Romakita Sep 19, 2024
80fad36
Github CI build: __run_2 v6.0.0-alpha.6 [ci skip]
semantic-release-bot Sep 20, 2024
b17c2cf
fix: bump typescript version to v5.6
Romakita Sep 20, 2024
df96fba
Github CI build: __run_2 v6.0.0-alpha.7 [ci skip]
semantic-release-bot Sep 20, 2024
b0fa59e
fix(barrels): fix globby configuration for directory fields
Romakita Sep 21, 2024
118b4e7
fix(cli-core): fix bad import and loadPlugins file resolution
Romakita Sep 21, 2024
8c1d15d
fix(cli): fix templates
Romakita Sep 21, 2024
3f6e954
fix(cli-plugin-eslint): fix templates and run linter after installation
Romakita Sep 21, 2024
972207b
fix(cli): fix dockerignore and swcrc
Romakita Sep 21, 2024
006212b
fix(cli-plugin-vitest): fix extra space in vitest command
Romakita Sep 21, 2024
1f5f66a
Github CI build: __run_2 v6.0.0-alpha.8 [ci skip]
semantic-release-bot Sep 21, 2024
ec8beb4
fix: bump @npmcli/run-script to v8.1.0
Romakita Sep 25, 2024
459fd0d
fix: bump @swc dependencies
Romakita Sep 25, 2024
127e155
fix: bump @types dependencies
Romakita Sep 25, 2024
90e7c82
fix: remove normalize-path dependency
Romakita Sep 25, 2024
3111183
fix: remove @types/axios dependency
Romakita Sep 25, 2024
681a62c
fix: bump some dependencies
Romakita Sep 25, 2024
b93e619
fix: bump chalk dependency
Romakita Sep 25, 2024
fa724f8
fix: bump figures dependency
Romakita Sep 25, 2024
95aefb2
fix: bump change-case dependency to v5.4.4
Romakita Sep 25, 2024
aa63ecf
fix: remove entities dependency
Romakita Sep 25, 2024
c1e9837
fix: bump update-notifier and uuid dependencies
Romakita Sep 25, 2024
5284d92
fix: bump execa to v9.4.0
Romakita Sep 25, 2024
32a8331
fix: bump globby to v14.0.2
Romakita Sep 25, 2024
cd8b5f8
fix: bump read-pkg-up to v11.0.0
Romakita Sep 25, 2024
e9dbf8c
fix: bump registry-url to v6.0.1
Romakita Sep 25, 2024
73931b0
fix: bump listr2 to v8.2.4
Romakita Sep 25, 2024
8221fb8
Github CI build: __run_2 v6.0.0-alpha.9 [ci skip]
semantic-release-bot Sep 28, 2024
d73d5b3
chore: rollback to execa v8
Romakita Sep 28, 2024
42638ae
fix: disable sourceMap generation in esm build
Romakita Sep 28, 2024
77a22c3
Github CI build: __run_2 v6.0.0-alpha.10 [ci skip]
semantic-release-bot Sep 28, 2024
b913453
fix(cli-core): bump commander dependency to 12.1.0
Romakita Sep 28, 2024
ce97669
fix(cli-core): bump minors dependencies
Romakita Sep 29, 2024
baeffae
fix(cli): bump Ts.ED dependencies
Romakita Sep 29, 2024
71f77dc
fix(cli): bump inquirer to v9
Romakita Sep 29, 2024
73a642f
fix: merge master into bump-dependencies
Romakita Sep 29, 2024
c347f50
Merge pull request #412 from tsedio/bump-dependencies
Romakita Sep 29, 2024
fed8427
Github CI build: __run_2 v6.0.0-beta.1 [ci skip]
semantic-release-bot Sep 29, 2024
425722f
fix(cli): update tsed dependencies to v8 beta 1
Romakita Oct 6, 2024
fff1203
feat(cli): add @tsed/platform-log-request module import on server.hbs
Romakita Oct 6, 2024
20af285
feat: bump Ts.ED dependencies to v8.0.0-beta.2
Romakita Oct 10, 2024
52e4d76
refactor: migrate core code base to functional API
Romakita Oct 10, 2024
66c9b67
refactor: migrate plugins code to functional API
Romakita Oct 10, 2024
68b6c5d
Github CI build: __run_2 v6.0.0-beta.2 [ci skip]
semantic-release-bot Oct 10, 2024
e6a62e2
fix: bump Ts.ED dependencies to v8.0.0-beta.3
Romakita Oct 12, 2024
680aeca
Github CI build: __run_2 v6.0.0-beta.3 [ci skip]
semantic-release-bot Oct 12, 2024
6c07b4b
fix: bump Ts.ED dependencies to v8.0.0-beta.5
Romakita Oct 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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
Loading