Browse Source

Add dist.

pull/3/merge
Ned Zimmerman 7 years ago
parent
commit
a2fdfaaed3
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 1
      .gitignore
  2. 100
      dist/scripts/customizer.js
  3. 1
      dist/scripts/customizer.js.map
  4. 253
      dist/scripts/main.js
  5. 1
      dist/scripts/main.js.map
  6. 78
      dist/styles/main.css
  7. 1
      dist/styles/main.css.map

1
.gitignore vendored

@ -1,7 +1,6 @@
# Include your project-specific ignores in this file
# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files
.cache-loader
dist
bower_components
node_modules
npm-debug.log

100
dist/scripts/customizer.js vendored

@ -0,0 +1,100 @@
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "app/themes/pressbooks-aldine/dist/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 9);
/******/ })
/************************************************************************/
/******/ ({
/***/ 0:
/***/ (function(module, exports) {
module.exports = jQuery;
/***/ }),
/***/ 10:
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
wp.customize('blogname', function (value) {
value.bind(function (to) { return __WEBPACK_IMPORTED_MODULE_0_jquery___default()('.brand').text(to); });
});
/***/ }),
/***/ 9:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(10);
/***/ })
/******/ });
//# sourceMappingURL=customizer.js.map

1
dist/scripts/customizer.js.map vendored

@ -0,0 +1 @@
{"version":3,"sources":["webpack:///webpack/bootstrap d7af810e16cb2f4684f6","webpack:///external \"jQuery\"","webpack:///./scripts/customizer.js"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;AC7DA,wB;;;;;;;;;;;ACAuB;;AAEvB,EAAE,CAAC,SAAS,CAAC,UAAU,EAAE,UAAC,KAAK,EAAK;EAClC,KAAK,CAAC,IAAI,CAAC,YAAE,EAAI,uDAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,IAAC,CAAC;CACxC,CAAC,CAAC","file":"scripts/customizer.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"app/themes/pressbooks-aldine/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 9);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap d7af810e16cb2f4684f6","module.exports = jQuery;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"jQuery\"\n// module id = 0\n// module chunks = 0 1","import $ from 'jquery';\n\nwp.customize('blogname', (value) => {\n value.bind(to => $('.brand').text(to));\n});\n\n\n\n// WEBPACK FOOTER //\n// ./scripts/customizer.js"],"sourceRoot":""}

253
dist/scripts/main.js vendored

