mirror of
https://github.com/material-components/material-web.git
synced 2024-08-17 09:30:27 +03:00
26 lines
532 B
JavaScript
26 lines
532 B
JavaScript
/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import * as fs from 'fs';
|
|
|
|
for (let i = 2; i < process.argv.length; i++) {
|
|
try {
|
|
const filePath = process.argv[i];
|
|
const content = fs.readFileSync(filePath);
|
|
fs.writeFileSync(`${filePath}.ts`, `/**
|
|
* @license
|
|
* Copyright 2022 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
import {css} from 'lit';
|
|
export const styles = css\`${content.toString('utf8')}\`;
|
|
`);
|
|
|
|
} catch (error) {
|
|
console.error(error);
|
|
}
|
|
}
|