forked from epicmaxco/vuestic-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: upgrade ag-grid to 32 (epicmaxco#4410)
* feat: upgrade ag-grid to 32 * fix(ag-grid): improve UI and build * chore(ag-grid): bump 1.2.0
- Loading branch information
Showing
20 changed files
with
573 additions
and
762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
demo.html | ||
rollup.config.js | ||
build.ts | ||
playground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { dirname } from 'pathe'; | ||
import { compileAsync, FileImporter } from 'sass' | ||
import { writeFile, stat, mkdir } from 'fs/promises' | ||
import { existsSync } from 'fs'; | ||
|
||
const nodeImporter: FileImporter = { | ||
findFileUrl(url, context) { | ||
if (url.startsWith('.') || url.startsWith('url') || url.startsWith('http')) { | ||
return null | ||
} | ||
|
||
try { | ||
const resolved = import.meta.resolve(url) | ||
return new URL(resolved) | ||
} catch (e) { | ||
return null | ||
} | ||
}, | ||
} | ||
|
||
const compileScss = async (inputPath: string, outputPath: string) => { | ||
const result = await compileAsync(inputPath, { | ||
style: 'compressed', | ||
importers: [nodeImporter], | ||
}) | ||
|
||
const dirName = dirname(outputPath) | ||
|
||
if (!existsSync(dirName)) { | ||
await mkdir(dirName, { recursive: true }) | ||
} | ||
|
||
// Write result to output file | ||
await writeFile(outputPath, result.css, { | ||
flag: 'w', | ||
}) | ||
} | ||
|
||
Promise.all([ | ||
compileScss('./src/styles/index.scss', './dist/ag-theme-vuestic.css'), | ||
compileScss('./src/styles/theme.scss', './dist/ag-theme-vuestic-clean.css'), | ||
]) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.