Skip to content

Commit

Permalink
Fix code syntax highlighting, remove deprecated files [#150374399]
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Xiao <mxiao@pivotal.io>
  • Loading branch information
Jonathan Berney authored and Ming Xiao committed Sep 12, 2017
1 parent 0a4fc3c commit 4ae88ee
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 152 deletions.
4 changes: 2 additions & 2 deletions src/css/code/code.scss
Expand Up @@ -9,8 +9,8 @@
color: inherit;
}

.pre-scrollable {
overflow-y: auto; //bootstrap override
pre.pre-scrollable {
overflow-y: scroll; //bootstrap override
}

.inline-dark {
Expand Down
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions src/prismjs/LICENSE

This file was deleted.

25 changes: 0 additions & 25 deletions src/prismjs/package.json

This file was deleted.

17 changes: 1 addition & 16 deletions tasks/css-components.js
Expand Up @@ -38,19 +38,4 @@ gulp.task('css-build', callback => runSequence('css-clean', [
'css-build-src',
'css-build-assets',
'css-build-variables-and-mixins-package'
], callback));

gulp.task('css-publish', ['css-build'], async () => {
if (!argv.component) {
return new Error('Usage: gulp css-publish --component <component-name>');
}

const publish = argv.dry ? publishFakePackages() : publishPackages();

await publish([
{
name: `pui-css-${argv.component}`,
dir: path.join('dist', 'css', argv.component)
}
]);
});
], callback));
3 changes: 2 additions & 1 deletion tasks/dev.js
Expand Up @@ -39,5 +39,6 @@ gulp.task('build', [
'build-readme',
'build-package',
'css-build',
'react-build'
'react-build',
'js-build'
]);
23 changes: 23 additions & 0 deletions tasks/js-components.js
@@ -0,0 +1,23 @@
import del from 'del';
import gulp from 'gulp';
import path from 'path';
import runSequence from 'run-sequence';
import {publishPackages} from './helpers/publish-helper';

const plugins = require('gulp-load-plugins')();
const argv = require('yargs').argv;

const COPYRIGHT = '/*(c) Copyright 2015 Pivotal Software, Inc. All Rights Reserved.*/\n';
const buildFolder = 'dist/js';

gulp.task('js-build-src', function() {
return gulp.src('src/js/**/*.js')
.pipe(plugins.plumber())
.pipe(plugins.babel())
.pipe(plugins.header(COPYRIGHT))
.pipe(gulp.dest(buildFolder));
});

gulp.task('js-clean', callback => del([buildFolder], callback));

gulp.task('js-build', callback => runSequence('js-clean', 'js-build-src', callback));
21 changes: 1 addition & 20 deletions tasks/react-components.js
@@ -1,12 +1,8 @@
import del from 'del';
import gulp from 'gulp';
import path from 'path';
import runSequence from 'run-sequence';
import {publishPackages} from './helpers/publish-helper';

const plugins = require('gulp-load-plugins')();
const argv = require('yargs').argv;

const COPYRIGHT = '/*(c) Copyright 2015 Pivotal Software, Inc. All Rights Reserved.*/\n';
const buildFolder = 'dist/react';

Expand All @@ -20,19 +16,4 @@ gulp.task('react-build-src', function() {

gulp.task('react-clean', callback => del([buildFolder], callback));

gulp.task('react-build', callback => runSequence('react-clean', 'react-build-src', callback));

gulp.task('react-publish', ['react-build'], async () => {
if (!argv.component) {
return new Error('Usage: gulp react-publish --component <component-name>');
}

const publish = argv.dry ? publishFakePackages() : publishPackages();

await publish([
{
name: `pui-react-${argv.component}`,
dir: path.join('dist', 'react', argv.component)
}
]);
});
gulp.task('react-build', callback => runSequence('react-clean', 'react-build-src', callback));
67 changes: 0 additions & 67 deletions tasks/release-prepare.js

This file was deleted.

0 comments on commit 4ae88ee

Please sign in to comment.