@ -0,0 +1,253 @@
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "app/themes/pressbooks-aldine/dist/";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
module.exports = jQuery;
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(2);
module.exports = __webpack_require__(8);
/***/ }),
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* WEBPACK VAR INJECTION */(function(jQuery) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_Router__ = __webpack_require__(3);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__routes_common__ = __webpack_require__(5);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__routes_home__ = __webpack_require__(6);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__routes_about__ = __webpack_require__(7);
// import external dependencies
// Import everything from autoload
// import local dependencies
/** Populate Router instance with DOM routes */
var routes = new __WEBPACK_IMPORTED_MODULE_1__util_Router__["a" /* default */]({
// All pages
common: __WEBPACK_IMPORTED_MODULE_2__routes_common__["a" /* default */],
// Home page
home: __WEBPACK_IMPORTED_MODULE_3__routes_home__["a" /* default */],
// About Us page, note the change from about-us to aboutUs.
aboutUs: __WEBPACK_IMPORTED_MODULE_4__routes_about__["a" /* default */],
});
// Load Events
jQuery(document).ready(function () { return routes.loadEvents(); });
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(0)))
/***/ }),
/* 3 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__camelCase__ = __webpack_require__(4);
/**
* DOM-based Routing
*
* Based on {@link http://goo.gl/EUTi53|Markup-based Unobtrusive Comprehensive DOM-ready Execution} by Paul Irish
*
* The routing fires all common scripts, followed by the page specific scripts.
* Add additional events for more control over timing e.g. a finalize event
*/
var Router = function Router(routes) {
this.routes = routes;
};
/**
* Fire Router events
* @param {string} route DOM-based route derived from body classes (`<body class="...">`)
* @param {string} [event] Events on the route. By default, `init` and `finalize` events are called.
* @param {string} [arg] Any custom argument to be passed to the event.
*/
Router.prototype.fire = function fire (route, event, arg) {
if ( event === void 0 ) event = 'init';
var fire = route !== '' && this.routes[route] && typeof this.routes[route][event] === 'function';
if (fire) {
this.routes[route][event](arg);
}
};
/**
* Automatically load and fire Router events
*
* Events are fired in the following order:
** common init
** page-specific init
** page-specific finalize
** common finalize
*/
Router.prototype.loadEvents = function loadEvents () {
var this$1 = this;
// Fire common init JS
this.fire('common');
// Fire page-specific init JS, and then finalize JS
document.body.className
.toLowerCase()
.replace(/-/g, '_')
.split(/\s+/)
.map(__WEBPACK_IMPORTED_MODULE_0__camelCase__["a" /* default */])
.forEach(function (className) {
this$1.fire(className);
this$1.fire(className, 'finalize');
});
// Fire common finalize JS
this.fire('common', 'finalize');
};
/* harmony default export */ __webpack_exports__["a"] = (Router);
/***/ }),
/* 4 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/**
* the most terrible camelizer on the internet, guaranteed!
* @param {string} str String that isn't camel-case, e.g., CAMeL_CaSEiS-harD
* @return {string} String converted to camel-case, e.g., camelCaseIsHard
*/
/* harmony default export */ __webpack_exports__["a"] = (function (str) { return ("" + (str.charAt(0).toLowerCase()) + (str.replace(/[\W_]/g, '|').split('|')
.map(function (part) { return ("" + (part.charAt(0).toUpperCase()) + (part.slice(1))); })
.join('')
.slice(1))); });;
/***/ }),
/* 5 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony default export */ __webpack_exports__["a"] = ({
init: function init() {
// JavaScript to be fired on all pages
},
finalize: function finalize() {
// JavaScript to be fired on all pages, after page specific JS is fired
},
});
/***/ }),
/* 6 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony default export */ __webpack_exports__["a"] = ({
init: function init() {
// JavaScript to be fired on the home page
},
finalize: function finalize() {
// JavaScript to be fired on the home page, after the init JS
},
});
/***/ }),
/* 7 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony default export */ __webpack_exports__["a"] = ({
init: function init() {
// JavaScript to be fired on the about us page
},
});
/***/ }),
/* 8 */
/***/ (function(module, exports) {
// removed by extract-text-webpack-plugin
/***/ })
/******/ ]);
//# sourceMappingURL=main.js.map

1
dist/scripts/main.js.map vendored

File diff suppressed because one or more lines are too long

78
dist/styles/main.css vendored

@ -0,0 +1,78 @@
/** Colors */
/** Box Model */
/** Import everything from autoload */
/**
* Import npm dependencies
*
* Prefix your imports with `~` to grab from node_modules/
* @see https://github.com/webpack-contrib/sass-loader#imports
*/
/** Import theme styles */
/** Search form */
/**
* WordPress Generated Classes
* @see http://codex.wordpress.org/CSS#WordPress_Generated_Classes
*/
/** Media alignment */
.alignnone {
margin-left: 0;
margin-right: 0;
max-width: 100%;
height: auto;
}
.aligncenter {
display: block;
margin: 1rem auto;
height: auto;
}
.alignleft,
.alignright {
margin-bottom: 1rem;
height: auto;
}
@media (min-width: 30rem) {
.alignleft {
float: left;
margin-right: 1rem;
}
.alignright {
float: right;
margin-left: 1rem;
}
}
/** Captions */
/** Text meant only for screen readers */
.screen-reader-text {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
color: #000;
background: #fff;
}
body#tinymce {
margin: 12px !important;
}
/*# sourceMappingURL=main.css.map*/

1
dist/styles/main.css.map vendored

