Skip to content

Commit

Permalink
publish unbundled ES5 code in '/lib'
Browse files Browse the repository at this point in the history
- see zenoamaro#162
- restores unbundled "main" from beta-1 and below
- adds "browser" to package.json with UMD build
- forwards-compatible with adding an ES6 build pipeline
- bump version to rc-1 (first release candidate)
  • Loading branch information
alexkrolick committed Apr 12, 2017
1 parent 9319d33 commit 61c0527
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

# Compiled files
/dist
/lib

# Packaging artifacts
/react-quill-*.tgz
/package
/package
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SPEC_FLAGS=-R spec
COVERAGE_FLAGS=-R mocha-text-cov
WEBPACK=./node_modules/.bin/webpack
SOURCE=./src
LIB=./lib

usage:
@echo lint: lints the source
Expand Down Expand Up @@ -34,11 +35,13 @@ build:
@cp node_modules/quill/dist/quill.core.css dist
@cp node_modules/quill/dist/quill.snow.css dist
@cp node_modules/quill/dist/quill.bubble.css dist
@[[ -d $(LIB) ]] || mkdir $(LIB)
@cp -R $(SOURCE)/* $(LIB)

watch:
@$(WEBPACK) --watch --config webpack.dev.js

clean:
@if [ -d dist ]; then rm -r dist; fi

@if [ -d lib ]; then rm -r lib; fi
.PHONY: usage test spec coverage lint build clean
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Thanks to @clemmy and @alexkrolick for landing this much-awaited change. There a

---

🎧 **Latest published package version: `v1.0.0-beta-5`**
🎧 **Latest published package version: `v1.0.0-rc-1`**
Follow React Quill's development on the beta channel leading to `v1.0.0`.
`npm install [email protected]beta-5`
`npm install [email protected]rc-1`

---

Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-quill",
"version": "1.0.0-beta-4",
"version": "1.0.0-rc-1",
"description": "The Quill rich-text editor as a React component.",
"author": "zenoamaro <[email protected]>",
"homepage": "https://github.com/zenoamaro/react-quill",
Expand All @@ -13,10 +13,13 @@
"type": "git",
"url": "https://github.com/zenoamaro/react-quill.git"
},
"main": "dist/react-quill.min.js",
"main": "lib/index.js",
"browser": "dist/react-quill.min.js",
"scripts": {
"test": "make test",
"build": "make build"
"build": "make build",
"prepublish": "make build",
"postpublish": "make clean"
},
"engines": {
"node": ">= 0.8.x"
Expand All @@ -32,6 +35,7 @@
],
"files": [
"dist/",
"lib/",
"README.md",
"CHANGELOG.md",
"LICENSE"
Expand Down

0 comments on commit 61c0527

Please sign in to comment.