Skip to content

Commit

Permalink
change build system to webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
easylogic committed May 21, 2019
2 parents 1773e52 + 2f0cfba commit f5e2406
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Expand Up @@ -20,7 +20,7 @@ At this point, you should now have a `dist/` directory populated with everything
run local server with webpack-dev-server and watch.
```bash
npm run dev
# Open a browser on http://localhost:8080.
# Open a browser on http://localhost:3000.
# If you change source code, automatically reload your page.
```

Expand Down
29 changes: 9 additions & 20 deletions MAINTAIN.md
Expand Up @@ -5,22 +5,6 @@
Send pull request `develop` to `master` on github repository and merge it.
https://github.com/summernote/summernote/compare/master...develop

#### development

```bash
npm install

npm run dev
```

* you can test examples/ files

```bash
npm run dev
open localhost:3000/examples/
click example page
```

#### build dist files

```bash
Expand All @@ -37,12 +21,17 @@ git checkout master
# fetch all changes
git pull

# Bump version in package.json

# build dist files and binary(.zip) for release post
npm run build

# Push new dist files to remote repository.
# Commit and add tag for new version
git commit -a -m "Update dist files"
git push origin
git tag -a "<new-version>"

# Push new dist files and tags to remote repository.
git push origin --tags
```

### 3. Release new version
Expand All @@ -60,5 +49,5 @@ npm publish
### 05. Update summernote.github.io
Update summernote version in _config.yml.

### 06. Update connector
- [summernote-rails](https://github.com/summernote/summernote-rails/blob/master/MAINTAIN.md)
### 06. Update connectors
Request maintainers of each connector to update package information.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -77,7 +77,7 @@ For more detail about API, please refer to [document](http://summernote.org/gett
The code view allows the user to enter script contents. Make sure to filter/[sanitize the HTML on the server](https://github.com/search?l=JavaScript&q=sanitize+html). Otherwise, an attacker can inject arbitrary JavaScript code into clients.

### For contributing
https://github.com/summernote/summernote/blob/develop/CONTRIBUTING.md
https://github.com/summernote/summernote/blob/develop/.github/CONTRIBUTING.md

### Contacts
* Facebook user group: https://www.facebook.com/groups/summernote
Expand Down
2 changes: 1 addition & 1 deletion src/summernote-bs4.html
Expand Up @@ -26,7 +26,7 @@
<body>
<div class="container">
<div style='float:right;'>
<a href='bs3.html'>Bootstrap 3</a>
<a href='index.html'>Bootstrap 3</a>
<a href='lite.html'>Lite</a>
-
<a href="examples/">Example</a>
Expand Down
9 changes: 7 additions & 2 deletions src/summernote-lite.html
Expand Up @@ -5,7 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>summernote-lite</title>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>

<style type="text/css">
body {
margin: 0 auto;
max-width: 900px;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$('.summernote').summernote({
Expand All @@ -17,7 +22,7 @@
</head>
<body>
<div style='float:right;'>
<a href='bs3.html'>Bootstrap 3</a>
<a href='index.html'>Bootstrap 3</a>
<a href='bs4.html'>Bootstrap 4</a>
-
<a href="examples/">Example</a>
Expand Down

0 comments on commit f5e2406

Please sign in to comment.