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

feat(create-vuepress): add create-helper (close #1) #15

Merged
merged 11 commits into from
Jan 26, 2024
7 changes: 6 additions & 1 deletion .commitlintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ const getSubDirectories = (dir) =>

const pluginPackages = getSubDirectories(path.resolve(__dirname, 'plugins'))
const themePackages = getSubDirectories(path.resolve(__dirname, 'themes'))
const toolsPackages = getSubDirectories(path.resolve(__dirname, 'tools'))

module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': [2, 'always', ['e2e', ...pluginPackages, ...themePackages]],
'scope-enum': [
2,
'always',
['e2e', ...pluginPackages, ...themePackages, ...toolsPackages],
],
'footer-max-line-length': [0],
},
}
9 changes: 8 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ module.exports = {
},
},
{
files: ['**/e2e/**/*.cy.ts', '**/e2e/cypress/**/*.ts'],
files: ['e2e/**/*.cy.ts', 'e2e/cypress/**/*.ts'],
extends: 'plugin:cypress/recommended',
},
{
files: ['tools/create-helper/**/*.ts', 'tools/create-helper/**/*.vue'],
rules: {
'import/no-extraneous-dependencies': 'off',
'import/named': 'off',
},
},
{
files: ['**/tests/**/*.ts'],
rules: {
Expand Down
60 changes: 29 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ packages:
- e2e
- plugins/*
- themes/*
- tools/*
59 changes: 59 additions & 0 deletions tools/create-vuepress/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "create-vuepress",
"version": "2.0.0-rc.0",
"description": "VuePress template helper",
"keywords": [
"vuepress",
"create",
"create-vuepress",
"template"
],
"homepage": "https://github.com/vuepress",
"bugs": {
"url": "https://github.com/vuepress/ecosystem/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/vuepress/ecosystem.git"
},
"license": "MIT",
"author": {
"name": "Mr.Hope",
"email": "mister-hope@outlook.com",
"url": "https://mister-hope.com"
},
"type": "module",
"exports": {
".": "./lib/index.js",
"./package.json": "./package.json"
},
"main": "./lib/index.js",
"bin": {
"create-vuepress": "./lib/index.js"
},
"files": [
"lib",
"template"
],
"scripts": {
"build": "tsc -b tsconfig.build.json",
"clean": "rimraf lib *.tsbuildinfo"
},
"dependencies": {
"cac": "^6.7.14",
"execa": "^8.0.1",
"inquirer": "^9.2.12"
},
"devDependencies": {
"@types/inquirer": "9.0.7"
},
"engines": {
"node": ">=18.16.0",
"npm": ">=8",
"pnpm": ">=7",
"yarn": ">=2"
},
"publishConfig": {
"access": "public"
}
}
Loading
Loading