Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port CoffeeScript to ES6 #35

Merged
merged 22 commits into from
Aug 26, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["transform-decorators-legacy", "transform-runtime"]
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ node_modules/
playground/
.DS_Store
coverage/
coverage.html
coverage.html
data.trie
/index.js
/base.js
*.js.map
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ node_js:
- stable
- "4"
- "0.12"
- "0.10"
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
SOURCES = $(shell find src)

all: index.js base.js

src/opentype/shapers/data.trie:
babel-node src/opentype/shapers/generate-data.js

data.trie: src/opentype/shapers/data.trie
cp src/opentype/shapers/data.trie data.trie

index.js: $(SOURCES) data.trie
rollup -c -m -i src/index.js -o index.js

base.js: $(SOURCES) data.trie
rollup -c -m -i src/base.js -o base.js

clean:
rm -f index.js base.js data.trie src/opentype/shapers/data.trie
41 changes: 0 additions & 41 deletions base.coffee

This file was deleted.

9 changes: 9 additions & 0 deletions esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"source": "./src",
"destination": "./docs",
"undocumentIdentifier": false,
"unexportIdentifier": true,
"plugins": [
{ "name": "esdoc-es7-plugin" }
]
}
10 changes: 0 additions & 10 deletions index.coffee

This file was deleted.

37 changes: 25 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,45 @@
],
"scripts": {
"test": "mocha",
"coverage": "mocha --require coffee-coverage/register-istanbul && istanbul report",
"prepublish": "coffee -c src/ *.coffee",
"postpublish": "rm *.js && find src -name '*.js' -delete"
"prepublish": "make",
"coverage": "babel-node ./node_modules/.bin/isparta cover ./node_modules/.bin/_mocha"
},
"main": "index.js",
"jsnext:main": "src/index.js",
"files": [
"src",
"base.js",
"index.js",
"data.trie"
],
"author": "Devon Govett <[email protected]>",
"license": "MIT",
"dependencies": {
"babel-runtime": "^6.11.6",
"brfs": "^1.4.0",
"brotli": "^1.0.0",
"brotli": "^1.2.0",
"clone": "^1.0.1",
"deep-equal": "^1.0.0",
"iconv-lite": "^0.4.11",
"pako": "^0.2.5",
"restructure": "^0.5.0",
"typedarray-to-buffer": "~3.0.0",
"tiny-inflate": "^1.0.2",
"unicode-properties": "^1.0.0",
"unicode-trie": "^0.3.0"
},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-preset-es2015": "^6.14.0",
"babel-register": "^6.14.0",
"codepoints": "^1.2.0",
"coffee-coverage": "^0.4.2",
"coffee-script": "^1.8.0",
"concat-stream": "^1.4.6",
"iconv-lite": "^0.4.7",
"istanbul": "^0.3.17",
"mocha": "^2.0.1"
"esdoc": "^0.4.8",
"esdoc-es7-plugin": "0.0.3",
"isparta": "^3.5.3",
"mocha": "^2.0.1",
"rollup": "^0.34.10",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-local-resolve": "^1.0.7"
},
"browserify": {
"transform": [
Expand Down
15 changes: 15 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import babel from 'rollup-plugin-babel';
import localResolve from 'rollup-plugin-local-resolve';

export default {
format: 'cjs',
plugins: [
localResolve(),
babel({
babelrc: false,
presets: [['es2015', { modules: false }]],
plugins: ['transform-decorators-legacy', 'transform-runtime'],
runtimeHelpers: true
})
]
};
108 changes: 0 additions & 108 deletions src/CFFFont.coffee

This file was deleted.

Loading