This repository has been archived by the owner on Mar 29, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin work on 2.4.0 * Finish gulp pipeline * 2.4.0 Progress * Finish early stages of data cleaning - committing before breaking code into modules * Finish modularizing code + begin working on manual citations * Finish manual reference insertion * Begin working on smart bibliography * Continue with smart bibliography * Commit prior to hacking around with webpack * Commit prior to testing gulp + webpack * Finish webpack setup and directory rework * Convert metaboxes.js to typescript + small optimizations * Begin early stages of pubmed query feature * Add React and begin pubmed query * Finish ground work with pubmed search * Finish pubmed query + add attach inline * Commit prior to working on inline citation component * Finish release 2.4.0
- Loading branch information
Showing
40 changed files
with
3,060 additions
and
1,016 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
.git | ||
node_modules | ||
dist | ||
npm-debug.log | ||
typings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '2' | ||
services: | ||
wordpress: | ||
image: dsifford/wordpress | ||
links: | ||
- db | ||
ports: | ||
- 8080:80 | ||
- 443:443 | ||
volumes: | ||
- ./dist:/app/wp-content/plugins/academic-bloggers-toolkit | ||
environment: | ||
DB_NAME: wordpress | ||
DB_PASS: root | ||
db: | ||
image: mysql:5.7 | ||
ports: | ||
- 3306:3306 | ||
environment: | ||
MYSQL_ROOT_PASSWORD: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
var gulp = require('gulp'); | ||
var uglify = require('gulp-uglify'); | ||
var sass = require('gulp-sass'); | ||
var autoprefixer = require('gulp-autoprefixer'); | ||
var cleanCSS = require('gulp-clean-css'); | ||
var browserSync = require('browser-sync').create(); | ||
var webpack = require('webpack-stream'); | ||
var del = require('del'); | ||
|
||
gulp.task('clean', function () { | ||
return del([ | ||
'dist/inc/**/*', | ||
]); | ||
}); | ||
|
||
gulp.task('sass', function () { | ||
return gulp.src(['./inc/**/*.scss'], { base: './' }) | ||
.pipe(sass().on('error', sass.logError)) | ||
.pipe(autoprefixer({ browsers: ['last 2 versions'] })) | ||
.pipe(cleanCSS({ compatibility: 'ie10' })) | ||
.pipe(gulp.dest('./dist')) | ||
.pipe(browserSync.stream()); | ||
}); | ||
|
||
gulp.task('webpack', function () { | ||
return gulp.src('inc/js/frontend.ts') | ||
.pipe(webpack(require('./webpack.config.js'))) | ||
.pipe(gulp.dest('dist/')); | ||
}); | ||
|
||
gulp.task('build', ['clean', 'webpack', 'sass'], function () { | ||
gulp.src([ | ||
'./academic-bloggers-toolkit.php', | ||
'./CHANGELOG.md', | ||
'./LICENSE', | ||
'./readme.txt', | ||
'./inc/**/*', | ||
'!./inc/**/*.{ts,tsx,js,css,scss,json}', | ||
'!./**/__tests__', | ||
'!./inc/js/utils', | ||
], { base: './' }) | ||
.pipe(gulp.dest('./dist')); | ||
}); | ||
|
||
gulp.task('serve', ['build'], function () { | ||
browserSync.init({ | ||
proxy: 'localhost:8080', | ||
open: false, | ||
}); | ||
|
||
gulp.watch(['./inc/**/*.tsx?'], ['webpack']).on('change', browserSync.reload); | ||
gulp.watch('./inc/**/*.scss', ['sass']); | ||
gulp.watch([ | ||
'./inc/**/*', | ||
'!./inc/**/*.{tsx?,scss}', | ||
'!__tests__/**/*', | ||
], ['build']).on('change', browserSync.reload); | ||
}); | ||
|
||
gulp.task('remove-mapfiles', function (cb) { | ||
del(['./dist/**/*.map']); | ||
cb(); | ||
}); | ||
|
||
gulp.task('minify-js', ['remove-mapfiles'], function () { | ||
gulp.src(['./dist/**/*.js']) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('./dist/')); | ||
}); | ||
|
||
gulp.task('deploy', ['remove-mapfiles', 'minify-js']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
i.mce-i-abt_menu { | ||
font: normal 25px/1 'dashicons'; | ||
padding: 0; | ||
vertical-align: top; | ||
speak: none; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
margin-left: -2px; | ||
padding-right: 2px; | ||
} | ||
|
||
#abt_menubutton:hover, | ||
#abt_menubutton.mce-active, | ||
#abt_menubutton:hover *, | ||
#abt_menubutton.mce-active * { | ||
color: rgb(50, 55, 60); | ||
} |
Oops, something went wrong.