New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

generator-speedseed

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-speedseed

Oriented to components, allow choice template - AngularJS/Angular2/jQuery/Polymer/React/VanillaJS - BabelJS/CoffeeScript/TypeScript - Mocha/Jasmine - SaSS/ScSS/LeSS/Stylus - Jade/HTML - Gulp + Yeoman

  • 0.19.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
decreased by-18.92%
Maintainers
1
Weekly downloads
 
Created
Source

v.0.19.0

Requeriments

  • NodeJS >= 6.0.0

Index

  • English
  • Spanish

Changelog

English

  • Features and conventions
    • Test must be called *.spec.js

    • Files and folders start for _ no compile to build, used for includes properties or native includes

    • Files with .name.scss .name.js .name.jade compile in .tmp, used for includes files

      • In *.jade include -name.css -name.js -name.html
      • In *.js {%= include('name.html') %} for files .name.jade or name.html
    • Allow include routes, perfect for includes all components

      • Syntax: {%= getRoutes(folderRoute, ext, (Boolean include _files), $TPL$ replace for route, 'indent') %}
      • Example: {%= getRoutes('components', '.js', true, script(src='$TPL$'), ' ') %}
      • Example: {%= getRoutes('../components', '.styl', true, @import '$TPL$') %}
    • Allow update the core of the project through npm run update without affecting the development of the project

    • Global properties for our jades with con __global.js

    • Local properties for our jades with name.jade _name.js


Styleguide


Use

  • Once use in the Operating System
    • Install libs in the Operating System
    • npm i bower -g
    • npm i yo -g
    • npm i generator-speedseed -g
    • npm i generator-speedseed-multi-tic-tac-toe -g (template multi-tic-tac-toe)

  • Once use in the project folder
    • Launch generator and install dependencies
    • yo speedseed
    • npm i
    • bower i

  • In the project folder

    • Compile project in -build and launch project
    • npm run build

    • Compile project in -build, launch project and open navigator
    • npm run build-open

    • Compile project minified in -dist
    • npm run dist

    • Compile project minified in -dist, launch project and open navigator
    • npm run dist-open

    • Launch server -build
    • npm run serve

    • Launch server -dist
    • npm run serve-dist

    • Update generator, install dependencies and launch generator
    • npm run update

    • Create component in app/components
    • npm run component

    • Compile project in -build and launch unit test
    • npm run spec

    • Create typings for TypeScript based in typings.json
    • npm run typings

    • Ident all choice files, configurable in core-config.js
    • npm run indent

    • Compile project in -reports and launch complexity code test plato
    • npm run reports

    • Delete generate folders -build -dist -reports node_modules
    • npm run clean

Structure

  • .core => don't change this content folder, is updated with generator-speedseed next versions
  • -build => code generated with npm run build, contain code of app/ transpiled to html, css, es5. Folders and files _are ignored*
  • -dist => code generated with npm run dist, contain code minimizied of app/ transpiled to html, css, es5. Folders and files _are ignored*

  • app => development template
    • -vendor => libs external
    • components => components
      • _main.jade => include all mixins
      • components => include all css
    • css => contain css files
    • js => contain js files
    • __global.js => properties inyects to all files .jade
    • _index.js => properties inyects to file index.jade
    • index.jade => index of the app

  • .babelrc => used for babeljs for compile to ES5
  • .bowerrc => bower folder destination
  • .core-config => project routes
  • .editorconfig => list of code rules for the IDE
  • .eslintrc => list of code rules
  • .gitignore => ignore files for git
  • .yo-rc.json => created for yeoman for future updates
  • bower.json => bower dependencies
  • gulpfile.js => call gulp tasks of .core
  • package.json => packages of npm and information of the project
  • typings.json => typings of libs for TypeScript

