Skip to content

Commit

Permalink
Remove distribution files from source
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Mar 31, 2016
1 parent 00b4e51 commit 9fb527a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
coverage/
dist/
franc-all.js
franc-most.js
franc.js
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
*.log
coverage/
node_modules/
franc.js
franc-most.js
franc-all.js
4 changes: 3 additions & 1 deletion .jscs.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"excludeFiles": [
"coverage/",
"dist/",
"franc-all.js",
"franc-most.js",
"franc.js",
"node_modules/"
],
"preset": "yandex",
Expand Down
1 change: 0 additions & 1 deletion dist/franc-all.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/franc-most.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/franc.js

This file was deleted.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"files": [
"index.js",
"cli.js",
"dist/",
"lib/"
],
"repository": {
Expand Down Expand Up @@ -52,13 +51,13 @@
"scripts": {
"build-fixtures": "node script/build-fixtures.js",
"build-support": "node script/build-support.js",
"build-bundle-small": "export THRESHOLD=8000000 && node script/build-languages.js && browserify lib/franc.js --standalone franc --outfile dist/franc.js",
"build-bundle-medium": "export THRESHOLD=1000000 && node script/build-languages.js && browserify lib/franc.js --standalone franc --outfile dist/franc-most.js",
"build-bundle-large": "export THRESHOLD=-1 && node script/build-languages.js && browserify lib/franc.js --standalone franc --outfile dist/franc-all.js",
"build-bundle-small": "export THRESHOLD=8000000 && node script/build-languages.js && browserify lib/franc.js --standalone franc --outfile franc.js",
"build-bundle-medium": "export THRESHOLD=1000000 && node script/build-languages.js && browserify lib/franc.js --standalone franc --outfile franc-most.js",
"build-bundle-large": "export THRESHOLD=-1 && node script/build-languages.js && browserify lib/franc.js --standalone franc --outfile franc-all.js",
"build-bundle": "npm run build-bundle-small && npm run build-bundle-large && npm run build-bundle-medium",
"build-mangle-small": "esmangle dist/franc.js -o dist/franc.js",
"build-mangle-medium": "esmangle dist/franc-most.js -o dist/franc-most.js",
"build-mangle-large": "esmangle dist/franc-all.js -o dist/franc-all.js",
"build-mangle-small": "esmangle franc.js -o franc.js",
"build-mangle-medium": "esmangle franc-most.js -o franc-most.js",
"build-mangle-large": "esmangle franc-all.js -o franc-all.js",
"build-mangle": "npm run build-mangle-small && npm run build-mangle-medium && npm run build-mangle-large",
"build": "npm run build-bundle && npm run build-mangle && npm run build-fixtures && npm run build-support",
"lint-api": "eslint .",
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ The above would create a version of **franc** with support for any language with

I’ve compiled three versions of **franc** for use in the browser. They’re [UMD](http://ryanflorence.com/2013/es6-modules-and-browser-app-delivery/) compliant: they work with [AMD](https://github.com/amdjs/amdjs-api/blob/master/AMD.md), [CommonJS](http://www.commonjs.org), and `<script>`s.

- [dist/franc.js](dist/franc.js)**franc** with support for languages with 8 million or more speakers (75 languages);
- [dist/franc-most.js](dist/franc-most.js)**franc** with support for languages with 1 million or more speakers (175 languages, the same as the [Node or Component](supported-Languages.md) version);
- [dist/franc-all.js](dist/franc-all.js)**franc** with support for all languages (339 languages, carful, huge!).
- [`franc.js`](franc.js)**franc** with support for languages with 8 million or more speakers (75 languages);
- [`franc-most.js`](franc-most.js)**franc** with support for languages with 1 million or more speakers (175 languages, the same as the [Node or Component](supported-Languages.md) version);
- [`franc-all.js`](franc-all.js)**franc** with support for all languages (339 languages, carful, huge!).

## Derivation

Expand Down

0 comments on commit 9fb527a

Please sign in to comment.