Comparing version 0.10.2 to 0.10.3
@@ -264,3 +264,3 @@ "use strict"; | ||
const tsSourceFiles = allSourceFiles.filter((file) => { | ||
return filesystem.hasFileExtension(file.base, ['ts']) && shouldProcessFile(file, filesConfiguration.js); | ||
return filesystem.hasFileExtension(file.base, ['ts']) && shouldProcessFile(file, filesConfiguration.ts); | ||
}); | ||
@@ -267,0 +267,0 @@ const otherSourceFiles = allSourceFiles.filter((file) => { |
@@ -90,2 +90,3 @@ "use strict"; | ||
noEmitOnError: true, | ||
removeComments: true, | ||
target: "ES2015" | ||
@@ -92,0 +93,0 @@ }, |
@@ -26,3 +26,4 @@ "use strict"; | ||
* https://github.com/sindresorhus/junk/blob/main/index.js | ||
* @default true */ | ||
* | ||
* Default value: `true` */ | ||
ignoreJunkFiles = true) { | ||
@@ -29,0 +30,0 @@ if (removeScanPath) { |
@@ -89,4 +89,5 @@ "use strict"; | ||
noEmitOnError: config.noEmitOnError, | ||
removeComments: config.removeComments, | ||
target: ts.ScriptTarget[config.target], | ||
}; | ||
} |
{ | ||
"name": "symply", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "A simple static site generator.", | ||
@@ -5,0 +5,0 @@ "author": "Oleg Legun <oleg.legun@gmail.com>", |
@@ -47,3 +47,4 @@ /* eslint-disable */ | ||
* Log debug information to the console. | ||
* @default false | ||
* | ||
* Default value: `false` | ||
**/ | ||
@@ -53,3 +54,4 @@ debugOutput: boolean | ||
* Force compile templates even if some properties/helpers are missing. | ||
* @default false | ||
* | ||
* Default value: `false` | ||
**/ | ||
@@ -59,3 +61,4 @@ ignoreMissingProperties: boolean | ||
* Format output html files using Prettier (significantly slows down the generation process). | ||
* @default false | ||
* | ||
* Default value: `false` | ||
*/ | ||
@@ -65,3 +68,4 @@ formatOutputHTML: boolean | ||
* Minify output html files. | ||
* @default false | ||
* | ||
* Default value: `false` | ||
*/ | ||
@@ -71,3 +75,4 @@ minifyOutputHTML: boolean | ||
* Omit all warning log messages. | ||
* @default false | ||
* | ||
* Default value: `false` | ||
*/ | ||
@@ -77,3 +82,4 @@ omitWarnings: boolean | ||
* Use ANSI escape sequences to add colors to logs. | ||
* @default true | ||
* | ||
* Default value: `true` | ||
*/ | ||
@@ -83,3 +89,4 @@ ansiLogging: boolean | ||
* Clear all files in distribution directory before each compilation. Use with caution - your files can be deleted if `distributionDirectoryPath` is set incorrectly. | ||
* @default false | ||
* | ||
* Default value: `false` | ||
*/ | ||
@@ -97,3 +104,4 @@ clearDistributionDirectoryOnRecompile: boolean | ||
* Set a path to prefix all __default__ SYMPLY directories (relative to your NPM project's root dir). | ||
* @default '' | ||
* | ||
* Default value: `''` | ||
* @example 'symply' -> 'symply/dist', 'symply/src', 'symply/helpers', 'symply/globals', 'symply/partials' | ||
@@ -104,3 +112,4 @@ **/ | ||
* Override default __source__ directory path. `defaultDirectoriesPrefix` will NOT be applied. | ||
* @default 'src' | ||
* | ||
* Default value: `'src'` | ||
**/ | ||
@@ -110,3 +119,4 @@ sourceDirectoryPath: string | ||
* Override default __distribution__ directory path. `defaultDirectoriesPrefix` will NOT be applied. | ||
* @default 'dist' | ||
* | ||
* Default value: `'dist'` | ||
**/ | ||
@@ -116,3 +126,4 @@ distributionDirectoryPath: string | ||
* Override default __globals__ directory path. `defaultDirectoriesPrefix` will NOT be applied. | ||
* @default 'globals' | ||
* | ||
* Default value: `'globals'` | ||
**/ | ||
@@ -122,3 +133,4 @@ globalsDirectoryPath: string | ||
* Override default __partials__ directory path. `defaultDirectoriesPrefix` will NOT be applied. | ||
* @default 'partials' | ||
* | ||
* Default value: `'partials'` | ||
**/ | ||
@@ -128,3 +140,4 @@ partialsDirectoryPath: string | ||
* Override default __helpers__ directory path. `defaultDirectoriesPrefix` will NOT be applied. | ||
* @default 'helpers' | ||
* | ||
* Default value: `'helpers'` | ||
**/ | ||
@@ -140,3 +153,4 @@ helpersDirectoryPath: string | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default ['**\/*'] - Process all files, except dotfiles | ||
* | ||
* Default value: `['**\/*']` - Process all files, except dotfiles | ||
* @example ['*.html', '*.css'] - Process only files that match these patterns | ||
@@ -148,3 +162,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default [] | ||
* | ||
* Default value: `[]` | ||
* @example ['test.hbs', 'temp/*'] - Exclude files that match these patterns | ||
@@ -159,3 +174,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default ['**\/*'] - Process all `.hbs` and `.html` files | ||
* | ||
* Default value: `['**\/*']` - Process all `.hbs` and `.html` files | ||
* @example ['index.hbs', 'articles/*.html'] - Process only files that match these patterns | ||
@@ -167,3 +183,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default [] | ||
* | ||
* Default value: `[]` | ||
* @example ['index.hbs', 'articles/*.html'] - Exclude files that match these patterns | ||
@@ -178,3 +195,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default ['**\/*'] - Process all `.css`, `.scss` and `.sass` style files | ||
* | ||
* Default value: `['**\/*']` - Process all `.css`, `.scss` and `.sass` style files | ||
* @example ['styles.css', 'styles/*.scss'] - Process only files that match these patterns | ||
@@ -186,3 +204,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default [] | ||
* | ||
* Default value: `[]` | ||
* @example ['styles.test.css', 'styles/test.scss'] - Exclude files that match these patterns | ||
@@ -197,3 +216,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default ['**\/*'] - Process all `.js` script files | ||
* | ||
* Default value: `['**\/*']` - Process all `.js` script files | ||
* @example ['main.js', 'js/*.js'] - Process only files that match these patterns | ||
@@ -205,3 +225,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default [] | ||
* | ||
* Default value: `[]` | ||
* @example ['analytics.js', 'js/*.test.js'] - Exclude files that match these patterns | ||
@@ -216,3 +237,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default ['**\/*'] - Process all `.ts` script files | ||
* | ||
* Default value: `['**\/*']` - Process all `.ts` script files | ||
* @example ['main.ts', 'ts/*.ts'] - Process only files that match these patterns | ||
@@ -224,3 +246,4 @@ */ | ||
* Use forward slash `/` as a path separator on any platform. | ||
* @default [] | ||
* | ||
* Default value: `[]` | ||
* @example ['analytics.ts', 'ts/*.test.ts'] - Exclude files that match these patterns | ||
@@ -231,3 +254,4 @@ */ | ||
* Check TypeScript code for errors. Significantly slows down the transpile process. | ||
* @default false | ||
* | ||
* Default value: `false` | ||
*/ | ||
@@ -242,8 +266,15 @@ enableLinter: boolean | ||
* Do not emit any JS files on lint error. Setting is considered only when linter is enabled. | ||
* @default true | ||
* | ||
* Default value: `true` | ||
*/ | ||
noEmitOnError: boolean | ||
/** | ||
* @default 'ES2015' | ||
* Strips all comments from TypeScript files when converting into JavaScript. | ||
* | ||
* Default value: `true` | ||
*/ | ||
removeComments: boolean | ||
/** | ||
* Default value: `'ES2015'` | ||
*/ | ||
target: | ||
@@ -303,4 +334,5 @@ | 'ES3' | ||
* Skip execution of current action | ||
* @default false | ||
* */ | ||
* | ||
* Default value: `false` | ||
*/ | ||
skip?: boolean | ||
@@ -330,3 +362,3 @@ /** | ||
toDirPath: string | string[] | ||
/** @default () => true */ | ||
/** Default value: `() => true` */ | ||
filterFunc?: FileFilterFunc | ||
@@ -347,3 +379,3 @@ } | ||
toDirPath: string | string[] | ||
/** @default () => true */ | ||
/** Default value: `() => true` */ | ||
filterFunc?: FileFilterFunc | ||
@@ -420,3 +452,2 @@ } | ||
export interface GenerationStats { | ||
@@ -423,0 +454,0 @@ generatedFilesCount: number |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228723
2394