Skip to content

Commit a2d9a03

Browse files
committed
@fluent/syntax 0.14.0
1 parent 49d5d3d commit a2d9a03

File tree

6 files changed

+24
-20
lines changed

6 files changed

+24
-20
lines changed

fluent-syntax/.esdoc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"source": "./src",
3-
"destination": "../html/fluent-syntax",
3+
"destination": "../html/syntax",
44
"plugins": [
55
{
66
"name": "esdoc-standard-plugin"

fluent-syntax/.gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
fluent-syntax.js
2-
compat.js
1+
/index.js
2+
/compat.js

fluent-syntax/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## @fluent/syntax 0.14.0 (July 25, 2019)
4+
5+
- Rename `fluent-syntax` to `@fluent/syntax`.
6+
37
## fluent-syntax 0.14.0 (July 25, 2019)
48

59
- Deprecate fluent-syntax. Plase use @fluent/syntax from now on.

fluent-syntax/README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# fluent-syntax
1+
# @fluent/syntax
22

3-
`fluent-syntax` is a parser for Fluent translation files, FTL. Project Fluent
4-
is a localization framework designed to unleash the expressive power of the
5-
natural language.
3+
`@fluent/syntax` is a parser for Fluent translation files, FTL. Project
4+
Fluent is a localization framework designed to unleash the expressive power
5+
of the natural language.
66

77

88
## Installation
99

10-
`fluent-syntax` can be used both on the client-side and the server-side. You
10+
`@fluent/syntax` can be used both on the client-side and the server-side. You
1111
can install it from the npm registry or use it as a standalone script (as the
1212
`FluentSyntax` global).
1313

14-
npm install fluent-syntax
14+
npm install @fluent/syntax
1515

1616

1717
## How to use
1818

1919
```javascript
20-
import { parse, Resource } from 'fluent-syntax';
20+
import {parse, Resource} from "@fluent/syntax";
2121

2222
const res = parse(`
23-
brand-name = Foo 3000
24-
welcome = Welcome, { $name }, to { brand-name }!
23+
-brand-name = Foo 3000
24+
welcome = Welcome, {$name}, to {-brand-name}!
2525
`);
2626

2727
assert(res instanceof Resource);
2828
```
2929

3030
The API reference is available at
31-
http://projectfluent.org/fluent.js/fluent-syntax.
31+
http://projectfluent.org/fluent.js/syntax.
3232

3333

3434
## Compatibility
@@ -37,7 +37,7 @@ For legacy browsers, the `compat` build has been transpiled using Babel's [env
3737
preset][]:
3838

3939
```javascript
40-
import 'fluent-syntax/compat';
40+
import "@fluent/syntax/compat";
4141
```
4242

4343

fluent-syntax/makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
PACKAGE := fluent-syntax
1+
PACKAGE := @fluent/syntax
22
GLOBAL := FluentSyntax
33

44
include ../common.mk
55

6-
build: $(PACKAGE).js compat.js
6+
build: index.js compat.js
77

8-
$(PACKAGE).js: $(SOURCES)
8+
index.js: $(SOURCES)
99
@rollup $(CURDIR)/src/index.js \
1010
--config $(ROOT)/bundle_config.js \
1111
--banner "/* $(PACKAGE)@$(VERSION) */" \
@@ -24,7 +24,7 @@ compat.js: $(SOURCES)
2424
@echo -e " $(OK) $@ built"
2525

2626
clean:
27-
@rm -f $(PACKAGE).js compat.js
27+
@rm -f index.js compat.js
2828
@rm -rf .nyc_output coverage
2929
@echo -e " $(OK) clean"
3030

fluent-syntax/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "fluent-syntax",
2+
"name": "@fluent/syntax",
33
"description": "AST and parser for Fluent",
44
"version": "0.14.0",
55
"homepage": "http://projectfluent.org",
@@ -18,7 +18,7 @@
1818
"directories": {
1919
"lib": "./src"
2020
},
21-
"main": "./fluent-syntax.js",
21+
"main": "./index.js",
2222
"module": "./src/index.js",
2323
"repository": {
2424
"type": "git",

0 commit comments

Comments
 (0)