Skip to content

Commit cfe9f49

Browse files
committed
refactor(app): setup new architecture
1 parent 4853c27 commit cfe9f49

File tree

3,646 files changed

+43471
-187938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,646 files changed

+43471
-187938
lines changed

.eslintrc

+16-18
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
"eslint:recommended",
44
"plugin:@typescript-eslint/recommended"
55
],
6-
"ignorePatterns": [
7-
"**/.yarn/**",
8-
"**/assets/**",
9-
"**/docs/**",
10-
"**/packages/**/dist/**",
11-
"**/packages/**/doc/**",
12-
"**/packages/themes/**",
13-
"**/packages/components/**/custom-elements",
14-
"**/packages/components/**/custom-elements-bundle",
15-
"**/packages/components/**/documentation",
16-
"**/packages/components/**/loader",
17-
"**/packages/components/**/react",
18-
"**/packages/components/**/vue",
19-
"**/packages/components/**/www",
20-
"**/*.d.ts"
21-
],
6+
// "ignorePatterns": [
7+
// "**/.yarn/**",
8+
// "**/assets/**",
9+
// "**/docs/**",
10+
// "**/packages/**/dist/**",
11+
// "**/packages/**/doc/**",
12+
// "**/packages/themes/**",
13+
//// "**/packages/components/**/custom-elements",
14+
//// "**/packages/components/**/custom-elements-bundle",
15+
//// "**/packages/components/**/documentation",
16+
//// "**/packages/components/**/loader",
17+
//// "**/packages/components/**/react",
18+
//// "**/packages/components/**/vue",
19+
// "**/packages/**/www",
20+
// "**/*.d.ts"
21+
// ],
2222
"parser": "@typescript-eslint/parser",
2323
"parserOptions": {
2424
"ecmaVersion": 2020,
@@ -69,9 +69,7 @@
6969
],
7070
"newlines-between": "never",
7171
"alphabetize": {
72-
/* sort in ascending order. Options: ["ignore", "asc", "desc"] */
7372
"order": "asc",
74-
/* ignore case. Options: [true, false] */
7573
"caseInsensitive": true
7674
}
7775
}

.stylelintrc.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
"scss/no-global-function-names": null,
99
"selector-class-pattern": [
1010
"^[a-z]([-_]{0,2}?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$",
11-
{
12-
"resolveNestedSelectors": true
13-
}
11+
{ "resolveNestedSelectors": true }
1412
]
1513
}
1614
}

