Combined frontend setup for web projects consisting of the generator-pioneerscss inuitcss setup and the iptools-utils Javascript utilities
-
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.
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'
]
}
}
}
Copyright © 2018 Interactive Pioneers GmbH. Licenced under GPL-3.