Skip to content

Commit

Permalink
Refactors for cf 3
Browse files Browse the repository at this point in the history
  • Loading branch information
davejtoews committed Mar 28, 2019
1 parent 21f050b commit af6db17
Show file tree
Hide file tree
Showing 27 changed files with 5,734 additions and 7,312 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

26 changes: 26 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
module.exports = {
presets: [
['@babel/preset-env', {
modules: false
}],
['@babel/preset-react', {
pragma: 'wp.element.createElement',
pragmaFrag: 'wp.element.Fragment'
}]
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-syntax-async-generators',
'@babel/plugin-transform-runtime'
],
env: {
production: {
plugins: [
['@wordpress/babel-plugin-makepot', {
output: 'languages/carbon-fields-rich-text-no-media.pot'
}]
]
}
}
};
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gitattributes export-ignore
.gitignore export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
vendor/
**/.DS_Store
5 changes: 5 additions & 0 deletions .postcssrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
plugins: {
'postcss-preset-env': {}
}
};
13 changes: 0 additions & 13 deletions assets/css/field.css

This file was deleted.

Empty file removed assets/css/images/.gitkeep
Empty file.
7 changes: 0 additions & 7 deletions assets/js/bootstrap.js

This file was deleted.

219 changes: 0 additions & 219 deletions assets/js/bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/js/bundle.js.map

This file was deleted.

172 changes: 0 additions & 172 deletions assets/js/components/editor.js

This file was deleted.

109 changes: 0 additions & 109 deletions assets/js/components/field.js

This file was deleted.

7 changes: 7 additions & 0 deletions build/bundle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.cf-rich-text-no-media .mce-edit-area,
.cf-rich-text-no-media .regular-text {
min-height: 10em; }

.cf-rich-text-no-media input[value="img"] {
display: none; }

Loading

0 comments on commit af6db17

Please sign in to comment.