P0-1: 删除 docker-compose-override.yml + deploy-server 两份 workers=2→1(预防性修复,服务器根 compose 已是 workers=1)
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
# Changelog
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
# [2.1.0](https://github.com/niklasvh/css-line-break/compare/v2.0.1...v2.1.0) (2022-01-22)
|
||||
|
||||
|
||||
### feat
|
||||
|
||||
* update to use utrie dep (#20) ([18adab4](https://github.com/niklasvh/css-line-break/commit/18adab4010b54bb73add4f23c3325b27c2c13d91)), closes [#20](https://github.com/niklasvh/css-line-break/issues/20)
|
||||
|
||||
### fix
|
||||
|
||||
* source maps (#19) ([60cdede](https://github.com/niklasvh/css-line-break/commit/60cdedeaa025f685fc7002653f390233becce128)), closes [#19](https://github.com/niklasvh/css-line-break/issues/19)
|
||||
|
||||
|
||||
|
||||
## [2.0.1](https://github.com/niklasvh/css-line-break/compare/v2.0.0...v2.0.1) (2021-08-04)
|
||||
|
||||
|
||||
### fix
|
||||
|
||||
* wordBreak break-word (#17) ([d615f1f](https://github.com/niklasvh/css-line-break/commit/d615f1f731c9074035d0dab843a17a64080ba7ba)), closes [#17](https://github.com/niklasvh/css-line-break/issues/17)
|
||||
|
||||
|
||||
|
||||
# [2.0.0](https://github.com/niklasvh/css-line-break/compare/v1.1.3-0...v2.0.0) (2021-08-02)
|
||||
|
||||
|
||||
### fix
|
||||
|
||||
* zwj emojis #2 (#16) ([a314ea3](https://github.com/niklasvh/css-line-break/commit/a314ea33768cde9dab4e673d3339d6b4f9c32196)), closes [#2](https://github.com/niklasvh/css-line-break/issues/2) [#16](https://github.com/niklasvh/css-line-break/issues/16)
|
||||
|
||||
|
||||
|
||||
## [1.1.3-0](https://github.com/niklasvh/css-line-break/compare/v1.1.2-0...v1.1.3-0) (2021-07-15)
|
||||
|
||||
|
||||
### deps
|
||||
|
||||
* update deps (#14) ([330cb73](https://github.com/niklasvh/css-line-break/commit/330cb734f635d4d5e0d61ea991651d6d49b03054)), closes [#14](https://github.com/niklasvh/css-line-break/issues/14)
|
||||
|
||||
### docs
|
||||
|
||||
* fix readme (#13) ([1f4a330](https://github.com/niklasvh/css-line-break/commit/1f4a3300752c8bbf5a0138c7924b231161f1e4ac)), closes [#13](https://github.com/niklasvh/css-line-break/issues/13) [#10](https://github.com/niklasvh/css-line-break/issues/10)
|
||||
|
||||
### feat
|
||||
|
||||
* implement line-break.txt v13 (#15) ([bc95c80](https://github.com/niklasvh/css-line-break/commit/bc95c809e12613a9531b7985450c6bc96717e8de)), closes [#15](https://github.com/niklasvh/css-line-break/issues/15)
|
||||
|
||||
|
||||
|
||||
## [1.1.2-0](https://github.com/niklasvh/css-line-break/compare/v1.1.1...v1.1.2-0) (2021-07-04)
|
||||
|
||||
|
||||
### ci
|
||||
|
||||
* update to use github actions (#12) ([7aed118](https://github.com/niklasvh/css-line-break/commit/7aed11880975b6faf6e46caed93b6d225babd943)), closes [#12](https://github.com/niklasvh/css-line-break/issues/12)
|
||||
@@ -0,0 +1,22 @@
|
||||
Copyright (c) 2017 Niklas von Hertzen
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following
|
||||
conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1,66 @@
|
||||
css-line-break
|
||||
==============
|
||||
|
||||

|
||||
[](https://www.npmjs.org/package/css-line-break)
|
||||
[](https://www.npmjs.org/package/css-line-break)
|
||||
|
||||
A JavaScript library for Line Breaking and identifying Word Boundaries,
|
||||
[implementing the Unicode Line Breaking Algorithm (UAX #14)](http://unicode.org/reports/tr14/)
|
||||
|
||||
>> Line breaking, also known as word wrapping, is the process of breaking a section of text into
|
||||
lines such that it will fit in the available width of a page, window or other display area.
|
||||
The Unicode Line Breaking Algorithm performs part of this process. Given an input text,
|
||||
it produces a set of positions called "break opportunities" that are appropriate points to
|
||||
begin a new line. The selection of actual line break positions from the set of break opportunities
|
||||
is not covered by the Unicode Line Breaking Algorithm, but is in the domain of higher level
|
||||
software with knowledge of the available width and the display size of the text.
|
||||
|
||||
In addition, the module implements CSS specific tailoring options to line breaking as
|
||||
defined in [CSS Text Module Level 3](https://www.w3.org/TR/css-text-3/#line-breaking).
|
||||
|
||||
### Installing
|
||||
You can install the module via npm:
|
||||
|
||||
npm install css-line-break
|
||||
|
||||
### Usage
|
||||
The `LineBreaker` creates an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators) that returns `Break`s for a given text.
|
||||
|
||||
LineBreaker(text, [options]);
|
||||
|
||||
### Example
|
||||
[JSFiddle](https://jsfiddle.net/ofd3752k)
|
||||
```javascript
|
||||
import {LineBreaker} from 'css-line-break';
|
||||
|
||||
const breaker = LineBreaker('Lorem ipsum lol.', {
|
||||
lineBreak: 'strict',
|
||||
wordBreak: 'normal'
|
||||
});
|
||||
|
||||
const words = [];
|
||||
let bk;
|
||||
|
||||
while (!(bk = breaker.next()).done) {
|
||||
words.push(bk.value.slice());
|
||||
}
|
||||
|
||||
assert.deepEqual(words, ['Lorem ', 'ipsum ', 'lol.']);
|
||||
```
|
||||
### Options
|
||||
The following parameters are available for the options:
|
||||
|
||||
- `lineBreak`: `normal` | `strict`
|
||||
- `wordBreak`: `normal` | `break-all` | `break-word` | `keep-all`
|
||||
|
||||
For more information how they affect the line breaking algorithms,
|
||||
check out [CSS Text Module Level 3](https://www.w3.org/TR/css-text-3/#line-breaking).
|
||||
|
||||
### Testing
|
||||
You can run the test suite with:
|
||||
|
||||
npm test
|
||||
|
||||
The library implements all the [LineBreakTest.txt tests](http://www.unicode.org/Public/10.0.0/ucd/auxiliary/LineBreakTest.txt)
|
||||
and a number of CSS web-platform-tests.
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"name": "css-line-break",
|
||||
"version": "2.1.0",
|
||||
"description": "",
|
||||
"main": "dist/css-line-break.umd.js",
|
||||
"module": "dist/css-line-break.es5.js",
|
||||
"typings": "dist/types/index.d.ts",
|
||||
"scripts": {
|
||||
"prebuild": "rimraf dist/",
|
||||
"build": "tsc --module commonjs && rollup -c rollup.config.ts",
|
||||
"format": "prettier --write \"{src,scripts}/**/*.ts\"",
|
||||
"lint": "tslint -c tslint.json --project tsconfig.json -t codeFrame src/**/*.ts tests/**/*.ts scripts/**/*.ts",
|
||||
"generate-trie": "ts-node scripts/generate_line_break_trie.ts",
|
||||
"generate-tests": "ts-node scripts/generate_line_break_tests.ts",
|
||||
"mocha": "mocha --require ts-node/register tests/*.ts",
|
||||
"test": "npm run lint && npm run mocha",
|
||||
"release": "standard-version"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/niklasvh/css-line-break.git"
|
||||
},
|
||||
"keywords": [
|
||||
"white-space",
|
||||
"line-break",
|
||||
"word-break",
|
||||
"word-wrap",
|
||||
"overflow-wrap"
|
||||
],
|
||||
"dependencies": {
|
||||
"utrie": "^1.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "^19.0.0",
|
||||
"@rollup/plugin-node-resolve": "^13.0.0",
|
||||
"@rollup/plugin-typescript": "^8.2.1",
|
||||
"@types/mocha": "^8.2.2",
|
||||
"@types/node": "^16.0.0",
|
||||
"mocha": "9.0.2",
|
||||
"prettier": "^2.3.2",
|
||||
"rimraf": "3.0.2",
|
||||
"rollup": "^2.52.7",
|
||||
"rollup-plugin-json": "^4.0.0",
|
||||
"rollup-plugin-sourcemaps": "^0.6.3",
|
||||
"standard-version": "^9.3.0",
|
||||
"ts-node": "^10.0.0",
|
||||
"tslint": "^6.1.3",
|
||||
"tslint-config-prettier": "^1.18.0",
|
||||
"typescript": "^4.3.5"
|
||||
},
|
||||
"author": {
|
||||
"name": "Niklas von Hertzen",
|
||||
"email": "niklasvh@gmail.com",
|
||||
"url": "https://hertzen.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/niklasvh/css-line-break/issues"
|
||||
},
|
||||
"homepage": "https://github.com/niklasvh/css-line-break#readme"
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import resolve from '@rollup/plugin-node-resolve';
|
||||
import commonjs from '@rollup/plugin-commonjs';
|
||||
import sourceMaps from 'rollup-plugin-sourcemaps';
|
||||
import typescript from '@rollup/plugin-typescript';
|
||||
import json from 'rollup-plugin-json';
|
||||
|
||||
const pkg = require('./package.json');
|
||||
|
||||
const banner = `/*
|
||||
* ${pkg.name} ${pkg.version} <${pkg.homepage}>
|
||||
* Copyright (c) ${(new Date()).getFullYear()} ${pkg.author.name} <${pkg.author.url}>
|
||||
* Released under ${pkg.license} License
|
||||
*/`;
|
||||
|
||||
export default {
|
||||
input: `src/index.ts`,
|
||||
output: [
|
||||
{ file: pkg.main, name: pkg.name, format: 'umd', banner, sourcemap: true },
|
||||
{ file: pkg.module, format: 'esm', banner, sourcemap: true },
|
||||
],
|
||||
external: [],
|
||||
watch: {
|
||||
include: 'src/**',
|
||||
},
|
||||
plugins: [
|
||||
// Allow node_modules resolution, so you can use 'external' to control
|
||||
// which external modules to include in the bundle
|
||||
// https://github.com/rollup/rollup-plugin-node-resolve#usage
|
||||
resolve(),
|
||||
// Allow json resolution
|
||||
json(),
|
||||
// Compile TypeScript files
|
||||
typescript({ sourceMap: true, inlineSources: true }),
|
||||
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
|
||||
commonjs(),
|
||||
|
||||
// Resolve source maps to the original source
|
||||
sourceMaps(),
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user