@ -0,0 +1 @@
{"version":3,"sources":["webpack:///./styles/resources/assets/styles/common/_variables.scss","webpack:///./styles/resources/assets/styles/main.scss","webpack:////Users/ned/Desktop/pressbooks-aldine/main.scss","webpack:///./styles/resources/assets/styles/components/_forms.scss","webpack:///./styles/resources/assets/styles/components/_wp-classes.scss","webpack:///./styles/resources/assets/styles/layouts/_tinymce.scss"],"names":[],"mappings":"AAAA;;AAGA;;ACDA;;AAGA;;;;;GCMG;;ADEH;;AEbA;;ACAA;;;GFoBG;;AEfH;;AACA;EACE;EACA;EACA;EACA;CFmBD;;AEhBD;EACE;EACA;EACA;CFmBD;;AEhBD;;EAEE;EACA;CFmBD;;AEhBD;EACE;IACE;IACA;GFmBD;;EEhBD;IACE;IACA;GFmBD;CACF;;AEhBD;;AAMA;;AACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CFgBD;;AGtED;EACE;CHyED","file":"styles/main.css","sourcesContent":["/** Colors */\n$brand-primary: #27ae60;\n\n/** Box Model */\n$spacer: 2rem;\n\n\n\n// WEBPACK FOOTER //\n// ./styles/resources/assets/styles/common/_variables.scss","@import \"common/variables\";\n\n/** Import everything from autoload */\n;\n\n/**\n * Import npm dependencies\n *\n * Prefix your imports with `~` to grab from node_modules/\n * @see https://github.com/webpack-contrib/sass-loader#imports\n */\n// @import \"~some-node-module\";\n\n/** Import theme styles */\n@import \"common/global\";\n@import \"components/buttons\";\n@import \"components/comments\";\n@import \"components/forms\";\n@import \"components/wp-classes\";\n@import \"layouts/header\";\n@import \"layouts/sidebar\";\n@import \"layouts/footer\";\n@import \"layouts/pages\";\n@import \"layouts/posts\";\n@import \"layouts/tinymce\";\n\n\n\n// WEBPACK FOOTER //\n// ./styles/resources/assets/styles/main.scss","/** Colors */\n\n/** Box Model */\n\n/** Import everything from autoload */\n\n/**\n * Import npm dependencies\n *\n * Prefix your imports with `~` to grab from node_modules/\n * @see https://github.com/webpack-contrib/sass-loader#imports\n */\n\n/** Import theme styles */\n\n/** Search form */\n\n/**\n * WordPress Generated Classes\n * @see http://codex.wordpress.org/CSS#WordPress_Generated_Classes\n */\n\n/** Media alignment */\n\n.alignnone {\n margin-left: 0;\n margin-right: 0;\n max-width: 100%;\n height: auto;\n}\n\n.aligncenter {\n display: block;\n margin: 1rem auto;\n height: auto;\n}\n\n.alignleft,\n.alignright {\n margin-bottom: 1rem;\n height: auto;\n}\n\n@media (min-width: 30rem) {\n .alignleft {\n float: left;\n margin-right: 1rem;\n }\n\n .alignright {\n float: right;\n margin-left: 1rem;\n }\n}\n\n/** Captions */\n\n/** Text meant only for screen readers */\n\n.screen-reader-text {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n color: #000;\n background: #fff;\n}\n\nbody#tinymce {\n margin: 12px !important;\n}\n\n\n\n\n// WEBPACK FOOTER //\n// /Users/ned/Desktop/pressbooks-aldine/main.scss","/** Search form */\n// TODO: .search-form {}\n// TODO: .search-form label {}\n// TODO: .search-form .search-field {}\n// TODO: .search-form .search-submit {}\n\n\n\n// WEBPACK FOOTER //\n// ./styles/resources/assets/styles/components/_forms.scss","/**\n * WordPress Generated Classes\n * @see http://codex.wordpress.org/CSS#WordPress_Generated_Classes\n */\n\n/** Media alignment */\n.alignnone {\n margin-left: 0;\n margin-right: 0;\n max-width: 100%;\n height: auto;\n}\n\n.aligncenter {\n display: block;\n margin: ($spacer / 2) auto;\n height: auto;\n}\n\n.alignleft,\n.alignright {\n margin-bottom: ($spacer / 2);\n height: auto;\n}\n\n@media (min-width: 30rem) {\n .alignleft {\n float: left;\n margin-right: ($spacer / 2);\n }\n\n .alignright {\n float: right;\n margin-left: ($spacer / 2);\n }\n}\n\n/** Captions */\n\n// TODO: .wp-caption {}\n// TODO: .wp-caption img {}\n// TODO: .wp-caption-text {}\n\n/** Text meant only for screen readers */\n.screen-reader-text {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n border: 0;\n color: #000;\n background: #fff;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./styles/resources/assets/styles/components/_wp-classes.scss","body#tinymce {\n margin: 12px !important;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./styles/resources/assets/styles/layouts/_tinymce.scss"],"sourceRoot":""}
Loading…
Cancel
Save