Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1181)

Unified Diff: polymer_1.0.4/bower_components/prism/gulpfile.js

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « polymer_1.0.4/bower_components/prism/examples.js ('k') | polymer_1.0.4/bower_components/prism/package.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: polymer_1.0.4/bower_components/prism/gulpfile.js
diff --git a/polymer_1.0.4/bower_components/prism/gulpfile.js b/polymer_1.0.4/bower_components/prism/gulpfile.js
new file mode 100644
index 0000000000000000000000000000000000000000..25de6e500dfa33f610a39aea3fe9917b03b6e13e
--- /dev/null
+++ b/polymer_1.0.4/bower_components/prism/gulpfile.js
@@ -0,0 +1,48 @@
+var gulp = require('gulp'),
+ rename = require('gulp-rename'),
+ uglify = require('gulp-uglify'),
+ header = require('gulp-header'),
+ concat = require('gulp-concat'),
+
+ paths = {
+ components: ['components/**/*.js', '!components/**/*.min.js'],
+ main: [
+ 'components/prism-core.js',
+ 'components/prism-markup.js',
+ 'components/prism-css.js',
+ 'components/prism-clike.js',
+ 'components/prism-javascript.js',
+ 'plugins/file-highlight/prism-file-highlight.js'
+ ],
+ plugins: ['plugins/**/*.js', '!plugins/**/*.min.js']
+ };
+
+gulp.task('components', function() {
+ return gulp.src(paths.components)
+ .pipe(uglify())
+ .pipe(rename({ suffix: '.min' }))
+ .pipe(gulp.dest('components'));
+});
+
+gulp.task('build', function() {
+ return gulp.src(paths.main)
+ .pipe(header('\n/* **********************************************\n' +
+ ' Begin <%= file.relative %>\n' +
+ '********************************************** */\n\n'))
+ .pipe(concat('prism.js'))
+ .pipe(gulp.dest('./'));
+});
+
+gulp.task('plugins', function() {
+ return gulp.src(paths.plugins)
+ .pipe(uglify())
+ .pipe(rename({ suffix: '.min' }))
+ .pipe(gulp.dest('plugins'));
+});
+
+gulp.task('watch', function() {
+ gulp.watch(paths.components, ['components', 'build']);
+ gulp.watch(paths.plugins, ['plugins', 'build']);
+});
+
+gulp.task('default', ['components', 'plugins', 'build']);
« no previous file with comments | « polymer_1.0.4/bower_components/prism/examples.js ('k') | polymer_1.0.4/bower_components/prism/package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698