1.0.5 • Published 7 years ago

gulp-ngn-css v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Requirements

  • PHP 5.6 CLI installed
  • Download Ngn components
mkdir ngn-env
cd ngn-env
git clone https://github.com/majexa/ngn.git
git clone https://github.com/majexa/ngn-cs.git
git clone https://github.com/majexa/run.git
git clone https://github.com/mootools/mootools-core
git clone https://github.com/mootools/mootools-more

Usage

Next example

  • Parses <script> tags in index.html
  • Builds NgnJs classes tree and collect relevant CSS files
  • Places it build/m/css folder

Contents of index.html

<script>
new Ngn.SomeClass();
</script>
var gulp = require('gulp');
var ngnCss = require('gulp-ngn-css');

gulp.task('build', function () {
  var opt = {
    buildFolder: 'build/m',
    name: 'main'
  };
  var reportOptions = {
    err: true,
    stderr: true,
    stdout: true
  };
  gulp.src('index.html', {read: false})
    .pipe(ngnCss(opt))
    .pipe(ngnCss.reporter(reportOptions))
});
1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago