Skip to content

Commit

Permalink
feat(create-vuepress): add create-helper (close #1) (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope authored Jan 26, 2024
1 parent d29c799 commit 531a7e8
Show file tree
Hide file tree
Showing 53 changed files with 2,018 additions and 34 deletions.
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

0 comments on commit 531a7e8

Please sign in to comment.