Skip to content

Commit c3fc1f2

Browse files
author
stewest
committed
update misc
1 parent 51d2dcb commit c3fc1f2

6 files changed

Lines changed: 19 additions & 23 deletions

File tree

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

.stylelintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
vendor/**/*.css
22
web/themes/contrib/**/*.css
3+
web/themes/custom/**/*.css

.vscode/extensions.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,5 @@
66
"bradlc.vscode-tailwindcss",
77
"kamikillerto.vscode-colorize",
88
"nicoespeon.abracadabra",
9-
"ms-playwright.playwright",
10-
"deque-systems.vscode-axe-linter",
11-
"MaxvanderSchee.web-accessibility",
129
]
1310
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,8 @@
3737
"prettier.semi": true,
3838
"css.completion.completePropertyWithSemicolon": true,
3939
"scss.completion.completePropertyWithSemicolon": true,
40+
"scss.validate": false,
41+
"[scss]": {
42+
"editor.defaultFormatter": "esbenp.prettier-vscode"
43+
},
4044
}

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,21 @@ Or
2121
- `brew install pnpm`
2222

2323
```sh
24-
git clone git@github.com:sparksi/project-template.git
25-
cd project-template
26-
pnpm i
24+
git clone https://gitlab.sparksi.co/sector/project
25+
cd project
26+
pnpm install
2727
```
2828

2929
### If you are adding this to an existing project
3030
- Copy files to the root (or copy and paste parts that make sense)
31-
- Run `pnpm install`
32-
- Run `pnpm prepare` if the above command didn't do so already. This will install the "husky hook" with lint-staged command.
31+
- Run `pnpm prepare`. This will install packages and the "husky hook" with lint-staged command.
3332

3433
Then extend your configs, for example, from a drupal theme: web/themes/custom/yourtheme, in your `https://git.drupalcode.org/project/sector_theme/-/blob/1.1.x/themes/sector_demo/.stylelintrc.json`
3534

3635
```json
3736
// .stylelintrc.json file
3837
{
39-
"extends": "/absolute/path/to/project-template/packages/stylelint" // this might need to be "../../../../../../packages/stylelint/index.js" if working in Sector web profiles, themes sector_starter
38+
"extends": "/absolute/path/project-root/.stylelint.json"
4039
}
4140
```
4241

@@ -61,8 +60,8 @@ For example, to change the `at-rule-no-unknown` rule to use its `ignoreAtRules`
6160

6261
```json
6362
{
64-
// theme .stylelintrc.json
65-
"extends": "../../../../packages/stylelint/index.js",
63+
// From Custom theme's .stylelintrc.json
64+
"extends": "../../../../.stylelintrc.json",
6665
"rules": {
6766
"at-rule-no-unknown": [ true, {
6867
"ignoreAtRules": [

package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@
44
"version": "1.0.17",
55
"description": "Sparks Interactive frontend-tooling. A central place for opens source packages and tools.",
66
"author": "Sparks Interactive <developers@sparksinteractive.co.nz>",
7+
"engines": {
8+
"node": ">=18.0.0"
9+
},
710
"scripts": {
8-
"build": "pnpm -r build",
11+
"build": "pnpm --stream -r build",
12+
"tw": "pnpm --stream -r tw",
13+
"watch": "pnpm --stream -r watch:node",
914
"prepare": "husky install && pnpm install",
1015
"qa": "stylelint {**,.,*/**,**/**/}*.scss",
1116
"stylelint-scss-check": "stylelint-config-prettier-scss-check"
@@ -17,16 +22,6 @@
1722
"prettier"
1823
],
1924
"license": "MIT",
20-
"files": [
21-
"./packages/eslint/index.js",
22-
"./packages/prettier/index.js",
23-
"./packages/stylelint/index.js"
24-
],
25-
"exports": {
26-
"./packages/eslint": "./packages/eslint/index.js",
27-
"./packages/prettier": "./packages/prettier/index.js",
28-
"./packages/stylelint": "./packages/stylelint/index.js"
29-
},
3025
"devDependencies": {
3126
"@types/node": "^20.11.25",
3227
"eslint": "^8.57.0",

0 commit comments

Comments
 (0)