npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-typo3-gulp

v1.1.0

Published

yo generator for gulp based typo3 theme development

Downloads

12

Readme

generator-typo3-gulp

yo generator for gulp based typo3 theme development

This setup will boost your workflow to ultimate. Its perfect for simple sites that can be build in a week. The focus is not on heavy php extension developing but creating themes. if you need custom content elements, go with DCE to get fastest and best results.

Allows you to develop themes locally with git/less/gulp. No need for a server with nodejs or root. Develop local while this setup pushes your changes to the server in the background. They will be ready before you've switched to the browser window.

Features

  • LiveReload
  • fluid templates (no more marker)
  • Inject CSS changes without reload
  • Less
  • Sourcemaps (served from localhost for speedboost)
  • bower with mainbowerfiles (auto include required files)
  • gulp
  • minify/ulify
  • really fast build through caching
  • auto deploy to server via ftp
  • auto include bower files
  • iconfont
  • autoprefix your css
  • support for dce
  • jslint

setup

to run this setup you need nodejs locally available (not on typo3 server!)

1. install yeoman

Clone this Repository as a boilerplate for new projects with

$ sudo npm install -g yo

2. install typo3-gulp generator

this setup reqires nodejs and npm.

$ sudo npm i -g generator-typo3-gulp

3. run yo-generator

$ yo typo3-gulp

enter your project data now.

4. configure typo3

now we have to tell typo3 where our TypoScript files will be located (fileadmin/template/ts). My TypoScript files end with "*.ts.txt" so they dont interfere with TypeScript Files.

  1. Create new typoscript template or replace an existing one with following line

    Setup: <INCLUDE_TYPOSCRIPT: source="DIR:fileadmin/template/ts/setup" extensions="txt">

    Constants: <INCLUDE_TYPOSCRIPT: source="DIR:fileadmin/template/ts/constants" extensions="txt">

    PageTs: <INCLUDE_TYPOSCRIPT: source="DIR:fileadmin/template/ts/pageTs" extensions="txt">

5. fire it up

$ gulp

6. deploy

in order to finally deploy your website use the deploy task. (no sourcemaps)

$ gulp deploy

to access your typo3, go to: http://localhost:3000

What you should Know..

TypoScript

Is stored in src/ts/. You have to include 1 line in your page typoscript setup to include everything. See #4.

less

this setup is based on less. To overwrite less variables of your bower modules use ./variables.json, example for font-awesome-font path is included.

javascript

no linting jet but sourcemaps are working.

iconfont

to generate the iconfont from the svg's in ./iconfont/ just run:

gulp iconfont

make sure the css is included to your setup.

Delete files on Server

be aware: by default gulp will only upload files to the server. If you delete a file locally it is still on the server. Run the cleanRemote task from time to time to get rid of old files.

gulp cleanRemote

install bower dependencies

bower dependencies will be automatically included into your template. just install them via

$ bower install --save angular-material

and restart gulp.

Problems

no changes ? make sure you are logged in to avoid caching of typoscript and html files

You cant login into Typo3 Backend through localhost:3000? just don't. Use the localhost url for frontend only. You don't want page-reload affect your backend.