Skip to content

Commit

Permalink
feat(arch): move && simplify component code
Browse files Browse the repository at this point in the history
Signed-off-by: Francois Eoche <[email protected]>
  • Loading branch information
Francois Eoche authored and dpellier committed Aug 25, 2023
1 parent dffb736 commit cdb5a14
Show file tree
Hide file tree
Showing 59 changed files with 2,217 additions and 17 deletions.
35 changes: 35 additions & 0 deletions packages-new/components/code/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
dist/
custom-elements/
custom-elements-bundle/
www/
loader/
docs-api
src/components.d.ts
!src/dependencies.d.ts
!src/interface.d.ts

*~
*.sw[mnpcod]
*.log
*.lock
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace

.stencil/
screenshot/
.idea/
.vscode/
.sass-cache/
.versions/
node_modules/
$RECYCLE.BIN/

.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
.env

src/**/readme.md
4 changes: 4 additions & 0 deletions packages-new/components/code/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
!dist/
!loader/
!docs-api/
src/
218 changes: 218 additions & 0 deletions packages-new/components/code/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [15.0.1](https://ovhcloud.design/v15.0.1/?path=/docs/design-system-changelog--page) (2023-07-26)
[compare](https://github.com/ovh/design-system/compare/v15.0.0...v15.0.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [15.0.0](https://ovhcloud.design/v15.0.0/?path=/docs/design-system-changelog--page) (2023-07-25)
[compare](https://github.com/ovh/design-system/compare/v13.0.1...v15.0.0)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [14.1.1](https://ovhcloud.design/v14.1.1/?path=/docs/design-system-changelog--page) (2023-07-19)
[compare](https://github.com/ovh/design-system/compare/v14.1.0...v14.1.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [14.1.0](https://ovhcloud.design/v14.1.0/?path=/docs/design-system-changelog--page) (2023-07-18)
[compare](https://github.com/ovh/design-system/compare/v13.0.1...v14.1.0)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [14.0.1](https://ovhcloud.design/v14.0.1/?path=/docs/design-system-changelog--page) (2023-06-28)
[compare](https://github.com/ovh/design-system/compare/v14.0.0...v14.0.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [14.0.0](https://ovhcloud.design/v14.0.0/?path=/docs/design-system-changelog--page) (2023-06-28)
[compare](https://github.com/ovh/design-system/compare/v13.0.1...v14.0.0)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [13.0.1](https://ovhcloud.design/v13.0.1/?path=/docs/design-system-changelog--page) (2023-06-09)
[compare](https://github.com/ovh/design-system/compare/v13.0.0...v13.0.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [13.0.0](https://ovhcloud.design/v13.0.0/?path=/docs/design-system-changelog--page) (2023-06-08)
[compare](https://github.com/ovh/design-system/compare/v12.1.3...v13.0.0)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.1.3](https://ovhcloud.design/v12.1.3/?path=/docs/design-system-changelog--page) (2023-05-16)
[compare](https://github.com/ovh/design-system/compare/v12.1.2...v12.1.3)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.1.2](https://ovhcloud.design/v12.1.2/?path=/docs/design-system-changelog--page) (2023-05-16)
[compare](https://github.com/ovh/design-system/compare/v12.1.1...v12.1.2)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.1.1](https://ovhcloud.design/v12.1.1/?path=/docs/design-system-changelog--page) (2023-05-05)
[compare](https://github.com/ovh/design-system/compare/v12.1.0...v12.1.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.1.0](https://ovhcloud.design/v12.1.0/?path=/docs/design-system-changelog--page) (2023-05-03)
[compare](https://github.com/ovh/design-system/compare/v12.0.5...v12.1.0)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.0.5](https://ovhcloud.design/v12.0.5/?path=/docs/design-system-changelog--page) (2023-04-28)
[compare](https://github.com/ovh/design-system/compare/v12.0.4...v12.0.5)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code







[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.0.4](https://ovhcloud.design/v12.0.4/?path=/docs/design-system-changelog--page) (2023-04-28)
[compare](https://github.com/ovh/design-system/compare/v12.0.3...v12.0.4)

### Bug Fixes

* **testing:** fix imported cmpts screenshot tests ([#25](https://github.com/ovh/design-system/issues/25)) ([5aa963a](https://github.com/ovh/design-system/commit/5aa963ae85e4bb802830bbe973f87057fe008a56))



[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.0.3](https://ovhcloud.design/v12.0.3/?path=/docs/design-system-changelog--page) (2023-02-28)
[compare](https://github.com/ovh/design-system/compare/v12.0.2...v12.0.3)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.0.2](https://ovhcloud.design/v12.0.2/?path=/docs/design-system-changelog--page) (2023-02-28)
[compare](https://github.com/ovh/design-system/compare/v12.0.1...v12.0.2)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.0.1](https://ovhcloud.design/v12.0.1/?path=/docs/design-system-changelog--page) (2023-02-28)
[compare](https://github.com/ovh/design-system/compare/v12.0.0...v12.0.1)

**Note:** Version bump only for package @ovhcloud/ods-stencil-code





[Latest version](https://ovhcloud.design/latest/?path=/docs/design-system-changelog--page)


# [12.0.0](https://ovhcloud.design/v12.0.0/?path=/docs/design-system-changelog--page) (2023-02-27)
12.0.0

**Note:** Version bump only for package @ovhcloud/ods-stencil-code
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {Description} from '@storybook/addon-docs';
import Specs from './spec.md';
import SpecsCodeContents from './specifications-code-contents.mdx';

<Description>{Specs}</Description>

## Contents
<SpecsCodeContents />
23 changes: 23 additions & 0 deletions packages-new/components/code/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { Config } from '@jest/types';
import { OdsGetJestConfig } from '@ovhcloud/ods-common-testing';

const args = process.argv.slice(2);

/**
* synchronous config for jest.
*
* example with async config :
* ```typescript
* export default async (): Promise<Config.InitialOptions> => {
* return {
* verbose: true,
* };
* };
* ```
*/
// @ts-ignore until dependencies are fixed to one unique version of @jest/types
const config: Config.InitialOptions = OdsGetJestConfig({
basePath: '<rootDir>/../../..',
args
});
export default config;
46 changes: 46 additions & 0 deletions packages-new/components/code/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "@ovhcloud/ods-component-code",
"version": "15.0.1",
"description": "ODS Code component",
"author": "OVH SAS",
"license": "Apache-2.0",
"main": "dist/index.cjs.js",
"module": "dist/index.js",
"es2015": "dist/esm/index.js",
"es2017": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"collection": "dist/collection/collection-manifest.json",
"collection:main": "dist/collection/index.js",
"scripts": {
"build:prod": "npm run build:stencil --if-present && npm run build:react --if-present && npm run build:vue --if-present",
"build": "echo \"use build:prod\"",
"build:stencil": "stencil build --docs --prod --config stencil.config.ts",
"build:react": "npm --prefix react run build",
"build:vue": "npm --prefix vue run build",
"watch": "stencil build --docs --watch --dev --config stencil.config.ts",
"start": "stencil build --docs --dev --watch --serve",
"ignore:rm": "git clean -Xdf",
"generate": "stencil generate",
"doc:api": "typedoc",
"test": "yarn run test:spec && yarn run test:e2e",
"test:spec": "stencil test --spec --config stencil.config.ts --coverage",
"test:spec:ci": "stencil test --config stencil.config.ts --spec --ci --coverage",
"test:e2e": "stencil test --e2e --config stencil.config.ts",
"test:e2e:screenshot": "stencil test --e2e --screenshot --config stencil.config.ts --passWithNoTests",
"test:e2e:screenshot:update": "stencil test --e2e --screenshot --config stencil.config.ts --update-screenshot --passWithNoTests",
"test:e2e:ci": "stencil test --config stencil.config.ts --e2e --ci",
"test:e2e:ci:screenshot": "stencil test --config stencil.config.ts --e2e --ci --screenshot --passWithNoTests",
"test:e2e:ci:screenshot:update": "stencil test --config stencil.config.ts --e2e --ci --screenshot --update-screenshot --passWithNoTests"
},
"dependencies": {
"@ovhcloud/ods-common-core": "^15.0.1",
"@ovhcloud/ods-common-stencil": "^15.0.1",
"@ovhcloud/ods-theming": "^15.0.1"
},
"devDependencies": {
"@ovhcloud/ods-common-testing": "^15.0.1",
"@ovhcloud/ods-component-button": "^15.0.1",
"@ovhcloud/ods-component-icon": "^15.0.1",
"@ovhcloud/ods-stencil-dev": "^15.0.1"
}
}
2 changes: 2 additions & 0 deletions packages-new/components/code/react/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
src/
2 changes: 2 additions & 0 deletions packages-new/components/code/react/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!dist/
src/
Loading

0 comments on commit cdb5a14

Please sign in to comment.