Skip to content

Commit

Permalink
feat(design): add Sass renderer support
Browse files Browse the repository at this point in the history
deprecate(design): duplicated `TokenReferenceRender` interface
feat(design): add generate-style builder supporting sass
deprecate(design): `generate-css` builder in favor of `generate-style` builder
doc(design): update readme to replace builder name
  • Loading branch information
kpanot committed Oct 11, 2024
1 parent caa8e87 commit 22b1a1d
Show file tree
Hide file tree
Showing 135 changed files with 7,607 additions and 4,996 deletions.
21 changes: 21 additions & 0 deletions docs/design/DEPRECATE_GENERATE_CSS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generate CSS

> [!WARNING]
> This documentation is covering a deprecated builder, please use `generate-style` instead.
The `generate-css` builder can generate CSS and CMS Metadata based on given Design Token Json files.

| Options | Default Value | Description |
| --------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **designTokenFilePatterns** | [] *Require* | Path patterns to the Design Token JSON files. <br /> Files in dependencies are supported and resolved with Node Resolver. |
| **variableType** | `'css'` | Type of the variables to generate for a Design Token. |
| **output** | *null* | Output file where the CSS will be generated. <br /> The path specified in `o3rTargetFile` will be ignore if this option is specified |
| **defaultStyleFile** | src/theme.scss | File path to generate the variable if not determined by the specifications |
| **metadataOutput** | *null* | Path to generate the metadata for the CMS. <br /> The metadata will be generated only if the file path is specified. |
| **metadataIgnorePrivate** | false | Ignore the private variable in the metadata generation. |
| **rootPath** | *null* | Root path of files where the CSS will be generated. |
| **failOnDuplicate** | false | Determine if the process should stop in case of Token duplication. |
| **templateFile** | *null* | Path to a template file (or a list of template files) to apply as default configuration to a Design Token extension. |
| **prefix** | *null* | Prefix to append to generated variables. |
| **prefixPrivate** | *null* | Prefix to append to generated private variables. |
| **watch** | false | Enable Watch mode. |
3 changes: 3 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,17 @@
"inputs": ["builders", "schematics", "middlewares", "^source"],
"outputs": [
"{projectRoot}/dist/builders/package.json",
"{projectRoot}/dist/builders/**/*.cjs",
"{projectRoot}/dist/builders/**/*.js",
"{projectRoot}/dist/builders/**/*.d.ts",
"{projectRoot}/dist/builders/**/*.d.ts.map",
"{projectRoot}/dist/schematics/package.json",
"{projectRoot}/dist/schematics/**/*.cjs",
"{projectRoot}/dist/schematics/**/*.js",
"{projectRoot}/dist/schematics/**/*.d.ts",
"{projectRoot}/dist/schematics/**/*.d.ts.map",
"{projectRoot}/dist/middlewares/package.json",
"{projectRoot}/dist/middlewares/**/*.cjs",
"{projectRoot}/dist/middlewares/**/*.js",
"{projectRoot}/dist/middlewares/**/*.d.ts",
"{projectRoot}/dist/middlewares/**/*.d.ts.map",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@ama-sdk/client-beacon/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@ama-sdk/client-fetch/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@ama-sdk/core/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@ama-sdk/schematics/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/analytics/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/apis-manager/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/application/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/artifactory-tools/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/azure-tools/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/components/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/configuration/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/builders/multi-watcher/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/add-modules/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/component/container/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/component/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/component/presenter/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/convert-component/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/ng-add-create/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/ng-add/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/page/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/renovate/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/schematics-update/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/service/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/show-modules/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/store-action/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/store/entity-async/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/store/entity-sync/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/store/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/store/simple-async/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@o3r/core/schematics/store/simple-sync/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This files is used to allow the usage of the builder within @o3r/framework mono-repository.
This file is used to allow the use of the builder in the @o3r/framework mono-repository.
It should not be part of the package.
*/
Expand Down
Loading

0 comments on commit 22b1a1d

Please sign in to comment.