Skip to content

Commit

Permalink
initial v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Connum committed Jul 18, 2019
1 parent 62a55db commit 5218107
Show file tree
Hide file tree
Showing 23 changed files with 3,604 additions and 166 deletions.
41 changes: 41 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
let config = {
"env": {
"development": {
"presets": ["@babel/preset-env"],
"comments": true,
"shouldPrintComment": (val) => {
return true;
},
"plugins": [
"add-module-exports",
"@babel/plugin-transform-object-assign"
]
},
"dist": {
"presets": ["@babel/preset-env"],
"comments": true,
"shouldPrintComment": (val) => {
return !/This file is part of catalan2ipa\./.test(val);
},
"plugins": [
"add-module-exports",
"@babel/plugin-transform-object-assign"
]
},
"production": {
"presets": ["@babel/preset-env", ["minify", {
"builtIns": false,
"mangle": { "topLevel": true },
"regexpConstructors": false,
"evaluate": false
}]],
"comments": false,
"plugins": [
"add-module-exports",
"@babel/plugin-transform-object-assign"
]
}
}
};

module.exports = config;
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig helps developers define and maintain
# consistent coding styles between different editors and IDEs.

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
Empty file added .eslintignore
Empty file.
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"mocha": true
},
"rules": {
"comma-dangle": ["error", "only-multiline"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }]
}
}
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Logs
logs
*.log
npm-debug.log*

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Editors
.idea

# Lib
lib

# npm package lock
package-lock.json
yarn.lock

# others
.DS_Store
25 changes: 25 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
*.log
npm-debug.log*

# Coverage directory used by tools like istanbul
coverage
.nyc_output

# Dependency directories
node_modules

# npm package lock
package-lock.json
yarn.lock

# project files
src
test
build
CHANGELOG.md
.travis.yml
.editorconfig
.eslintignore
.eslintrc
.babelrc
.gitignore
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: node_js
node_js:
- '8'
- '6'
script:
- npm run test
- npm run build
branches:
only:
- master
Loading

0 comments on commit 5218107

Please sign in to comment.