Skip to content

Commit

Permalink
[Update]: Migrate to postcss-preset-env which includes postcss-cssnext (
Browse files Browse the repository at this point in the history
codex-team#615)

* Use cssnext to cut cssnext variable. By default cssnext includes autoprefixes

* bump bundle version

* migrate to postcss-preset-env

* update changelog and minimize css
  • Loading branch information
khaydarov authored Feb 19, 2019
1 parent beeeef0 commit e6adb4c
Show file tree
Hide file tree
Showing 9 changed files with 24,995 additions and 30 deletions.
11 changes: 8 additions & 3 deletions .postcssrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins:
postcss-smart-import: {}
postcss-custom-properties: {}
postcss-custom-properties: {
preserve: false
}
postcss-apply: {}
postcss-custom-media: {}
postcss-media-minmax: {}
Expand All @@ -12,5 +14,8 @@ plugins:
postcss-color-hex-alpha: {}
postcss-font-variant: {}
postcss-font-family-system-ui: {}
autoprefixer:
browsers: ['last 2 versions', '> 1%']
postcss-preset-env: {
stage: 0,
browsers: ['last 2 versions', '> 1%']
}
cssnano: {}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ We are glad to introduce the next version of CodeX Editor. Totally new core, str

Welcome to testing stage. Please, join a [public Telegram-chat](//t.me/codex_editor) where you always find a support.

### 2.7-2.9 changelog

- `New` Migrate from postcss-cssnext to postcss-preset-env and disable postcss-custom-properties which conflicts with postcss-preset-env
- `New` *RectangeSelection* - Ability to select Block or several Blocks with mouse

### 2.2—2.7 changelog

- `New` *Sanitize API*[Sanitize Config](https://github.com/codex-team/codex.editor/blob/master/docs/tools.md#automatic-sanitize) of `Block Tools` now automatically extends by tags of `Inline Tools` that is enabled by current Tool by `inlineToolbar` option. You don't need more to specify `a, b, mark, code` manually. This feature will be added to fields that supports inline markup.
Expand Down
24,603 changes: 24,586 additions & 17 deletions dist/codex-editor.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/codex-editor.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/codex-editor.licenses.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.


@babel/runtime
@babel/polyfill
MIT
MIT License

Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
Copyright (c) 2014-2018 Sebastian McKenzie <sebmck@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand All @@ -47,11 +47,14 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


@babel/polyfill
regenerator-runtime
MIT

@babel/runtime
MIT
MIT License

Copyright (c) 2014-2018 Sebastian McKenzie <sebmck@gmail.com>
Copyright (c) 2014-2018 Sebastian McKenzie and other contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand All @@ -73,9 +76,6 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


regenerator-runtime
MIT

codex-notifier
MIT
MIT License
Expand Down
6 changes: 5 additions & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

### 2.9.1

- `Improvements` Migrate from postcss-cssnext to postcss-preset-env and disable postcss-custom-properties which conflicts with postcss-preset-env

### 2.9.0

- `Imporvements` - Selection with the mouse is available
- `New` *RectangeSelection* - Ability to select Block or several Blocks with mouse

### 2.8.1

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codex.editor",
"version": "2.9.0",
"version": "2.9.1",
"description": "CodeX Editor. Native JS, based on API and Open Source",
"main": "dist/codex-editor.js",
"types": "./types/index.d.ts",
Expand Down Expand Up @@ -55,6 +55,7 @@
"postcss-nested-ancestors": "^2.0.0",
"postcss-nesting": "^6.0.0",
"postcss-smart-import": "^0.7.6",
"postcss-preset-env": "^6.5.0",
"raw-loader": "^0.5.1",
"rimraf": "^2.6.2",
"stylelint": "^9.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/modules/rectangleSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class RectangleSelection extends Module {
overlayContainer: 'codex-editor-overlay__container',
rect: 'codex-editor-overlay__rectangle',
topScrollZone: 'codex-editor-overlay__scroll-zone--top',
bottomScrollZone: 'codex-editor-overlay__scroll-zone--bottom'
bottomScrollZone: 'codex-editor-overlay__scroll-zone--bottom',
};
}

Expand Down
Loading

0 comments on commit e6adb4c

Please sign in to comment.