mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 09:13:38 +01:00
Merge pull request #12 from ascribe/feature/devsetup
More sane frontend dev setup
This commit is contained in:
commit
ab1d13bebb
13
.editorconfig
Normal file
13
.editorconfig
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
# EditorConfig is awesome: http://EditorConfig.org
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_size = 2
|
9
.idea/ascribe.iml
generated
9
.idea/ascribe.iml
generated
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module type="WEB_MODULE" version="4">
|
|
||||||
<component name="NewModuleRootManager">
|
|
||||||
<content url="file://$MODULE_DIR$" />
|
|
||||||
<orderEntry type="inheritedJdk" />
|
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
|
||||||
<orderEntry type="library" name="ascribe node_modules" level="project" />
|
|
||||||
</component>
|
|
||||||
</module>
|
|
4
.idea/encodings.xml
generated
4
.idea/encodings.xml
generated
@ -1,4 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
|
||||||
</project>
|
|
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@ -1,8 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="ProjectModuleManager">
|
|
||||||
<modules>
|
|
||||||
<module fileurl="file://$PROJECT_DIR$/.idea/ascribe.iml" filepath="$PROJECT_DIR$/.idea/ascribe.iml" />
|
|
||||||
</modules>
|
|
||||||
</component>
|
|
||||||
</project>
|
|
5
.idea/scopes/scope_settings.xml
generated
5
.idea/scopes/scope_settings.xml
generated
@ -1,5 +0,0 @@
|
|||||||
<component name="DependencyValidationManager">
|
|
||||||
<state>
|
|
||||||
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
|
||||||
</state>
|
|
||||||
</component>
|
|
6
.idea/vcs.xml
generated
6
.idea/vcs.xml
generated
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="VcsDirectoryMappings">
|
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
126
Gruntfile.js
126
Gruntfile.js
@ -1,126 +0,0 @@
|
|||||||
module.exports = function( grunt ) {
|
|
||||||
|
|
||||||
// Project configuration
|
|
||||||
grunt.initConfig( {
|
|
||||||
pkg: grunt.file.readJSON( 'package.json' ),
|
|
||||||
concat: {
|
|
||||||
options: {
|
|
||||||
stripBanners: true,
|
|
||||||
banner: '/*! <%= pkg.title %> - v<%= pkg.version %>\n' +
|
|
||||||
' * <%= pkg.homepage %>\n' +
|
|
||||||
' * Copyright (c) <%= grunt.template.today("yyyy") %>;' +
|
|
||||||
' * Licensed GPLv2+' +
|
|
||||||
' */\n'
|
|
||||||
},
|
|
||||||
main: {
|
|
||||||
src: [
|
|
||||||
'assets/js/src/ascribe.js'
|
|
||||||
],
|
|
||||||
dest: 'assets/js/ascribe.js'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
jshint: {
|
|
||||||
all: [
|
|
||||||
'Gruntfile.js',
|
|
||||||
'assets/js/src/**/*.js',
|
|
||||||
'assets/js/test/**/*.js'
|
|
||||||
]
|
|
||||||
},
|
|
||||||
uglify: {
|
|
||||||
all: {
|
|
||||||
files: {
|
|
||||||
'assets/js/ascribe.min.js': ['assets/js/ascribe.js']
|
|
||||||
},
|
|
||||||
options: {
|
|
||||||
banner: '/*! <%= pkg.title %> - v<%= pkg.version %>\n' +
|
|
||||||
' * <%= pkg.homepage %>\n' +
|
|
||||||
' * Copyright (c) <%= grunt.template.today("yyyy") %>;' +
|
|
||||||
' * Licensed GPLv2+' +
|
|
||||||
' */\n',
|
|
||||||
mangle: {
|
|
||||||
except: ['jQuery']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
less: {
|
|
||||||
all: {
|
|
||||||
options: {
|
|
||||||
sourceMap: false
|
|
||||||
},
|
|
||||||
files: {
|
|
||||||
'assets/css/ascribe.css': 'assets/css/less/ascribe.less'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
postcss: {
|
|
||||||
dist: {
|
|
||||||
options: {
|
|
||||||
processors: [
|
|
||||||
require('autoprefixer-core')({browsers: 'last 2 versions'})
|
|
||||||
]
|
|
||||||
},
|
|
||||||
files: {
|
|
||||||
'assets/css/ascribe.css': [ 'assets/css/ascribe.css' ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
cssmin: {
|
|
||||||
options: {
|
|
||||||
banner: '/*! <%= pkg.title %> - v<%= pkg.version %>\n' +
|
|
||||||
' * <%=pkg.homepage %>\n' +
|
|
||||||
' * Copyright (c) <%= grunt.template.today("yyyy") %>;' +
|
|
||||||
' * Licensed GPLv2+' +
|
|
||||||
' */\n'
|
|
||||||
},
|
|
||||||
minify: {
|
|
||||||
expand: true,
|
|
||||||
|
|
||||||
cwd: 'assets/css/',
|
|
||||||
src: ['ascribe.css'],
|
|
||||||
|
|
||||||
dest: 'assets/css/',
|
|
||||||
ext: '.min.css'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
watch: {
|
|
||||||
//livereload: {
|
|
||||||
// files: ['assets/css/*.css'],
|
|
||||||
// options: {
|
|
||||||
// livereload: true
|
|
||||||
// }
|
|
||||||
//},
|
|
||||||
styles: {
|
|
||||||
files: ['assets/css/less/**/*.less'],
|
|
||||||
tasks: ['less', 'postcss', 'cssmin'],
|
|
||||||
options: {
|
|
||||||
debounceDelay: 500
|
|
||||||
}
|
|
||||||
},
|
|
||||||
scripts: {
|
|
||||||
files: ['assets/js/src/**/*.js', 'assets/js/vendor/**/*.js'],
|
|
||||||
tasks: ['jshint', 'concat', 'uglify'],
|
|
||||||
options: {
|
|
||||||
debounceDelay: 500
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} );
|
|
||||||
|
|
||||||
// Load tasks
|
|
||||||
require('load-grunt-tasks')(grunt);
|
|
||||||
|
|
||||||
// Register tasks
|
|
||||||
|
|
||||||
grunt.registerTask( 'css', ['less', 'postcss', 'cssmin'] );
|
|
||||||
|
|
||||||
grunt.registerTask( 'js', ['jshint', 'concat', 'uglify'] );
|
|
||||||
|
|
||||||
grunt.registerTask( 'default', ['css', 'js'] );
|
|
||||||
|
|
||||||
grunt.util.linefeed = '\n';
|
|
||||||
};
|
|
30
README.md
Normal file
30
README.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# wp-theme
|
||||||
|
|
||||||
|
> WordPress theme for Ascribe's landing page and blog
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
- node & npm
|
||||||
|
- composer
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm install && composer
|
||||||
|
```
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
On top of compiling css & js files, this starts a local, live-reloading server with BrowserSync:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gulp
|
||||||
|
```
|
||||||
|
|
||||||
|
The task assumes the following:
|
||||||
|
|
||||||
|
- WordPress exposed via MAMP under http://localhost:8888
|
||||||
|
|
||||||
|
The following compiles css & js files only:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gulp build
|
||||||
|
```
|
File diff suppressed because one or more lines are too long
13
assets/css/ascribe.min.css
vendored
13
assets/css/ascribe.min.css
vendored
File diff suppressed because one or more lines are too long
@ -1,3 +0,0 @@
|
|||||||
# Styles
|
|
||||||
|
|
||||||
Only final CSS styles should exist in this folder. If you are using SASS, LESS, autoprefixer, or some other pre-processor, please place your raw source files in a subdirectory.
|
|
@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* ascribe
|
|
||||||
* http://wordpress.org/themes
|
|
||||||
*
|
|
||||||
* Copyright (c) 2015 Territorial
|
|
||||||
* Licensed under the GPLv2+ license.
|
|
||||||
*/
|
|
Binary file not shown.
Before Width: | Height: | Size: 1007 B |
Binary file not shown.
Before Width: | Height: | Size: 12 KiB |
@ -1,15 +1,12 @@
|
|||||||
$(document).ready(function(){
|
/**
|
||||||
$('#more-articles').click(function(e){
|
** ascribe v0.0.1
|
||||||
e.preventDefault();
|
** The best WordPress theme ever made!
|
||||||
$.ajax({
|
** http://ascribe.io
|
||||||
url: ajaxpagination.ajaxurl,
|
**
|
||||||
type: 'post',
|
** Territorial <us@territorial.ca>
|
||||||
data: {
|
**
|
||||||
action: 'ajax_pagination'
|
**
|
||||||
},
|
** https://github.com/ascribe/wp-theme.git
|
||||||
success: function( result ) {
|
**/
|
||||||
alert( result );
|
$(document).ready(function(){$("#more-articles").click(function(a){a.preventDefault(),$.ajax({url:ajaxpagination.ajaxurl,type:"post",data:{action:"ajax_pagination"},success:function(a){alert(a)}})})});
|
||||||
}
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFqYXgtcGFnaW5hdGlvbi5qcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImNsaWNrIiwiZSIsInByZXZlbnREZWZhdWx0IiwiYWpheCIsInVybCIsImFqYXhwYWdpbmF0aW9uIiwiYWpheHVybCIsInR5cGUiLCJkYXRhIiwiYWN0aW9uIiwic3VjY2VzcyIsInJlc3VsdCIsImFsZXJ0Il0sIm1hcHBpbmdzIjoiQUFBQUEsRUFBRUMsVUFBVUMsTUFBTSxXQUNkRixFQUFFLGtCQUFrQkcsTUFBTSxTQUFTQyxHQUMvQkEsRUFBRUMsaUJBQ0ZMLEVBQUVNLE1BQ0VDLElBQUtDLGVBQWVDLFFBQ3BCQyxLQUFNLE9BQ05DLE1BQ0lDLE9BQVEsbUJBRVpDLFFBQVMsU0FBVUMsR0FDZkMsTUFBT0QiLCJmaWxlIjoiYWpheC1wYWdpbmF0aW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJChkb2N1bWVudCkucmVhZHkoZnVuY3Rpb24oKXtcbiAgICAkKCcjbW9yZS1hcnRpY2xlcycpLmNsaWNrKGZ1bmN0aW9uKGUpe1xuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICQuYWpheCh7XG4gICAgICAgICAgICB1cmw6IGFqYXhwYWdpbmF0aW9uLmFqYXh1cmwsXG4gICAgICAgICAgICB0eXBlOiAncG9zdCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgYWN0aW9uOiAnYWpheF9wYWdpbmF0aW9uJ1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uKCByZXN1bHQgKSB7XG4gICAgICAgICAgICAgICAgYWxlcnQoIHJlc3VsdCApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH0pO1xufSk7Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
|
||||||
})
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
12
assets/js/ajax-pagination.min.js
vendored
Normal file
12
assets/js/ajax-pagination.min.js
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
/**
|
||||||
|
** ascribe v0.0.1
|
||||||
|
** The best WordPress theme ever made!
|
||||||
|
** http://ascribe.io
|
||||||
|
**
|
||||||
|
** Territorial <us@territorial.ca>
|
||||||
|
**
|
||||||
|
**
|
||||||
|
** https://github.com/ascribe/wp-theme.git
|
||||||
|
**/
|
||||||
|
$(document).ready(function(){$("#more-articles").click(function(a){a.preventDefault(),$.ajax({url:ajaxpagination.ajaxurl,type:"post",data:{action:"ajax_pagination"},success:function(a){alert(a)}})})});
|
||||||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFqYXgtcGFnaW5hdGlvbi5qcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsImNsaWNrIiwiZSIsInByZXZlbnREZWZhdWx0IiwiYWpheCIsInVybCIsImFqYXhwYWdpbmF0aW9uIiwiYWpheHVybCIsInR5cGUiLCJkYXRhIiwiYWN0aW9uIiwic3VjY2VzcyIsInJlc3VsdCIsImFsZXJ0Il0sIm1hcHBpbmdzIjoiQUFBQUEsRUFBRUMsVUFBVUMsTUFBTSxXQUNkRixFQUFFLGtCQUFrQkcsTUFBTSxTQUFTQyxHQUMvQkEsRUFBRUMsaUJBQ0ZMLEVBQUVNLE1BQ0VDLElBQUtDLGVBQWVDLFFBQ3BCQyxLQUFNLE9BQ05DLE1BQ0lDLE9BQVEsbUJBRVpDLFFBQVMsU0FBVUMsR0FDZkMsTUFBT0QiLCJmaWxlIjoiYWpheC1wYWdpbmF0aW9uLmpzIiwic291cmNlc0NvbnRlbnQiOlsiJChkb2N1bWVudCkucmVhZHkoZnVuY3Rpb24oKXtcbiAgICAkKCcjbW9yZS1hcnRpY2xlcycpLmNsaWNrKGZ1bmN0aW9uKGUpe1xuICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICQuYWpheCh7XG4gICAgICAgICAgICB1cmw6IGFqYXhwYWdpbmF0aW9uLmFqYXh1cmwsXG4gICAgICAgICAgICB0eXBlOiAncG9zdCcsXG4gICAgICAgICAgICBkYXRhOiB7XG4gICAgICAgICAgICAgICAgYWN0aW9uOiAnYWpheF9wYWdpbmF0aW9uJ1xuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uKCByZXN1bHQgKSB7XG4gICAgICAgICAgICAgICAgYWxlcnQoIHJlc3VsdCApO1xuICAgICAgICAgICAgfVxuICAgICAgICB9KVxuICAgIH0pO1xufSk7Il0sInNvdXJjZVJvb3QiOiIvc291cmNlLyJ9
|
File diff suppressed because one or more lines are too long
16
assets/js/ascribe.min.js
vendored
16
assets/js/ascribe.min.js
vendored
File diff suppressed because one or more lines are too long
15
assets/js/src/ajax-pagination.js
Normal file
15
assets/js/src/ajax-pagination.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
$(document).ready(function(){
|
||||||
|
$('#more-articles').click(function(e){
|
||||||
|
e.preventDefault();
|
||||||
|
$.ajax({
|
||||||
|
url: ajaxpagination.ajaxurl,
|
||||||
|
type: 'post',
|
||||||
|
data: {
|
||||||
|
action: 'ajax_pagination'
|
||||||
|
},
|
||||||
|
success: function( result ) {
|
||||||
|
alert( result );
|
||||||
|
}
|
||||||
|
})
|
||||||
|
});
|
||||||
|
});
|
@ -1,3 +1,6 @@
|
|||||||
|
|
||||||
|
//=include ajax-pagination.js
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
imgAttrRemover();
|
imgAttrRemover();
|
||||||
@ -101,5 +104,3 @@ $(document).ready(function(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,22 @@
|
|||||||
@import "../vendor/normalize.less";
|
//
|
||||||
@import "../vendor/print.less";
|
// Ascribe
|
||||||
@import "branding.less";
|
// -----------------
|
||||||
@import "../helpers/helpers.less";
|
// Main collection file
|
||||||
|
//
|
||||||
|
|
||||||
|
@node_modules: '../../node_modules';
|
||||||
|
|
||||||
|
// Normalize all the things
|
||||||
|
@import (inline) '@{node_modules}/normalize-css/normalize.css';
|
||||||
|
@import (inline) '@{node_modules}/normalize-opentype.css/normalize-opentype.css';
|
||||||
|
|
||||||
|
// Variables & Mixins
|
||||||
|
@import 'ascribe/_variables';
|
||||||
|
//@import "ascribe/_mixins';
|
||||||
|
|
||||||
|
@import 'ascribe/_branding.less';
|
||||||
|
@import 'ascribe/_helpers.less';
|
||||||
|
@import 'vendor/print.less';
|
||||||
|
|
||||||
// HEADER
|
// HEADER
|
||||||
@chevronOffsetHeader: 60px;
|
@chevronOffsetHeader: 60px;
|
@ -20,21 +20,6 @@ a {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//COLOURS
|
|
||||||
@blueDeep: #121417;
|
|
||||||
@blueMedium: #003C69;
|
|
||||||
@blueBright: #67C4DA;
|
|
||||||
@blueLight: #d7e9ef;
|
|
||||||
@pink: #D8127D;
|
|
||||||
|
|
||||||
@white: #fff;
|
|
||||||
@greyBg: #fbfbfb;
|
|
||||||
@greySocial: #b8b8b8;
|
|
||||||
@greyHr: #979797;
|
|
||||||
@greyFooter: #8c8c8c;
|
|
||||||
@greyText: #595959;
|
|
||||||
@blackish: #1e1e1e;
|
|
||||||
@black: #000;
|
|
||||||
|
|
||||||
//FONTS
|
//FONTS
|
||||||
.fontLight {
|
.fontLight {
|
||||||
@ -350,4 +335,4 @@ hr {
|
|||||||
background: linear-gradient(to bottom, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* W3C */
|
background: linear-gradient(to bottom, rgba(81,156,173,1) 0%,rgba(103,196,218,1) 100%); /* W3C */
|
||||||
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#519cad', endColorstr='#67c4da',GradientType=0 ); /* IE6-8 */
|
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#519cad', endColorstr='#67c4da',GradientType=0 ); /* IE6-8 */
|
||||||
|
|
||||||
}
|
}
|
21
assets/less/ascribe/_variables.less
Normal file
21
assets/less/ascribe/_variables.less
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
//
|
||||||
|
// Ascribe
|
||||||
|
// -----------------
|
||||||
|
// Variables
|
||||||
|
//
|
||||||
|
|
||||||
|
// COLORS
|
||||||
|
@blueDeep: #121417;
|
||||||
|
@blueMedium: #003C69;
|
||||||
|
@blueBright: #67C4DA;
|
||||||
|
@blueLight: #d7e9ef;
|
||||||
|
@pink: #D8127D;
|
||||||
|
|
||||||
|
@white: #fff;
|
||||||
|
@greyBg: #fbfbfb;
|
||||||
|
@greySocial: #b8b8b8;
|
||||||
|
@greyHr: #979797;
|
||||||
|
@greyFooter: #8c8c8c;
|
||||||
|
@greyText: #595959;
|
||||||
|
@blackish: #1e1e1e;
|
||||||
|
@black: #000;
|
23
bower.json
23
bower.json
@ -1,23 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "ascribe",
|
|
||||||
"version": "0.0.1",
|
|
||||||
"main": "/",
|
|
||||||
"license": "GPLv2+",
|
|
||||||
"ignore": [
|
|
||||||
"**/.*",
|
|
||||||
"*.md",
|
|
||||||
"assets/css/sass/*",
|
|
||||||
"assets/css/src/*",
|
|
||||||
"assets/js/src/*",
|
|
||||||
"assets/js/vendor/*",
|
|
||||||
"images/src/*",
|
|
||||||
"tests",
|
|
||||||
"bootstrap.php",
|
|
||||||
"Gruntfile.js",
|
|
||||||
"package.json",
|
|
||||||
"composer.json",
|
|
||||||
"phpunit.xml.dist"
|
|
||||||
],
|
|
||||||
"devDependencies": {},
|
|
||||||
"keywords": []
|
|
||||||
}
|
|
122
gulpfile.js
Normal file
122
gulpfile.js
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
// load plugins
|
||||||
|
var $ = require('gulp-load-plugins')();
|
||||||
|
|
||||||
|
// manually require modules that won't get picked up by gulp-load-plugins
|
||||||
|
var gulp = require('gulp'),
|
||||||
|
chalk = require('chalk'),
|
||||||
|
pkg = require('./package.json'),
|
||||||
|
browser = require('browser-sync');
|
||||||
|
|
||||||
|
// handle errors
|
||||||
|
var onError = function(error) {
|
||||||
|
console.log(chalk.red('You fucked up:', error.message, 'on line' , error.lineNumber));
|
||||||
|
this.emit('end');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
// Terminal Banner
|
||||||
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
console.log("");
|
||||||
|
console.log(chalk.gray(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>"));
|
||||||
|
console.log(chalk.cyan(" ┌─┐┌─┐┌─┐┬─┐┬┌┐ ┌─┐"));
|
||||||
|
console.log(chalk.cyan(" ├─┤└─┐│ ├┬┘│├┴┐├┤ "));
|
||||||
|
console.log(chalk.cyan(" ┴ ┴└─┘└─┘┴└─┴└─┘└─┘"));
|
||||||
|
console.log(chalk.gray(" <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>"));
|
||||||
|
console.log("");
|
||||||
|
|
||||||
|
|
||||||
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
// Config
|
||||||
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
// Browsers to target when prefixing CSS.
|
||||||
|
var COMPATIBILITY = ['Chrome >= 30', 'Safari >= 6.1', 'Firefox >= 35', 'Opera >= 32', 'iOS >= 8', 'Android >= 4', 'ie >= 10'];
|
||||||
|
|
||||||
|
// paths
|
||||||
|
var SRC = './',
|
||||||
|
DIST = './';
|
||||||
|
|
||||||
|
// code banner
|
||||||
|
var BANNER = [
|
||||||
|
'/**',
|
||||||
|
' ** <%= pkg.name %> v<%= pkg.version %>',
|
||||||
|
' ** <%= pkg.description %>',
|
||||||
|
' ** <%= pkg.homepage %>',
|
||||||
|
' **',
|
||||||
|
' ** <%= pkg.author.name %> <<%= pkg.author.email %>>',
|
||||||
|
' **',
|
||||||
|
' ** ',
|
||||||
|
' ** <%= pkg.repository.url %> ',
|
||||||
|
' **/',
|
||||||
|
''
|
||||||
|
].join('\n');
|
||||||
|
|
||||||
|
// local dev server stuff
|
||||||
|
var PROXY = 'http://localhost:8888'
|
||||||
|
|
||||||
|
|
||||||
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
// Tasks
|
||||||
|
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
//
|
||||||
|
// Styles
|
||||||
|
//
|
||||||
|
gulp.task('css', function() {
|
||||||
|
return gulp.src(SRC + 'assets/less/ascribe.less')
|
||||||
|
.pipe($.sourcemaps.init())
|
||||||
|
.pipe($.less()).on('error', onError)
|
||||||
|
.pipe($.autoprefixer({ browsers: COMPATIBILITY }))
|
||||||
|
.pipe($.cssmin())
|
||||||
|
.pipe($.sourcemaps.write())
|
||||||
|
.pipe($.header(BANNER, { pkg: pkg }))
|
||||||
|
.pipe(gulp.dest(DIST + 'assets/css/'))
|
||||||
|
.pipe($.rename({ suffix: '.min' }))
|
||||||
|
.pipe(gulp.dest(DIST + 'assets/css/'))
|
||||||
|
.pipe(browser.stream());
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// JavaScript
|
||||||
|
//
|
||||||
|
gulp.task('js', function() {
|
||||||
|
return gulp.src(SRC + 'assets/js/src/ascribe.js')
|
||||||
|
.pipe($.sourcemaps.init())
|
||||||
|
.pipe($.include())
|
||||||
|
.pipe($.uglify()).on('error', onError)
|
||||||
|
.pipe($.sourcemaps.write())
|
||||||
|
.pipe($.header(BANNER, { pkg: pkg }))
|
||||||
|
.pipe(gulp.dest(DIST + 'assets/js/'))
|
||||||
|
.pipe($.rename({suffix: '.min'}))
|
||||||
|
.pipe(gulp.dest(DIST + 'assets/js/'));
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Browser sync
|
||||||
|
//
|
||||||
|
gulp.task('serve', function() {
|
||||||
|
browser.init({
|
||||||
|
proxy: PROXY
|
||||||
|
});
|
||||||
|
gulp.watch([SRC + 'assets/less/**/*'], ['css']);
|
||||||
|
gulp.watch([SRC + 'assets/js/src/**/*'], ['js']);
|
||||||
|
gulp.watch(SRC + '**/*').on('change', browser.reload);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Dev Server
|
||||||
|
//
|
||||||
|
gulp.task('default', ['css', 'js', 'serve']);
|
||||||
|
|
||||||
|
|
||||||
|
//
|
||||||
|
// Production build
|
||||||
|
//
|
||||||
|
gulp.task('build', ['css', 'js']);
|
59
package.json
59
package.json
@ -1,37 +1,48 @@
|
|||||||
{
|
{
|
||||||
"name": "ascribe",
|
"name": "ascribe",
|
||||||
"title": "ascribe",
|
|
||||||
"description": "The best WordPress theme ever made!",
|
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"homepage": "http://wordpress.org/themes",
|
"description": "The best WordPress theme ever made!",
|
||||||
"repository": {
|
"homepage": "http://ascribe.io",
|
||||||
"type": "git",
|
"license": "",
|
||||||
"url": ""
|
"main": "gulpfile.js",
|
||||||
|
"scripts": {
|
||||||
|
"start": "gulp",
|
||||||
|
"build": "gulp build"
|
||||||
},
|
},
|
||||||
"author": {
|
"author": {
|
||||||
"name": "Territorial",
|
"name": "Territorial",
|
||||||
"email": "us@territorial.ca",
|
"email": "us@territorial.ca",
|
||||||
"url": "http://territorial.ca"
|
"url": "http://territorial.ca"
|
||||||
},
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"bootstrap": "^3.3.6",
|
||||||
|
"jquery": ">=2.1.4",
|
||||||
|
"normalize-css": ">=2.3.1",
|
||||||
|
"normalize-opentype.css": ">=0.2.4"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer-core": "^5.2.1",
|
"browser-sync": "^2.10.0",
|
||||||
"grunt": "^0.4.5",
|
"chalk": ">=1.0.0",
|
||||||
"grunt-contrib-clean": "^0.6.0",
|
"gulp": ">=3.8.0",
|
||||||
"grunt-contrib-compress": "^0.13.0",
|
"gulp-autoprefixer": ">=2.3.0",
|
||||||
"grunt-contrib-concat": "^0.5.1",
|
"gulp-concat": ">=2.5.2",
|
||||||
"grunt-contrib-copy": "^0.8.0",
|
"gulp-cssmin": ">=0.1.7",
|
||||||
"grunt-contrib-cssmin": "^0.12.3",
|
"gulp-header": ">=1.2.2",
|
||||||
"grunt-contrib-jshint": "^0.11.2",
|
"gulp-if": ">=1.2.5",
|
||||||
"grunt-contrib-less": "^1.0.1",
|
"gulp-include": "^2.1.0",
|
||||||
"grunt-contrib-qunit": "^0.7.0",
|
"gulp-less": "^3.0.5",
|
||||||
"grunt-contrib-uglify": "^0.9.1",
|
"gulp-load-plugins": ">=0.10.0",
|
||||||
"grunt-contrib-watch": "^0.6.1",
|
"gulp-rename": ">=1.2.2",
|
||||||
"grunt-phpunit": "^0.3.6",
|
"gulp-sourcemaps": ">=1.6.0",
|
||||||
"grunt-postcss": "^0.5.4",
|
"gulp-uglify": ">=1.2.0",
|
||||||
"grunt-sass": "^1.0.0",
|
"gulp-util": ">=3.0.6",
|
||||||
"grunt-sftp-deploy": "^0.2.4",
|
|
||||||
"load-grunt-tasks": "^3.2.0",
|
|
||||||
"qunitjs": "~1.18.0"
|
"qunitjs": "~1.18.0"
|
||||||
},
|
},
|
||||||
"keywords": []
|
"engines": {
|
||||||
|
"node": ">=0.10.29"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/ascribe/wp-theme.git"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
{"/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribe.css":"2015-10-28T04:13:06.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//ascribe.min.css":"2015-10-28T04:13:06.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//readme.md":"2015-09-17T22:31:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//less/ascribe.less":"2015-10-28T04:13:01.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribe.js":"2015-10-28T01:31:28.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ascribe.min.js":"2015-10-28T01:31:28.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//src/ascribe.js":"2015-10-28T01:31:13.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//vendor/readme.md":"2015-09-17T22:31:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//helpers/helpers.less":"2015-10-16T20:25:19.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//less/branding.less":"2015-10-27T20:21:01.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/colorbox.css":"2015-08-30T20:38:35.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/normalize.less":"2015-08-25T22:42:14.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/css//vendor/print.less":"2015-07-02T21:25:38.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//vendor/retina/retina.min.js":"2015-08-18T23:30:10.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//controller.inc.php":"2015-09-17T22:47:24.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//init.php":"2015-09-25T23:50:20.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/controller//classes/Subtemplate.php":"2015-10-28T01:26:57.000Z","/Users/sarahetter/Dropbox/_shared/sarahetter/ascribe/assets/js//ajax-pagination.js":"2015-09-25T04:46:45.000Z"}
|
|
Loading…
Reference in New Issue
Block a user