@adbayb/stack 0.0.0-next-df02a77 → 0.0.0-next-f4f1804
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/README.md +4 -4
- package/{config → configs}/eslint/presets/overridable.js +2 -0
- package/dist/index.js +4 -4
- package/package.json +5 -5
- package/templates/multi-projects/.commitlintrc.json +0 -3
- package/templates/single-project/.commitlintrc.json +0 -3
- /package/{config → configs}/eslint/README.md +0 -0
- /package/{config → configs}/eslint/constants.js +0 -0
- /package/{config → configs}/eslint/helpers.js +0 -0
- /package/{config → configs}/eslint/index.js +0 -0
- /package/{config → configs}/eslint/presets/base.js +0 -0
- /package/{config → configs}/eslint/presets/eslint.js +0 -0
- /package/{config → configs}/eslint/presets/import.js +0 -0
- /package/{config → configs}/eslint/presets/jsdoc.js +0 -0
- /package/{config → configs}/eslint/presets/node.js +0 -0
- /package/{config → configs}/eslint/presets/react.js +0 -0
- /package/{config → configs}/eslint/presets/sonar.js +0 -0
- /package/{config → configs}/eslint/presets/stylistic.js +0 -0
- /package/{config → configs}/eslint/presets/test.js +0 -0
- /package/{config → configs}/eslint/presets/typescript.js +0 -0
- /package/{config → configs}/eslint/presets/uncategorized.js +0 -0
- /package/{config → configs}/prettier/README.md +0 -0
- /package/{config → configs}/prettier/index.js +0 -0
- /package/{config → configs}/typescript/README.md +0 -0
- /package/{config → configs}/typescript/index.json +0 -0
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- Support for several application templates (for now, only a default template is available, but others can be added later)
|
|
14
14
|
- Standardized file structure including optional folder creation such as `examples`, `packages`, ...
|
|
15
15
|
- Enable all project lifecycle steps with commands from the setup, check, fix, build, and test to the versioning and release
|
|
16
|
-
- Built-in configuration preset setup (including Node/NPM runtime, Git ignore/hooks, [TypeScript](
|
|
16
|
+
- Built-in configuration preset setup (including Node/NPM runtime, Git ignore/hooks, [TypeScript](https://github.com/adbayb/stack/blob/main/stack/configs/typescript/), [ESLint](https://github.com/adbayb/stack/blob/main/stack/configs/eslint/), [Prettier](https://github.com/adbayb/stack/blob/main/stack/configs/prettier/), EditorConfig, Renovate, Changesets, and VSCode)
|
|
17
17
|
- A welcoming environment for users and contributors with the continuous integration setup, and the creation of `README.md`, `CONTRIBUTING.md`, and GitHub template files (including issue and pull request ones), ...
|
|
18
18
|
- An optimized development environment with command caching (no build needed if nothing changes)
|
|
19
19
|
|
|
@@ -63,9 +63,9 @@ stack release
|
|
|
63
63
|
|
|
64
64
|
### Available configurations
|
|
65
65
|
|
|
66
|
-
- [@adbayb/stack/eslint](https://github.com/adbayb/stack/blob/main/stack/
|
|
67
|
-
- [@adbayb/stack/prettier](https://github.com/adbayb/stack/blob/main/stack/
|
|
68
|
-
- [@adbayb/stack/typescript](https://github.com/adbayb/stack/blob/main/stack/
|
|
66
|
+
- [@adbayb/stack/eslint](https://github.com/adbayb/stack/blob/main/stack/configs/eslint/) to align logical and stylistic rules across projects.
|
|
67
|
+
- [@adbayb/stack/prettier](https://github.com/adbayb/stack/blob/main/stack/configs/prettier/) to align code formatting conventions across projects.
|
|
68
|
+
- [@adbayb/stack/typescript](https://github.com/adbayb/stack/blob/main/stack/configs/typescript/) to align type checking and processing across projects.
|
|
69
69
|
|
|
70
70
|
### Used technologies
|
|
71
71
|
|
|
@@ -10,7 +10,9 @@ export const config = [
|
|
|
10
10
|
// Relaxed rules for example-like folder, and [config-, story-, and test]-like files
|
|
11
11
|
files: [
|
|
12
12
|
"**/.config/**",
|
|
13
|
+
"**/.configs/**",
|
|
13
14
|
"**/config/**",
|
|
15
|
+
"**/configs/**",
|
|
14
16
|
"**/examples/**",
|
|
15
17
|
"**/scripts/**",
|
|
16
18
|
"**/website/**",
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { writeFile, chmod, mkdir, symlink } from 'node:fs/promises';
|
|
|
6
6
|
import { existsSync, cpSync, readFileSync, renameSync, writeFileSync, readdirSync } from 'node:fs';
|
|
7
7
|
import { fdir } from 'fdir';
|
|
8
8
|
|
|
9
|
-
var version = "0.0.0-next-
|
|
9
|
+
var version = "0.0.0-next-f4f1804";
|
|
10
10
|
|
|
11
11
|
const VERSION = version;
|
|
12
12
|
|
|
@@ -346,7 +346,7 @@ const createCreateCommand = (program)=>{
|
|
|
346
346
|
}).input({
|
|
347
347
|
key: "inputUrl",
|
|
348
348
|
label: "Where will it be stored? (Git remote URL)",
|
|
349
|
-
defaultValue: "git@github.com:adbayb/
|
|
349
|
+
defaultValue: "git@github.com:adbayb/xxx.git",
|
|
350
350
|
type: "text"
|
|
351
351
|
}).input({
|
|
352
352
|
key: "inputTemplate",
|
|
@@ -358,7 +358,7 @@ const createCreateCommand = (program)=>{
|
|
|
358
358
|
],
|
|
359
359
|
type: "select"
|
|
360
360
|
}).task({
|
|
361
|
-
label: label$2("
|
|
361
|
+
label: label$2("Check pre-requisites"),
|
|
362
362
|
async handler () {
|
|
363
363
|
// Check pnpm availability by verifying its version
|
|
364
364
|
await getNpmVersion();
|
|
@@ -515,7 +515,7 @@ const createCleanCommand = (program)=>{
|
|
|
515
515
|
}
|
|
516
516
|
}).task({
|
|
517
517
|
label ({ files }) {
|
|
518
|
-
return files.length > 0 ? label$1("
|
|
518
|
+
return files.length > 0 ? label$1("Clean assets") : "Already clean ✨";
|
|
519
519
|
},
|
|
520
520
|
async handler ({ files }) {
|
|
521
521
|
if (files.length === 0) return;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adbayb/stack",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-f4f1804",
|
|
4
4
|
"description": "My opinionated JavaScript-based toolchain",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"bin",
|
|
10
|
-
"
|
|
10
|
+
"configs",
|
|
11
11
|
"dist",
|
|
12
12
|
"templates"
|
|
13
13
|
],
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"source": "./src/index.ts",
|
|
21
21
|
"default": "./dist/index.js"
|
|
22
22
|
},
|
|
23
|
-
"./eslint": "./
|
|
24
|
-
"./prettier": "./
|
|
25
|
-
"./typescript": "./
|
|
23
|
+
"./eslint": "./configs/eslint/index.js",
|
|
24
|
+
"./prettier": "./configs/prettier/index.js",
|
|
25
|
+
"./typescript": "./configs/typescript/index.json"
|
|
26
26
|
},
|
|
27
27
|
"keywords": [
|
|
28
28
|
"stack",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|