mirror of
https://github.com/flarum/framework.git
synced 2025-02-27 00:48:55 +08:00
feat: add prettier to repo root
This commit is contained in:
parent
dc661bf144
commit
9d4790c053
19
.gitignore
vendored
19
.gitignore
vendored
@ -9,3 +9,22 @@ tests/.phpunit.result.cache
|
|||||||
.idea/*
|
.idea/*
|
||||||
.vscode
|
.vscode
|
||||||
js/coverage-ts
|
js/coverage-ts
|
||||||
|
|
||||||
|
# Yarn
|
||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/sdks
|
||||||
|
!.yarn/versions
|
||||||
|
|
||||||
|
js/.pnp.*
|
||||||
|
js/.yarn/*
|
||||||
|
!js/.yarn/patches
|
||||||
|
!js/.yarn/plugins
|
||||||
|
!js/.yarn/releases
|
||||||
|
!js/.yarn/sdks
|
||||||
|
!js/.yarn/versions
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
File diff suppressed because one or more lines are too long
2
.yarnrc.yml
Normal file
2
.yarnrc.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
yarnPath: .yarn/releases/yarn-3.1.1.cjs
|
||||||
|
nodeLinker: node-modules
|
9
js/.gitignore
vendored
9
js/.gitignore
vendored
@ -1,9 +0,0 @@
|
|||||||
.pnp.*
|
|
||||||
.yarn/*
|
|
||||||
!.yarn/patches
|
|
||||||
!.yarn/plugins
|
|
||||||
!.yarn/releases
|
|
||||||
!.yarn/sdks
|
|
||||||
!.yarn/versions
|
|
||||||
|
|
||||||
node_modules
|
|
@ -1,2 +1,2 @@
|
|||||||
yarnPath: .yarn/releases/yarn-3.1.0.cjs
|
yarnPath: ../.yarn/releases/yarn-3.1.1.cjs
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
@ -47,5 +47,5 @@
|
|||||||
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
|
"check-typings": "tsc --noEmit --emitDeclarationOnly false",
|
||||||
"check-typings-coverage": "typescript-coverage-report"
|
"check-typings-coverage": "typescript-coverage-report"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@3.1.0"
|
"packageManager": "yarn@3.1.1"
|
||||||
}
|
}
|
||||||
|
17
package.json
Normal file
17
package.json
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "flarum",
|
||||||
|
"prettier": "@flarum/prettier-config",
|
||||||
|
"repository": "git@github.com:flarum/core.git",
|
||||||
|
"author": "Flarum Team",
|
||||||
|
"license": "MIT",
|
||||||
|
"private": true,
|
||||||
|
"packageManager": "yarn@3.1.1",
|
||||||
|
"devDependencies": {
|
||||||
|
"@flarum/prettier-config": "^1.0.0",
|
||||||
|
"prettier": "^2.5.1"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"format": "prettier --write less",
|
||||||
|
"format-check": "prettier --check less"
|
||||||
|
}
|
||||||
|
}
|
31
yarn.lock
Normal file
31
yarn.lock
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# This file is generated by running "yarn install" inside your project.
|
||||||
|
# Manual changes might be lost - proceed with caution!
|
||||||
|
|
||||||
|
__metadata:
|
||||||
|
version: 5
|
||||||
|
cacheKey: 8
|
||||||
|
|
||||||
|
"@flarum/prettier-config@npm:^1.0.0":
|
||||||
|
version: 1.0.0
|
||||||
|
resolution: "@flarum/prettier-config@npm:1.0.0"
|
||||||
|
checksum: 2035b97dcd02f2ebcb9f0f88111adbf176fbb31132c4e0a2a5387cec14619ef0f8ac3418c14a0730de1d14765b2bc7c53aa3eea6b28949da93ceb3c1c229195a
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
|
"flarum@workspace:.":
|
||||||
|
version: 0.0.0-use.local
|
||||||
|
resolution: "flarum@workspace:."
|
||||||
|
dependencies:
|
||||||
|
"@flarum/prettier-config": ^1.0.0
|
||||||
|
prettier: ^2.5.1
|
||||||
|
languageName: unknown
|
||||||
|
linkType: soft
|
||||||
|
|
||||||
|
"prettier@npm:^2.5.1":
|
||||||
|
version: 2.5.1
|
||||||
|
resolution: "prettier@npm:2.5.1"
|
||||||
|
bin:
|
||||||
|
prettier: bin-prettier.js
|
||||||
|
checksum: 21b9408476ea1c544b0e45d51ceb94a84789ff92095abb710942d780c862d0daebdb29972d47f6b4d0f7ebbfb0ffbf56cc2cfa3e3e9d1cca54864af185b15b66
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
Loading…
x
Reference in New Issue
Block a user