From a2d9a03d2ea5f08bd31bae0ce857a6344ce39a6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sta=C5=9B=20Ma=C5=82olepszy?= Date: Thu, 25 Jul 2019 12:42:58 +0200 Subject: [PATCH] @fluent/syntax 0.14.0 --- fluent-syntax/.esdoc.json | 2 +- fluent-syntax/.gitignore | 4 ++-- fluent-syntax/CHANGELOG.md | 4 ++++ fluent-syntax/README.md | 22 +++++++++++----------- fluent-syntax/makefile | 8 ++++---- fluent-syntax/package.json | 4 ++-- 6 files changed, 24 insertions(+), 20 deletions(-) diff --git a/fluent-syntax/.esdoc.json b/fluent-syntax/.esdoc.json index f54d9b586..fb3d9174e 100644 --- a/fluent-syntax/.esdoc.json +++ b/fluent-syntax/.esdoc.json @@ -1,6 +1,6 @@ { "source": "./src", - "destination": "../html/fluent-syntax", + "destination": "../html/syntax", "plugins": [ { "name": "esdoc-standard-plugin" diff --git a/fluent-syntax/.gitignore b/fluent-syntax/.gitignore index 3cc286a4c..7d147bec1 100644 --- a/fluent-syntax/.gitignore +++ b/fluent-syntax/.gitignore @@ -1,2 +1,2 @@ -fluent-syntax.js -compat.js +/index.js +/compat.js diff --git a/fluent-syntax/CHANGELOG.md b/fluent-syntax/CHANGELOG.md index 2da2573b0..9e30ab408 100644 --- a/fluent-syntax/CHANGELOG.md +++ b/fluent-syntax/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## @fluent/syntax 0.14.0 (July 25, 2019) + + - Rename `fluent-syntax` to `@fluent/syntax`. + ## fluent-syntax 0.14.0 (July 25, 2019) - Deprecate fluent-syntax. Plase use @fluent/syntax from now on. diff --git a/fluent-syntax/README.md b/fluent-syntax/README.md index 9995de3e1..992fd5934 100644 --- a/fluent-syntax/README.md +++ b/fluent-syntax/README.md @@ -1,34 +1,34 @@ -# fluent-syntax +# @fluent/syntax -`fluent-syntax` is a parser for Fluent translation files, FTL. Project Fluent -is a localization framework designed to unleash the expressive power of the -natural language. +`@fluent/syntax` is a parser for Fluent translation files, FTL. Project +Fluent is a localization framework designed to unleash the expressive power +of the natural language. ## Installation -`fluent-syntax` can be used both on the client-side and the server-side. You +`@fluent/syntax` can be used both on the client-side and the server-side. You can install it from the npm registry or use it as a standalone script (as the `FluentSyntax` global). - npm install fluent-syntax + npm install @fluent/syntax ## How to use ```javascript -import { parse, Resource } from 'fluent-syntax'; +import {parse, Resource} from "@fluent/syntax"; const res = parse(` -brand-name = Foo 3000 -welcome = Welcome, { $name }, to { brand-name }! +-brand-name = Foo 3000 +welcome = Welcome, {$name}, to {-brand-name}! `); assert(res instanceof Resource); ``` The API reference is available at -http://projectfluent.org/fluent.js/fluent-syntax. +http://projectfluent.org/fluent.js/syntax. ## Compatibility @@ -37,7 +37,7 @@ For legacy browsers, the `compat` build has been transpiled using Babel's [env preset][]: ```javascript -import 'fluent-syntax/compat'; +import "@fluent/syntax/compat"; ``` diff --git a/fluent-syntax/makefile b/fluent-syntax/makefile index 54d6414f5..3dc75639b 100644 --- a/fluent-syntax/makefile +++ b/fluent-syntax/makefile @@ -1,11 +1,11 @@ -PACKAGE := fluent-syntax +PACKAGE := @fluent/syntax GLOBAL := FluentSyntax include ../common.mk -build: $(PACKAGE).js compat.js +build: index.js compat.js -$(PACKAGE).js: $(SOURCES) +index.js: $(SOURCES) @rollup $(CURDIR)/src/index.js \ --config $(ROOT)/bundle_config.js \ --banner "/* $(PACKAGE)@$(VERSION) */" \ @@ -24,7 +24,7 @@ compat.js: $(SOURCES) @echo -e " $(OK) $@ built" clean: - @rm -f $(PACKAGE).js compat.js + @rm -f index.js compat.js @rm -rf .nyc_output coverage @echo -e " $(OK) clean" diff --git a/fluent-syntax/package.json b/fluent-syntax/package.json index 465ff0d4e..231934cdd 100644 --- a/fluent-syntax/package.json +++ b/fluent-syntax/package.json @@ -1,5 +1,5 @@ { - "name": "fluent-syntax", + "name": "@fluent/syntax", "description": "AST and parser for Fluent", "version": "0.14.0", "homepage": "http://projectfluent.org", @@ -18,7 +18,7 @@ "directories": { "lib": "./src" }, - "main": "./fluent-syntax.js", + "main": "./index.js", "module": "./src/index.js", "repository": { "type": "git",