Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…us commit.
- Loading branch information
Showing
5 changed files
with
117 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { RollupPluginSassOptions } from "./types"; | ||
import { Plugin as RollupPlugin } from 'rollup'; | ||
declare const _default: (options?: RollupPluginSassOptions) => RollupPlugin; | ||
export = _default; |
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 @@ | ||
export declare function insertStyle(css: any): any; |
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,81 @@ | ||
import { types } from 'sass'; | ||
export interface IdAndContentObject { | ||
id?: string; | ||
content?: string; | ||
} | ||
export declare type RollupPluginSassOutputFn = (styles: string, styleNodes: IdAndContentObject[]) => any; | ||
export declare type RollupPluginSassProcessorFn<T = string | { | ||
css: string; | ||
}> = (styles: string, id: string) => Promise<T> | T; | ||
export interface RollupPluginSassOptions { | ||
exclude?: string | string[]; | ||
include?: string | string[]; | ||
insert?: boolean; | ||
options?: SassOptions; | ||
processor?: RollupPluginSassProcessorFn; | ||
output?: boolean | string | RollupPluginSassOutputFn; | ||
runtime?: any; | ||
} | ||
export declare type SassImporterResult = null | { | ||
file?: string; | ||
contents?: string; | ||
} | Error; | ||
export declare type SassDoneFn<T extends SassImporterResult = SassImporterResult> = (result: T) => void | T; | ||
export declare type SassImporter<T extends SassImporterResult = SassImporterResult> = (url: string, prev: string, done: SassDoneFn<T>) => void | T; | ||
export interface SassFunctionsObject { | ||
[index: string]: types.Color | types.Number | types.String | types.List | types.Map | types.Null; | ||
} | ||
export interface SassOptions { | ||
data?: string; | ||
file?: string; | ||
functions?: SassFunctionsObject; | ||
importer?: SassImporter | SassImporter[]; | ||
includePaths?: string[]; | ||
indentType?: 'space' | 'tab'; | ||
indentWidth?: number; | ||
indentedSyntax?: boolean; | ||
linefeed?: string; | ||
omitSourceMapUrl?: boolean; | ||
outFile?: string; | ||
outputStyle?: 'compressed' | 'expanded'; | ||
sourceMapContents?: boolean; | ||
sourceMapEmbed?: boolean; | ||
sourceMapRoot?: string; | ||
sourceMap?: boolean | string | undefined; | ||
} | ||
export interface RollupAssetInfo { | ||
fileName: string; | ||
name?: string; | ||
source: string | Uint8Array; | ||
type: 'asset'; | ||
} | ||
export interface RollupChunkInfo { | ||
code: string; | ||
dynamicImports: string[]; | ||
exports: string[]; | ||
facadeModuleId: string | null; | ||
fileName: string; | ||
implicitlyLoadedBefore: string[]; | ||
imports: string[]; | ||
importedBindings: { | ||
[imported: string]: string[]; | ||
}; | ||
isDynamicEntry: boolean; | ||
isEntry: boolean; | ||
isImplicitEntry: boolean; | ||
map: { | ||
[index: string]: string; | ||
} | null; | ||
modules: { | ||
[id: string]: { | ||
renderedExports: string[]; | ||
removedExports: string[]; | ||
renderedLength: number; | ||
originalLength: number; | ||
code: string | null; | ||
}; | ||
}; | ||
name: string; | ||
referencedFiles: string[]; | ||
type: 'chunk'; | ||
} |
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 @@ | ||
export declare const log: any, warn: any, error: any, isset: (x: any) => boolean, isString: (x: any) => boolean, isObject: (x: any) => boolean, isFunction: (x: any) => boolean; |
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,30 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "CommonJS", | ||
"moduleResolution": "node", | ||
"target": "es2015", | ||
"outDir": "./dist", | ||
"declaration": true, | ||
"declarationDir": "./dist", | ||
"lib": [ | ||
"es2015", | ||
"dom" | ||
], | ||
"removeComments": true, | ||
"preserveConstEnums": true, | ||
"noImplicitAny": false, | ||
"sourceMap": true, | ||
"esModuleInterop": true, | ||
"downlevelIteration": true, | ||
"importHelpers": false, | ||
"typeRoots": [ | ||
"node_modules/@types" | ||
] | ||
}, | ||
"include": [ | ||
"./src/*" | ||
], | ||
"exclude": [ | ||
"**/node_modules/**" | ||
] | ||
} |