Skip to content

Commit

Permalink
Replace Browserify with Rollup (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
taggon authored Dec 19, 2017
1 parent 61980c8 commit 4aeaddd
Show file tree
Hide file tree
Showing 33 changed files with 603 additions and 3,329 deletions.
17 changes: 16 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
{ "presets": ["es2015"] }
{
"presets": [
[
"env", {
"modules": false
}
]
],
"env": {
"test": {
"presets": [
[ "env", { "modules": "commonjs" } ]
]
}
}
}
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parser": "babel-eslint",
"extends": "wpcalypso/react",
"extends": "wpcalypso",
"env": {
"browser": true,
"es6": true,
Expand Down
2 changes: 1 addition & 1 deletion .svnignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*.log
src
test
Gruntfile.js
rollup.config.js
package.json
package-lock.json
circle.yml
Expand Down
58 changes: 0 additions & 58 deletions Gruntfile.js

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ A WordPress plugin that adds small icons to the customizer preview that open the

# Contributing

1. Clone this repo and install it on a WordPress site. You can either clone the repo directly into your `/wp-content/plugins` directory, or use [copytotheplace](https://github.com/sirbrillig/copytotheplace) by adding a `.env` file with your target directory and running `grunt copytotheplace`.
1. Clone this repo and install it on a WordPress site. You can clone the repo directly into your `/wp-content/plugins` directory.
2. After cloning, run `npm install` and then `npm run dist` to compile the JavaScript.
3. To start a watcher process for development, run `npm start` (this will also run copytotheplace if you have a `.env` file set).
3. To start a watcher process for development, run `npm start`.
4. If you want to see detailed info in your browser console, enable debugging by running the following command in the console and then reloading the page: `localStorage.setItem('debug', 'cdm:*');`.

# Testing
Expand Down
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
machine:
node:
version: 5.6.0
version: 6.12.2
Loading

0 comments on commit 4aeaddd

Please sign in to comment.