MIGRATION.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ Example of entry in the migration guide:
1515
**before**
1616
``typescript
1717
// ExampleCode.ts
18-
export interface ExampleCode {a: string};
18+
export interface ExampleCode { a: string };
1919
2020
// Example of use
21-
const exampleCode: ExampleCode = {a: 'a'}
21+
const exampleCode: ExampleCode = { a: 'a' }
2222
``
2323
**after**
2424
``typescript
2525
// ExampleCode.ts
26-
export interface ExampleCode {ha: string};
26+
export interface ExampleCode { ha: string };
2727
2828
// Example of use
29-
const exampleCode: ExampleCode = {ha: 'a'}
29+
const exampleCode: ExampleCode = { ha: 'a' }
3030
``
3131
3232
```

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Then, in your view, you can start using ODS components. For instance:
9090
For more detail, see our global [Get Started](https://ovh.github.io/design-system/latest/?path=/story/ovhcloud-design-system-get-started--page) guide
9191

9292
## Contribute
93-
You've developed a new cool feature ? Fixed an annoying bug ? We'd be happy to hear from you !
93+
You've developed a new cool feature? Fixed an annoying bug? We'd be happy to hear from you!
9494

9595
Please read [Get Started](https://ovh.github.io/design-system/latest/?path=/story/contributing-get-started--page) guide for contributing and [CONTRIBUTING.md](https://github.com/ovh/design-system/blob/master/CONTRIBUTING.md) 😃
9696

changelog.preset.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ module.exports = Promise.resolve()
5555
preset.writerOpts.commitUrlFormat = '{{host}}/{{owner}}/{{repository}}/commits/{{hash}}';
5656
preset.writerOpts.compareUrlFormat = '{{host}}/{{owner}}/{{repository}}/compare/{{currentTag}}...{{previousTag}}';
5757
return preset;
58-
})
58+
});

package.json

+55-28
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,50 @@
66
"author": "OVH SAS",
77
"license": "Apache-2.0",
88
"workspaces": [
9-
"packages/cdk",
10-
"packages/cdk/dev",
11-
"packages/common/*",
12-
"packages/components",
13-
"packages/components/src/!(dist|loader)*",
149
"packages/examples/*",
15-
"packages/shared-dependencies/*",
10+
"packages/ods",
11+
"packages/ods/react",
12+
"packages/ods/react/tests/*",
13+
"packages/ods/src/components/!(dist|loader)*",
14+
"packages/ods/style",
15+
"packages/ods/vue",
1616
"packages/storybook",
17-
"packages/themes/*"
17+
"packages/themes"
1818
],
1919
"scripts": {
20+
"build:ci": "lerna run --stream build:ci",
21+
"build:prod": "lerna run --stream build:prod",
22+
"build:storybook": "lerna run --stream build:storybook",
23+
"clean": "lerna run clean",
24+
"doc": "lerna run doc",
25+
"generate:component": "plop --plopfile scripts/component-generator/plopfile.js component",
26+
"lint": "yarn lint:ts && yarn lint:scss",
27+
"lint:ts": "lerna run lint:ts",
28+
"lint:scss": "lerna run lint:scss",
29+
"ods:graduate": "yarn ods:release:prepare && yarn version:graduate",
30+
"ods:major": "yarn ods:release:prepare && yarn version:major",
31+
"ods:minor": "yarn ods:release:prepare && yarn version:minor",
32+
"ods:patch": "yarn ods:release:prepare && yarn version:patch",
33+
"ods:prepatch": "yarn ods:release:prepare && yarn version:prepatch",
34+
"ods:preminor": "yarn ods:release:prepare && yarn version:preminor",
35+
"ods:premajor": "yarn ods:release:prepare && yarn version:premajor",
36+
"ods:prerelease": "yarn ods:release:prepare && yarn version:prerelease",
37+
"ods:release:prepare": "npx zx scripts/ods-release-prepare.mjs",
38+
"publish": "lerna publish --concurrency 1 from-package --yes",
39+
"storybook": "yarn workspace @ovhcloud/ods-storybook run start:quiet",
40+
"test:ci": "yarn run test:spec:ci && yarn run test:e2e:ci",
41+
"test:e2e:ci": "lerna run --stream --concurrency 1 test:e2e:ci",
42+
"test:spec:ci": "lerna run --stream --concurrency 1 test:spec:ci",
43+
"version:graduate": "lerna version --conventional-commits --exact --force-publish --conventional-graduate",
44+
"version:major": "lerna version major --conventional-commits --exact --force-publish",
45+
"version:minor": "lerna version minor --conventional-commits --exact --force-publish",
46+
"version:patch": "lerna version patch --conventional-commits --exact --force-publish",
47+
"version:prepatch": "lerna version prepatch --conventional-commits --exact --force-publish --conventional-prerelease",
48+
"version:preminor": "lerna version preminor --conventional-commits --exact --force-publish --conventional-prerelease",
49+
"version:premajor": "lerna version premajor --conventional-commits --exact --force-publish --conventional-prerelease",
50+
"version:prerelease": "lerna version --conventional-commits --exact --force-publish --conventional-prerelease"
51+
},
52+
"scripts_old": {
2053
"build": "lerna run build",
2154
"build:all:prod": "yarn build:prod && yarn doc && yarn doc:api && yarn build:storybook",
2255
"build:all:prod:slow": "yarn build:prod:slow && yarn doc && yarn doc:api:slow && yarn build:storybook",
@@ -80,38 +113,32 @@
80113
"version:prerelease:nocommit": "lerna version --conventional-commits --exact --conventional-prerelease --no-commit-hooks --no-git-tag-version --no-push"
81114
},
82115
"devDependencies": {
83-
"@commitlint/cli": "11.0.0",
84-
"@commitlint/config-conventional": "11.0.0",
85-
"@mermaid-js/mermaid-cli": "8.14.0",
86-
"@types/node": "18.17.15",
87-
"@typescript-eslint/eslint-plugin": "6.7.5",
88-
"@typescript-eslint/parser": "6.7.5",
89-
"btoa": "1.2.1",
90-
"conventional-changelog-angular": "5.0.13",
91-
"eslint": "8.51.0",
116+
"@commitlint/cli": "18.6.1",
117+
"@commitlint/config-conventional": "18.6.2",
118+
"@types/node": "18.15.3",
119+
"@typescript-eslint/eslint-plugin": "7.0.1",
120+
"@typescript-eslint/parser": "7.0.1",
121+
"conventional-changelog-angular": "7.0.0",
122+
"eslint": "8.56.0",
92123
"eslint-html-reporter": "0.7.4",
93124
"eslint-import-resolver-typescript": "3.6.1",
94-
"eslint-plugin-import": "2.29.0",
95-
"eslint-plugin-jsx-a11y": "6.6.1",
125+
"eslint-plugin-import": "2.29.1",
126+
"eslint-plugin-jsx-a11y": "6.8.0",
96127
"eslint-plugin-tsdoc": "0.2.17",
97-
"fs-extra": "10.0.0",
98-
"generate-license-file": "2.0.0",
99128
"husky": "4.3.8",
100129
"lerna": "3.22.1",
101-
"node-fetch": "2.6.7",
102-
"plop": "4.0.0",
103-
"stylelint": "15.10.3",
130+
"plop": "4.0.1",
131+
"rimraf": "5.0.5",
132+
"stylelint": "16.2.1",
104133
"stylelint-config-concentric-order": "5.2.0",
105-
"stylelint-config-standard-scss": "11.0.0",
106-
"stylelint-formatter-html": "1.0.1",
107-
"ts-node": "10.7.0"
134+
"stylelint-config-standard-scss": "13.0.0",
135+
"stylelint-formatter-html": "1.0.1"
108136
},
109137
"engines": {
110138
"node": ">= 18.17",
111139
"yarn": ">= 2.4.0"
112140
},
113141
"resolutions": {
114-
"@types/react": "16.14.38",
115-
"@types/ws": "8.5.4"
142+
"@types/react": "18.2.56"
116143
}
117144
}

packages/cdk/.gitignore

-27
This file was deleted.

packages/cdk/.npmignore

-5
This file was deleted.

0 commit comments

Comments
 (0)