diff --git a/.gitignore b/.gitignore index d9e4953..bac4c9a 100755 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,5 @@ icons/ /playwright/.cache/ /svg /components +/e2e/sample.json src/components/icon/svg/*.svg diff --git a/e2e/all-icon.e2e.ts b/e2e/all-icon.e2e.ts index 3d47047..0b55e87 100644 --- a/e2e/all-icon.e2e.ts +++ b/e2e/all-icon.e2e.ts @@ -8,7 +8,7 @@ */ import { ConsoleMessage, expect, test } from '@playwright/test'; -import * as iconsFile from './../dist/sample.json'; +import * as iconsFile from './sample.json'; import * as icons from './../icons'; function convertToCamelCase(value: string) { diff --git a/scripts/build-icons.ts b/scripts/build-icons.ts index e391849..f4fd5ae 100644 --- a/scripts/build-icons.ts +++ b/scripts/build-icons.ts @@ -175,8 +175,7 @@ async function buildIcons() { version, ), - writeIconSampleJson(iconCollection, path.join(rootPath, 'build-dist'), version), - writeGlobalCSSFile(path.join(rootPath, 'build-dist', 'css', 'ix-icons.css')), + writeIconSampleJson(iconCollection, path.join(rootPath, 'e2e'), version), fs.writeFile( iconsPkgPath, JSON.stringify( @@ -250,26 +249,4 @@ function getDataUrl(svgData: string) { return `"data:image/svg+xml;utf8,${svg}"`; } -async function writeGlobalCSSFile(targetPath: string) { - // Write the global css file to keep the application compiling after update to 2.0.0 - fs.ensureDirSync(path.join(targetPath, '..')); - - return fs.writeFile( - targetPath, - ` -/* -* SPDX-FileCopyrightText: 2023 Siemens AG -* -* SPDX-License-Identifier: MIT -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/ -/* -* Deprecated since 2.0.0 no global css file is necessary. -*/ - `, - ); -} - buildIcons();