Skip to content

Commit

Permalink
(#412) Update build pipeline for CCM
Browse files Browse the repository at this point in the history
This updates the build pipeline slightly for the CCM
project. Instead of the dist folder being cleaned in
choco-theme, it is now cleaned in a file in the repository
itself due to race conditions and ordering of scripts being
executed. A line was added to the purgecss config to ensure
that any styles related to syntax highlighting are not purged.
In addition, an extra console.log has been removed that is
unneeded.
  • Loading branch information
st3phhays committed Sep 11, 2024
1 parent d12b783 commit d728eff
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 99 deletions.
24 changes: 12 additions & 12 deletions CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ limitations under the License.
```

#### [@playwright/test@1.46.1](https://github.com/microsoft/playwright)
#### [@playwright/test@1.47.0](https://github.com/microsoft/playwright)

[Repository Link](https://github.com/microsoft/playwright)

No additional license information is available for this package.
Refer to the license text above, listed under [Apache License 2.0](#apache-license-20).

#### [typescript@5.5.4](https://github.com/Microsoft/TypeScript)
#### [typescript@5.6.2](https://github.com/microsoft/TypeScript)

[Repository Link](https://github.com/Microsoft/TypeScript)
[Repository Link](https://github.com/microsoft/TypeScript)

No additional license information is available for this package.
Refer to the license text above, listed under [Apache License 2.0](#apache-license-20).
Expand Down Expand Up @@ -683,7 +683,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
```

#### [@eonasdan/tempus-dominus@6.9.10](https://github.com/Eonasdan/tempus-dominus)
#### [@eonasdan/tempus-dominus@6.9.11](https://github.com/Eonasdan/tempus-dominus)

[Repository Link](https://github.com/Eonasdan/tempus-dominus)

Expand Down Expand Up @@ -711,7 +711,7 @@ Refer to the license text above, listed under [MIT License](#mit-license).
No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [@types/node@20.16.2](https://github.com/DefinitelyTyped/DefinitelyTyped)
#### [@types/node@20.16.5](https://github.com/DefinitelyTyped/DefinitelyTyped)

[Repository Link](https://github.com/DefinitelyTyped/DefinitelyTyped)

Expand Down Expand Up @@ -767,14 +767,14 @@ Refer to the license text above, listed under [MIT License](#mit-license).
No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [[email protected].4](https://github.com/DataTables/Dist-DataTables-Bootstrap5)
#### [[email protected].6](https://github.com/DataTables/Dist-DataTables-Bootstrap5)

[Repository Link](https://github.com/DataTables/Dist-DataTables-Bootstrap5)

No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [[email protected].4](https://github.com/DataTables/Dist-DataTables-DataTables)
#### [[email protected].6](https://github.com/DataTables/Dist-DataTables-DataTables)

[Repository Link](https://github.com/DataTables/Dist-DataTables-DataTables)

Expand Down Expand Up @@ -802,7 +802,7 @@ Refer to the license text above, listed under [MIT License](#mit-license).
No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [eslint-plugin-import@2.29.1](https://github.com/import-js/eslint-plugin-import)
#### [eslint-plugin-import@2.30.0](https://github.com/import-js/eslint-plugin-import)

[Repository Link](https://github.com/import-js/eslint-plugin-import)

Expand Down Expand Up @@ -851,7 +851,7 @@ Refer to the license text above, listed under [MIT License](#mit-license).
No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [[email protected].16](https://github.com/vakata/jstree)
#### [[email protected].17](https://github.com/vakata/jstree)

[Repository Link](https://github.com/vakata/jstree)

Expand Down Expand Up @@ -900,7 +900,7 @@ Refer to the license text above, listed under [MIT License](#mit-license).
No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [[email protected].41](https://github.com/postcss/postcss)
#### [[email protected].45](https://github.com/postcss/postcss)

[Repository Link](https://github.com/postcss/postcss)

Expand All @@ -921,7 +921,7 @@ Refer to the license text above, listed under [MIT License](#mit-license).
No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [[email protected].2](https://github.com/SortableJS/Sortable)
#### [[email protected].3](https://github.com/SortableJS/Sortable)

[Repository Link](https://github.com/SortableJS/Sortable)

Expand Down Expand Up @@ -963,7 +963,7 @@ Refer to the license text above, listed under [MIT License](#mit-license).
No additional license information is available for this package.
Refer to the license text above, listed under [MIT License](#mit-license).

#### [sweetalert2@11.12.4](https://github.com/sweetalert2/sweetalert2)
#### [sweetalert2@11.14.0](https://github.com/sweetalert2/sweetalert2)

[Repository Link](https://github.com/sweetalert2/sweetalert2)

Expand Down
4 changes: 0 additions & 4 deletions build/build-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ import { repositoryConfig } from './data/repository-config';
const init = async () => {
console.log('🚀 Compiling and minifying repository JS...');

if (repository.name === repositoryConfig.ccm.name) {
await fs.rm(`${repository.js}dist`, { force: true, recursive: true });
}

let esbuildOptions: esbuild.BuildOptions = {
entryPoints: [''],
target: 'es2015',
Expand Down
1 change: 1 addition & 0 deletions build/data/repository-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ repositoryConfig.ccm.purgeCss = {
/^playwright-/,
'tooltip',
/^tooltip-/,
/^code-toolbar/,
/^text-bg-(blue|pink|purple|green|red|yellow|orange)/,
/^fill-(blue|pink|purple|green|red|yellow|orange|success|danger|info|primary)/
]
Expand Down
1 change: 0 additions & 1 deletion js/src/util/set-cookie.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export const setCookie = (name, value, expirationDays, domainName) => {
if (expirationDays === 'never') {
expires = setCookieExpirationNever();
} else if (expirationDays === 'expired') {
console.log('expired');
expires = 'expires=Thu, 01 Jan 1970 00:00:00 UTC';
} else {
const d = new Date();
Expand Down
Loading

0 comments on commit d728eff

Please sign in to comment.