https://github.com/liquidlight/gulp-typoscript-concat
Concatonate TypoScript files for TYPO3
https://github.com/liquidlight/gulp-typoscript-concat
gulp-typoscript-concat partials typo3 typoscript typoscript-files
Last synced: 3 months ago
JSON representation
Concatonate TypoScript files for TYPO3
- Host: GitHub
- URL: https://github.com/liquidlight/gulp-typoscript-concat
- Owner: liquidlight
- Created: 2020-01-16T14:56:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T07:23:24.000Z (almost 5 years ago)
- Last Synced: 2025-10-30T06:28:41.667Z (5 months ago)
- Topics: gulp-typoscript-concat, partials, typo3, typoscript, typoscript-files
- Language: JavaScript
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Gulp Typoscript Concat
[](https://snyk.io/test/github/liquidlight/gulp-typoscript-concat)
A gulp plugin which allows concatenation of TypoScript files for TYPO3.
This allows you to develop with your `.ts` files in partials, but with a compiled, single file at the end.
## Installation
```bash
npm install --save-dev gulp-typoscript-concat
```
## Usage
#### Gulpfile
```js
const typoscriptConcat = require('gulp-typoscript-concat');
gulp.src('*.ts')
.pipe(typoscriptConcat({
basepath: '/',
debug: true
}))
.pipe(gulp.dest(config.paths.dest));
```
#### TypoScript
Include your TypoScript partials using syntax similar to SCSS
```
@imports 'partials/navigation.ts'
@imports 'EXT:beuser/Configuration/TypoScript/setup.txt'
```
Using the `EXT:` prefix, will look in:
- `basepath/typo3conf/ext`
- `basepath/typo3/ext`
- `basepath/typo3/sysext`
### typoscriptConcat([options])
#### options
Type: `object`
##### options.basepath
Type: `string`
Default: `''`
The path to your site root, relative to your `gulpfile.js`. Your site root is
where you `typo3` and `typo3conf` folders are located
##### options.debug
Type: `boolean`
Default: `false`
With debug enabled, the paths will be inserted into the copiled file, allowing
you to see where each file starts