Spanish

  • Características y convenciones
    • Test deben llamarse *.spec.js

    • Ficheros y carpetas que empiezan por _ no se compilan a build, usado para incluir propiedades o includes nativos

    • Ficheros con .nombre.scss .nombre.js .nombre.jade precompilan en .tmp, usado para incluir ficheros

      • En *.jade include -nombre.css -nombre.js -nombre.html
      • En *.js {%= include('-nombre.html') %} para ficheros .nombre.jade o nombre.html
    • Permite incluir rutas, perfecto para incluir todos los componentes

      • Sintaxis: {%= getRoutes(rutaCarpeta, ext, (Boolean incluye _files), $TPL$ reemplazado por ruta, 'identación') %}
      • Ejemplo: {%= getRoutes('components', '.js', false, script(src='$TPL$'), ' ') %}
      • Ejemplo: {%= getRoutes('../components', '.styl', true, @import '$TPL$') %}
    • Permite actualizar el núcleo del proyecto mediante npm run update sin afectar al desarrollo del proyecto

    • Propiedades globales para nuestros jades con __global.js

    • Propiedades locales para nuestros jades con nombre.jade _nombre.js


Guía de estilos


Instrucciones de uso

  • Usar una vez en el Sistema Operativo
    • Instala librerías en el Sistema Operativo
    • npm i bower -g
    • npm i yo -g
    • npm i generator-speedseed -g
    • npm i generator-speedseed-multi-tic-tac-toe -g (template multi-tic-tac-toe)

  • Usar una vez en la carpeta del proyecto
    • Lanza el generador e instalas las dependencias
    • yo speedseed
    • npm i
    • bower i

  • En la carpeta del proyecto

    • Compila el proyecto en -build y lo lanza
    • npm run build

    • Compila el proyecto en -build, lo lanza y abre el navegador
    • npm run build-open

    • Compila el proyecto minificado en -dist
    • npm run dist

    • Compila el proyecto minificado en -dist, lo lanza y abre el navegador
    • npm run dist-open

    • Lanza el server -build
    • npm run serve

    • Lanza el server -dist
    • npm run serve-dist

    • Actualiza el generador, lo ejecuta e instala las dependencias
    • npm run update

    • Crea un componente en app/components
    • npm run component

    • Compila el proyecto en -build y lanza los test unitarios
    • npm run spec

    • Crea typings para TypeScript basado en typings.json
    • npm run typings

    • Identa todos los ficheros elegidos, configurable en core-config.js
    • npm run indent

    • Compila el proyecto en -reports y lanza test de complejidad de código plato
    • npm run reports

    • Borra carpetas generadas -build -dist -reports node_modules
    • npm run clean

Structure

  • .core => no cambiar el contenido de esta carpeta, es actualizado en futuras versiones de generator-speedseed
  • -build => código generado con npm run build, contiene código de app/ transpilado a html, css, es5. Carpetas y ficheros _ son ignorados*
  • -dist => código generado con npm run dist, contiene código minificado de app/ transpilado a html, css, es5. Carpetas y ficheros _ son ignorados*

  • app => plantilla de desarrollo
    • -vendor => libs externas
    • components => componentes
      • _main.jade => incluye todos los mixins
      • components => incluye todos los css
    • css => contiene ficheros css
    • js => contiene ficheros js
    • __global.js => propiedades inyectadas a ficheros .jade
    • _index.js => propiedades inyectadas al fichero index.jade
    • index.jade => indice de la app

  • .babelrc => usado por babeljs para compilar a ES5
  • .bowerrc => carpeta de destino de bower
  • .core-config => rutas del proyecto
  • .editorconfig => lista de reglas de código para el IDE
  • .eslintrc => lista de reglas de código
  • .gitignore => ignora ficheros de git
  • .yo-rc.json => creado por yeoman para futuras actualizaciones
  • bower.json => dependencias de bower
  • gulpfile.js => llama a las tareas de gulp de -ss
  • package.json => paquetes de npm e información del proyecto
  • typings.json => typings de librerías para TypeScript

Keywords

FAQs

Package last updated on 12 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc