Skip to content

Commit

Permalink
ci: use gitsubmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 20, 2023
1 parent a05d2a1 commit 0ecc5ed
Show file tree
Hide file tree
Showing 85 changed files with 2,076 additions and 2,081 deletions.
4 changes: 0 additions & 4 deletions .browserslistrc

This file was deleted.

File renamed without changes.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ jobs:
name: Build libs
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: taiga-family/ci/actions/[email protected]
- uses: taiga-family/ci/actions/[email protected]
with:
node-path: |
**/node_modules/**
**/taiga-ui/node_modules/**
- run: ls taiga-ui
- run: npx nx show projects
- name: Build library
run: npx nx build tui-editor

Expand Down
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "taiga-ui"]
path = taiga-ui
url = [email protected]:taiga-family/taiga-ui.git
branch = main
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/dist/**
**/coverage/**
package-lock.json
taiga-ui/**
.husky
2 changes: 1 addition & 1 deletion apps/demo-cypress/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "demo-cypress",
"name": "editor-demo-cypress",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/demo-cypress/cypress",
"projectType": "application",
Expand Down
17 changes: 10 additions & 7 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "demo",
"name": "editor-demo",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/demo/src",
Expand All @@ -25,14 +25,17 @@
},
{
"glob": "**/*",
"input": "node_modules/@taiga-ui/icons/src",
"input": "taiga-ui/projects/icons/src",
"output": "assets/taiga-ui/icons"
}
],
"stylePreprocessorOptions": {
"includePaths": ["taiga-ui/projects/core/styles", "taiga-ui/projects/styles"]
},
"styles": [
"node_modules/@taiga-ui/core/styles/taiga-ui-theme.less",
"node_modules/@taiga-ui/core/styles/taiga-ui-fonts.less",
"node_modules/@taiga-ui/styles/taiga-ui-global.less",
"taiga-ui/projects/core/styles/taiga-ui-theme.less",
"taiga-ui/projects/core/styles/taiga-ui-fonts.less",
"taiga-ui/projects/styles/taiga-ui-global.less",
"apps/demo/src/styles.less"
],
"scripts": [
Expand Down Expand Up @@ -94,10 +97,10 @@
},
"configurations": {
"production": {
"browserTarget": "demo:build:production"
"browserTarget": "editor-demo:build:production"
},
"development": {
"browserTarget": "demo:build:development"
"browserTarget": "editor-demo:build:development"
}
},
"defaultConfiguration": "development"
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/app.browser.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ import {TuiLogoModule} from './modules/logo/logo.module';

return `${link}/${context.package.toLowerCase()}/src/lib/tui-editor/${(
context.header[0].toLowerCase() + context.header.slice(1)
).replace(/[A-Z]/g, m => `-${m.toLowerCase()}`)}`;
).replace(/[A-Z]/g, (m: string) => `-${m.toLowerCase()}`)}`;
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/app.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
font: var(--tui-font-text-m);
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/pages/color-picker/examples/4/index.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

input {
.fullsize();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

.tool-button {
.transition(background);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

.tool-button {
.transition(background);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

.tool-button {
.transition(background);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

.tool-button {
.transition(background);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

.loader {
.fullsize(fixed);
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/styles.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/styles/taiga-ui-global';
@import 'taiga-ui-global';
@import '~highlight.js/styles/github.css';

body {
Expand Down
5 changes: 3 additions & 2 deletions apps/demo/webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {GLOBAL_DEFS_FOR_TERSER_WITH_AOT} from '@angular/compiler-cli';
import {tuiIsObject} from '@taiga-ui/cdk';
import TerserPlugin from 'terser-webpack-plugin';
import {Configuration} from 'webpack';
import {merge} from 'webpack-merge';
Expand Down Expand Up @@ -105,7 +104,9 @@ const config: Configuration = {
export default (ngConfigs: Configuration): Configuration => {
const ngRules = [...(ngConfigs.module?.rules || [])].map(rule => {
if (
tuiIsObject(rule) &&
// eslint-disable-next-line @taiga-ui/experience/no-typeof
typeof rule === `object` &&
!!rule &&
DO_NOT_MUTATE_RAW_FILE_CONTENTS.some(
pattern => rule.test instanceof RegExp && rule.test?.test(pattern),
)
Expand Down
5 changes: 1 addition & 4 deletions libs/tui-editor/abstract/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
]
"entryFile": "index.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
.createStackingContext();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
.createStackingContext();
Expand Down
3 changes: 2 additions & 1 deletion libs/tui-editor/components/color-selector/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
"../../../../taiga-ui/projects/core/styles",
"../../../../taiga-ui/projects/styles"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion libs/tui-editor/components/edit-link/edit-link.style.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
display: block;
Expand Down
3 changes: 2 additions & 1 deletion libs/tui-editor/components/edit-link/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
"../../../../taiga-ui/projects/core/styles",
"../../../../taiga-ui/projects/styles"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
position: relative;
Expand Down
3 changes: 2 additions & 1 deletion libs/tui-editor/components/editor-resizable/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
"../../../../taiga-ui/projects/styles",
"../../../../taiga-ui/projects/core/styles"
]
}
}
3 changes: 2 additions & 1 deletion libs/tui-editor/components/editor-socket/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
"../../../../taiga-ui/projects/core/styles",
"../../../../taiga-ui/projects/styles"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

pre {
white-space: pre-wrap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

// TODO: drop in v4.0 classes without prefix `t-`
summary {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

.tui-group-node {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion libs/tui-editor/components/editor-socket/styles/link.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

a:not([data-type='jump-anchor']) {
color: var(--tui-link);
Expand Down
2 changes: 1 addition & 1 deletion libs/tui-editor/components/editor-socket/styles/list.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

ul,
ol {
Expand Down
2 changes: 1 addition & 1 deletion libs/tui-editor/components/editor-socket/styles/media.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

&._preview-image img {
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

.t-editor-placeholder:before {
content: attr(data-placeholder);
Expand Down
2 changes: 1 addition & 1 deletion libs/tui-editor/components/editor-socket/styles/table.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

table {
border-collapse: collapse;
Expand Down
2 changes: 1 addition & 1 deletion libs/tui-editor/components/editor-socket/styles/text.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

h1,
h2,
Expand Down
2 changes: 1 addition & 1 deletion libs/tui-editor/components/editor/editor.component.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
.createStackingContext();
Expand Down
3 changes: 2 additions & 1 deletion libs/tui-editor/components/editor/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
"../../../../taiga-ui/projects/core/styles",
"../../../../taiga-ui/projects/styles"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '@taiga-ui/core/styles/taiga-ui-local.less';
@import 'taiga-ui-local.less';

:host {
display: block;
Expand Down
3 changes: 2 additions & 1 deletion libs/tui-editor/components/input-color/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
"../../../../taiga-ui/projects/core/styles",
"../../../../taiga-ui/projects/styles"
]
}
}
5 changes: 1 addition & 4 deletions libs/tui-editor/components/ng-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../core/styles"
]
"entryFile": "index.ts"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../../core/styles"
"../../../../../taiga-ui/projects/core/styles",
"../../../../../taiga-ui/projects/styles"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../../core/styles"
]
"entryFile": "index.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../../core/styles"
]
"entryFile": "index.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../../core/styles"
]
"entryFile": "index.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../../core/styles"
]
"entryFile": "index.ts"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"lib": {
"entryFile": "index.ts",
"styleIncludePaths": [
"../../../../core/styles"
]
"entryFile": "index.ts"
}
}
Loading

0 comments on commit 0ecc5ed

Please sign in to comment.