iptools-frontend
v0.1.0
Published
A frontend setup consisting of several SCSS and Javascript packages
Downloads
2
Maintainers
Readme
iptools-frontend
Combined frontend setup for web projects consisting of the generator-pioneerscss inuitcss setup and the iptools-utils Javascript utilities
Getting Started
Move to your app folder, for example:
$ cd ~/projects/my-app
Install Yeoman and the iptools-frontend:
$ npm i yo iptools-frontend
Move to folder in which SCSS structure should be created at, e.g.:
$ cd styles
Scaffold structure via the included generator by running:
$ yo pioneerscss
Include iptools-utils.js from the included iptools-utils package as a dependency in your Javascript build process.
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.