mirror of
				https://github.com/mdbootstrap/mdb-ui-kit.git
				synced 2025-11-04 01:47:35 +03:00 
			
		
		
		
	dev-ability with gulp
This commit is contained in:
		
							parent
							
								
									c38e14d28c
								
							
						
					
					
						commit
						be67a7e15a
					
				| 
						 | 
				
			
			@ -49,8 +49,10 @@ export default function (gulp, corePreset, options) {
 | 
			
		|||
 | 
			
		||||
  const js = new Aggregate(gulp, 'js',
 | 
			
		||||
    series(gulp,
 | 
			
		||||
      parallel(gulp,
 | 
			
		||||
        new EsLint(gulp, preset, prefix),
 | 
			
		||||
      new EsLint(gulp, corePreset, {task: false}), // lint the core as well - easier for development
 | 
			
		||||
        new EsLint(gulp, corePreset, {task: false}) // lint the core as well - easier for development
 | 
			
		||||
      ),
 | 
			
		||||
      parallel(gulp,
 | 
			
		||||
        new RollupIife(gulp, preset, prefix, options.rollupConfig, {
 | 
			
		||||
          options: {
 | 
			
		||||
| 
						 | 
				
			
			@ -73,11 +75,13 @@ export default function (gulp, corePreset, options) {
 | 
			
		|||
 | 
			
		||||
  const css = new Aggregate(gulp, 'css',
 | 
			
		||||
    series(gulp,
 | 
			
		||||
      parallel(gulp,
 | 
			
		||||
        new ScssLint(gulp, preset, prefix, {
 | 
			
		||||
          source: {glob: ['**/*.scss', '!docs.scss']},
 | 
			
		||||
          watch: {glob: ['**/*.scss', '!docs.scss']}
 | 
			
		||||
        }),
 | 
			
		||||
      new ScssLint(gulp, corePreset, {task: false}), // lint the core as well - easier for development
 | 
			
		||||
        new ScssLint(gulp, corePreset, {task: false}) // lint the core as well - easier for development
 | 
			
		||||
      ),
 | 
			
		||||
      new Sass(gulp, preset, prefix),
 | 
			
		||||
      new CssNano(gulp, preset, prefix)
 | 
			
		||||
    ),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -124,15 +124,22 @@ const defaultRecipes = new Aggregate(gulp, 'default', series(gulp,
 | 
			
		|||
// load all docs tasks
 | 
			
		||||
let docsDefaultRecipes = gulpDocs(gulp, preset, {rollupConfig: rollupConfig})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// build - both core and docs
 | 
			
		||||
const build = new Aggregate(gulp, 'build',
 | 
			
		||||
  parallel(gulp,
 | 
			
		||||
    defaultRecipes,
 | 
			
		||||
    docsDefaultRecipes
 | 
			
		||||
  )
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// publish
 | 
			
		||||
new Aggregate(gulp, 'publish',
 | 
			
		||||
 | 
			
		||||
  series(gulp,
 | 
			
		||||
    new Prepublish(gulp, preset),   // asserts committed
 | 
			
		||||
 | 
			
		||||
    defaultRecipes,
 | 
			
		||||
 | 
			
		||||
    docsDefaultRecipes,
 | 
			
		||||
    build,
 | 
			
		||||
 | 
			
		||||
    // ^^^docs:default cleans docs/dist, so we need to re-copy dist to docs in this scenario
 | 
			
		||||
    parallel(gulp, copyCssToDocs, copyJsToDocs),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user