-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott Lee
committed
May 11, 2018
1 parent
6821ee8
commit 1020035
Showing
39 changed files
with
14,258 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"presets": [ | ||
"env" | ||
] | ||
} |
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,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
|
||
[{*.json,*.yml,.babelrc,.bowerrc,.postcssrc}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.txt,wp-config-sample.php] | ||
end_of_line = crlf |
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,19 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"env": { | ||
"browser": true, | ||
"es6": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"rules": { | ||
"yoda": [ 2 ], | ||
"indent": [ 2, "tab", { "SwitchCase": 2 } ], | ||
"linebreak-style": [ 2, "unix" ], | ||
"quotes": [ 2, "single" ], | ||
"semi": [ 2, "always" ], | ||
"space-in-parens": [ 2, "always" ], | ||
"no-console": [ 1 ], | ||
"no-alert": [ 1 ], | ||
"camelcase": [ 2 ] | ||
} | ||
} |
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,30 @@ | ||
node_modules | ||
bower_components | ||
release | ||
vendor | ||
composer.lock | ||
phpunit.xml | ||
.idea | ||
|
||
# Project Files | ||
dist | ||
|
||
# Editors | ||
*.esproj | ||
*.tmproj | ||
*.tmproject | ||
tmtags | ||
.*.sw[a-z] | ||
*.un~ | ||
Session.vim | ||
*.swp | ||
|
||
# Mac OSX | ||
.DS_Store | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Windows | ||
Thumbs.db | ||
Desktop.ini |
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,3 @@ | ||
/** | ||
* TenupAutoTweet - Admin Styles | ||
*/ |
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 @@ | ||
|
Empty file.
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,3 @@ | ||
/** | ||
* TenupAutoTweet - Editor Styles | ||
*/ |
Empty file.
Empty file.
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,19 @@ | ||
/** | ||
* TenupAutoTweet | ||
*/ | ||
|
||
/* Global - global pieces like media queries, mixins and placholders */ | ||
@import url("global/index"); | ||
|
||
/* Base - base styles such as fonts, typography, and wordpress overrides */ | ||
/* as well as some global micro-elements like icons */ | ||
@import url("base/index"); | ||
|
||
/* Layout - styles specific to layout */ | ||
@import url("layout/index"); | ||
|
||
/* Templates */ | ||
@import url("templates/index"); | ||
|
||
/* Components */ | ||
@import url("components/index"); |
Empty file.
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,3 @@ | ||
/** | ||
* TenupAutoTweet: Shared Styles | ||
*/ |
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 @@ | ||
# Basically just want to ignore the directory contents |
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 @@ | ||
# Basically just want to ignore the directory contents |
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 @@ | ||
//import foo from './bar' |
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 @@ | ||
# Basically just want to ignore the directory contents |
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 @@ | ||
// import foo from './components/bar'; |
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 @@ | ||
//import foo from './bar' |
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 @@ | ||
# Basically just want to ignore the directory contents |
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,22 @@ | ||
{ | ||
"name": "10up/tenup-auto-tweet", | ||
"description": "Tenup Auto Tweet", | ||
"authors": [ | ||
{ | ||
"name": "Author", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.0", | ||
"abraham/twitteroauth": "^0.7.4" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"TenupAutoTweet\\": "includes/classes/" | ||
} | ||
}, | ||
"require-dev": { | ||
"10up/wp_mock": "dev-dev" | ||
} | ||
} |
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,6 @@ | ||
import gulp from 'gulp'; | ||
import del from 'del'; | ||
|
||
gulp.task( 'cssclean', () => { | ||
del( ['./dist/*.css'] ); | ||
} ); |
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,37 @@ | ||
import gulp from 'gulp'; | ||
import cssnano from 'gulp-cssnano'; | ||
import rename from 'gulp-rename'; | ||
import sourcemaps from 'gulp-sourcemaps'; | ||
import pump from 'pump'; | ||
import livereload from 'gulp-livereload'; | ||
import filter from 'gulp-filter'; | ||
|
||
gulp.task( 'cssnano', ( cb ) => { | ||
const fileDest = './dist/css', | ||
fileSrc = [ | ||
'./dist/*.css' | ||
], | ||
taskOpts = [cssnano( { | ||
autoprefixer: false, | ||
calc: { | ||
precision: 8 | ||
}, | ||
zindex: false, | ||
convertValues: true | ||
} )]; | ||
|
||
pump( [ | ||
gulp.src( fileSrc ), | ||
sourcemaps.init( { | ||
loadMaps: true | ||
} ), | ||
cssnano( taskOpts ), | ||
rename( function( path ) { | ||
path.extname = '.min.css'; | ||
} ), | ||
sourcemaps.write( './' ), | ||
gulp.dest( fileDest ), | ||
filter( '**/*.css' ), | ||
livereload() | ||
], cb ); | ||
} ); |
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,39 @@ | ||
import gulp from 'gulp'; | ||
import postcss from 'gulp-postcss'; | ||
import sourcemaps from 'gulp-sourcemaps'; | ||
import pump from 'pump'; | ||
|
||
gulp.task( 'cssnext', ( cb ) => { | ||
const fileSrc = [ | ||
'./assets/css/admin/admin-style.css', | ||
'./assets/css/frontend/editor-style.css', | ||
'./assets/css/frontend/style.css', | ||
'./assets/css/shared/shared-style.css' | ||
]; | ||
const fileDest = './dist'; | ||
const cssNextOpts = { | ||
features: { | ||
autoprefixer: { | ||
browsers: ['last 2 versions'] | ||
} | ||
} | ||
}; | ||
const taskOpts = [ | ||
require( 'postcss-import' ), | ||
require( 'postcss-cssnext' )( cssNextOpts ) | ||
]; | ||
|
||
pump( [ | ||
gulp.src( fileSrc ), | ||
sourcemaps.init( { | ||
loadMaps: true | ||
} ), | ||
postcss( taskOpts ), | ||
sourcemaps.write( './css', { | ||
mapFile: function( mapFilePath ) { | ||
return mapFilePath.replace( '.css.map', '.min.css.map' ); | ||
} | ||
} ), | ||
gulp.dest( fileDest ) | ||
], cb ); | ||
} ); |
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,21 @@ | ||
import gulp from 'gulp'; | ||
import pump from 'pump'; | ||
import webpack from 'webpack'; | ||
import webpackStream from 'webpack-stream'; | ||
import livereload from 'gulp-livereload'; | ||
|
||
function processWebpack( src, conf, dest, cb ) { | ||
pump( [ | ||
gulp.src( src ), | ||
webpackStream( require( conf ), webpack ), | ||
gulp.dest( dest ), | ||
livereload() | ||
], cb ); | ||
} | ||
|
||
gulp.task( 'webpack', () => { | ||
const src = '../assets/js/**/*.js'; | ||
const conf = '../webpack.config.babel.js'; | ||
const dest = './dist/js'; | ||
processWebpack( src, conf, dest ); | ||
} ); |
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,33 @@ | ||
import gulp from 'gulp'; | ||
import requireDir from 'require-dir'; | ||
import runSequence from 'run-sequence'; | ||
import livereload from 'gulp-livereload'; | ||
|
||
requireDir( './gulp-tasks' ); | ||
|
||
gulp.task( 'js', () => { | ||
runSequence( | ||
'webpack', | ||
); | ||
} ); | ||
|
||
gulp.task( 'css', () => { | ||
runSequence( | ||
'cssnext', | ||
'cssnano', | ||
'cssclean' | ||
); | ||
} ); | ||
|
||
gulp.task( 'watch', () => { | ||
livereload.listen( { basePath: 'dist' } ); | ||
gulp.watch( ['./assets/css/**/*.css', '!./assets/css/src/**/*.css'], ['css'] ); | ||
gulp.watch( './assets/js/**/*.js', ['js'] ); | ||
} ); | ||
|
||
gulp.task( 'default', () => { | ||
runSequence( | ||
'css', | ||
'webpack' | ||
); | ||
} ); |
Empty file.
Oops, something went wrong.