@meistrari/mise-en-place 1.2.0-beta6 → 2.0.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +4 -4
- package/README.md +13 -1
- package/dist/cli.mjs +5 -1
- package/package.json +1 -1
- package/scripts/postinstall.sh +2 -0
- package/tsconfig.json +4 -17
package/Makefile
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.PHONY: default
|
|
2
2
|
default: help
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
_MISE_EN_PLACE_PACKAGE_NAME = @meistrari/mise-en-place
|
|
5
5
|
|
|
6
6
|
## Public commands
|
|
7
7
|
|
|
8
|
-
.editorconfig: ./node_modules/$(
|
|
9
|
-
@cp ./node_modules/$(
|
|
8
|
+
.editorconfig: ./node_modules/$(_MISE_EN_PLACE_PACKAGE_NAME)/.editorconfig ## Copy/update .editorconfig file from @meistrari/mise-en-place package
|
|
9
|
+
@cp ./node_modules/$(_MISE_EN_PLACE_PACKAGE_NAME)/.editorconfig .editorconfig
|
|
10
10
|
|
|
11
11
|
.PHONY: mise-en-place
|
|
12
12
|
mise-en-place: .editorconfig ## Setup the mise en place to start cooking
|
|
13
|
-
@echo "export { default } from '$(
|
|
13
|
+
@echo "export { default } from '$(_MISE_EN_PLACE_PACKAGE_NAME)/eslint'" > eslint.config.mjs
|
|
14
14
|
@echo "Mise en place is ready! 🍳"
|
|
15
15
|
|
|
16
16
|
## Hidden commands
|
package/README.md
CHANGED
|
@@ -3,7 +3,19 @@ Meistrari `mise-en-place`
|
|
|
3
3
|
|
|
4
4
|
Before cooking anything, it's important to have your mise en place ready. This project helps you set up your development environment with essential configurations and tools.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# Installation
|
|
7
|
+
|
|
8
|
+
Add `mise-en-place postinstall` to your project's `package.json` `postinstall` script to automatically set up the mise en place after installing dependencies:
|
|
9
|
+
|
|
10
|
+
```json
|
|
11
|
+
{
|
|
12
|
+
"scripts": {
|
|
13
|
+
"postinstall": "mise-en-place postinstall"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Then install the package as a development dependency:
|
|
7
19
|
```sh
|
|
8
20
|
npm i -D @meistrari/mise-en-place
|
|
9
21
|
```
|
package/dist/cli.mjs
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { execSync } from 'node:child_process';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
import { dirname, join } from 'node:path';
|
|
3
5
|
import { argv } from 'node:process';
|
|
4
6
|
|
|
7
|
+
const __dirname$1 = dirname(fileURLToPath(import.meta.url));
|
|
5
8
|
const [command] = argv.slice(2);
|
|
6
9
|
if (command === "postinstall") {
|
|
7
|
-
|
|
10
|
+
const scriptPath = join(__dirname$1, "..", "scripts", "postinstall.sh");
|
|
11
|
+
execSync(`sh "${scriptPath}"`, { stdio: "inherit" });
|
|
8
12
|
process.exit(0);
|
|
9
13
|
}
|
|
10
14
|
throw new Error(`Unknown command: ${command}`);
|
package/package.json
CHANGED
package/scripts/postinstall.sh
CHANGED
|
@@ -7,6 +7,8 @@ else
|
|
|
7
7
|
echo 'include ./node_modules/@meistrari/mise-en-place/Makefile' > Makefile
|
|
8
8
|
fi
|
|
9
9
|
|
|
10
|
+
make mise-en-place
|
|
11
|
+
|
|
10
12
|
WORKSPACE_PATTERNS=$(jq -r '.workspaces[]? // empty' package.json 2>/dev/null)
|
|
11
13
|
JQ_EXPRESSION='(.dependencies // {}, .devDependencies // {}) | keys[] | select(startswith("@meistrari/"))'
|
|
12
14
|
|
package/tsconfig.json
CHANGED
|
@@ -1,20 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
"strict": true,
|
|
2
|
+
"extends":"./tsconfig.base.json",
|
|
4
3
|
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"noImplicitOverride": true,
|
|
9
|
-
"noImplicitReturns": true,
|
|
10
|
-
"noPropertyAccessFromIndexSignature": false,
|
|
11
|
-
"noUncheckedIndexedAccess": true,
|
|
12
|
-
"noUnusedLocals": true,
|
|
13
|
-
"noUnusedParameters": true,
|
|
14
|
-
|
|
15
|
-
"skipLibCheck": true
|
|
16
|
-
},
|
|
17
|
-
"exclude": [
|
|
18
|
-
"*.stories.ts"
|
|
19
|
-
]
|
|
4
|
+
"compilerOptions": {
|
|
5
|
+
"module": "esnext"
|
|
6
|
+
}
|
|
20
7
|
}
|