Commit Graph

19 Commits

Author SHA1 Message Date
QWp6t
b79f389170 Comply with new eslint rules 2016-09-11 18:48:34 -07:00
QWp6t
724d550739 Use native DOMContentLoaded event 2016-09-11 11:17:03 -07:00
QWp6t
f6bdc7b48c Refactor build routine and switch to airbnb style (#1703)
- Relocate webpack stuff to assets/build
- Switch all js to airbnb code style
- Update webpack to v2.0 (beta)
- Update all other dependencies
- Assets manifest uses relative path as key [1]
- Code should be compatible with Node 4.5.0
- All dependencies have been updated

[1]: Previously the assets manifest would use the basename of a file path as
its key when looking up a cachebusted file. This was to be consistent with
Sage 8. This change makes it so that the relative path is used instead.

To clarify, review the following example.

Before:
```
{
  "main.js": "scripts/main_5f4bfc9a9f82291c6dea.js",
  "main.css": "styles/main_5f4bfc9a9f82291c6dea.css",
  "customizer.js": "scripts/customizer_5f4bfc9a9f82291c6dea.js"
}
```

After:
```
{
  "scripts/main.js":"scripts/main_5f4bfc9a9f82291c6dea.js",
  "styles/main.css":"styles/main_5f4bfc9a9f82291c6dea.css",
  "scripts/customizer.js":"scripts/customizer_5f4bfc9a9f82291c6dea.js"
}
```
2016-09-04 19:13:16 -07:00
Patrick Vézina
7623ad0511 Set dynamically aboslute public path on 'npm run watch'; fix http/htt… (#1696)
* Set dynamically aboslute public path on 'npm run watch'; fix http/https hardcoded in watch.js

* WEBPACK_PUBLIC_PATH fix
2016-08-26 11:45:50 -06:00
QWp6t
4d58f88166 Squashing asset pipeline bugs and other stuff
1. Update dependencies
   - Add font-awesome as dependency
   - Switch to Bootstrap 4 dev branch
   - Remove eslint airbnb style (we're not using it)

2. Imported images and fonts should go into dist/images
   and dist/fonts, respectively

3. Only lint our own code, not external code (fixes #1633)
2016-08-13 07:49:43 -07:00
QWp6t
447c24d082 Update dependencies, incl Bootstrap 4 alpha 3 2016-08-06 18:51:06 -07:00
Ben Word
91363795e8 Update comment for importing deps 2016-07-16 13:59:45 -06:00
QWp6t
320c6916dc Use shorthand syntax in main.js routes 2016-07-16 10:14:57 -07:00
QWp6t
339cc8e01e router doesn't require jQuery. use default params 2016-07-16 10:02:03 -07:00
QWp6t
f34af480db Convert scripts to es6 2016-07-16 02:17:16 -07:00
Ben Word
f5aaf3b18c Consistency 2016-04-02 23:33:55 -05:00
Patrick Vézina
f89c550d36 webpack - various ameliorations 2016-03-30 10:03:18 -04:00
Patrick Vézina
7d1baa0fe7 webpack implementation 2016-03-13 17:08:30 -04:00
Ben Word
1607f6e371 Add support for theme customizer 2015-11-09 13:25:04 -06:00
Julien Melissas
a16475c1ad Removed jQuery CDN info. [ci-skip]
Now that the CDN option is in soil, there's no need for this information to be in the file (and it was outdated).
2015-05-09 15:24:16 -04:00
Austin Pray
ae62873779 Adds JSCS for gulpfile and scripts
install JSCS globally npm install jscs -g
use `npm run jscs`
2015-01-24 10:26:30 -06:00
Julien Melissas
3fa4d86df4 Adding JavaScript finalize back in.
Addresses d6fc59e041 (commitcomment-6183775)
2015-01-16 14:43:27 -05:00
Ben Word
030c084134 Rename to Sage 2015-01-09 20:52:29 -06:00
Austin Pray
3a4ae77b1e Reorganizes asset file structure
Separates assets into
- Source assets: `assets`
- Compiled assets: `dist`

Edits assets.php to reflect changes

Removes '.min' from filenames

Fixes:
- removes 'clean' from build step.
2014-11-24 12:34:11 -06:00