Skip to content

interactive-pioneers/ip-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iptools-frontend

Combined frontend setup for web projects consisting of the generator-pioneerscss inuitcss setup and the iptools-utils Javascript utilities

Getting Started

  1. Move to your app folder, for example:

     $ cd ~/projects/my-app
    
  2. Install Yeoman and the iptools-frontend:

     $ npm i yo iptools-frontend
    
  3. Move to folder in which SCSS structure should be created at, e.g.:

     $ cd styles     
    
  4. Scaffold structure via the included generator by running:

     $ yo pioneerscss
    
  5. Include iptools-utils.js from the included iptools-utils package as a dependency in your Javascript build process.

  6. Include the generated styles.scss and iptools-utils.scss from the included iptools-utils package in your CSS build process. An example is given below.

CSS build task example

Grunt task for grunt-sass:

var config = {
  src: 'src',
  dist: 'dist'
};
 
sass: {
  options: {
    outputStyle: 'expanded',
    includePaths: ['node_modules'],
    sourceMap: false
  },
  dist: {
    files: {
      '<%= config.dist %>/assets/css/styles.css': [
        '<%= config.src %>/assets/css/styles.scss',
        'node_modules/iptools-utils/src/iptools-utils.scss'
      ]
    }
  }
}

Licence

Copyright © 2018 Interactive Pioneers GmbH. Licenced under GPL-3.

About

All-in-one frontend setup of SCSS and Javascript packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published