Skip to content

Commit

Permalink
refactor(index.js): Changed function export name from bc to bulma
Browse files Browse the repository at this point in the history
The name `bulma` is more semantic and readable than `bc`, which follows this package's Guiding
prinicples more closely. In addition, this commit adds nearly 100% code coverage, a Travis CI,
Semantic versioning and Standardized Git commit messages with Commitizen

BREAKING CHANGE: The function name is now `bulma` instead of `bc`

docs(READE.md): Add description for `raw`

Also update the path to the made_with_bulma.png logo

docs(README.md, .travix.yml): Move logo, update Travis build version

Move logo to bottom of README.md for better readability, remove unused .nvm file and add latest node
version in .travis.yml file

fix(.travis.yml): Remove codecov script

Switch to coveralls, now codecov script is no longer needed

ci(.travis.yml, package.json): Update Travis build scripts

Change to yarn build script to run both tests and linting and update after success step to use
semantic-release

ci(.travis.yml): Remove deploy config

ci(.travis.yml, package.json): Add NPM API key

Now package will be published automatically on passing build with semantic-release

ci(.travis.yml): Remove deploy: {tags: true} line
  • Loading branch information
seanWLawrence committed Aug 5, 2018
1 parent 2419768 commit 46a17c9
Show file tree
Hide file tree
Showing 13 changed files with 811 additions and 710 deletions.
Binary file removed .DS_Store
Binary file not shown.
39 changes: 19 additions & 20 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
},
extends: ['eslint:recommended', 'plugin:flowtype/recommended'],
parser: 'babel-eslint',
plugins: ['flowtype', 'jest'],
rules: {
indent: ['error', 'tab'],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
},
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
},
extends: ['eslint:recommended', 'plugin:flowtype/recommended'],
parser: 'babel-eslint',
plugins: ['flowtype', 'jest'],
rules: {
'linebreak-style': ['error', 'unix'],
quotes: ['warn', 'single'],
semi: ['error', 'always'],
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
},
};
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ node_modules
dist

// ignore vs code settings
.vscode/
.vscode/

// ignore code coverage
coverage/

// ignore Mac settings
.DS_Store
assets/.DS_Store
Empty file removed .nvm
Empty file.
17 changes: 8 additions & 9 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
module.exports = {
bracketSpacing: true,
tabWidth: 2,
semi: true,
printWidth: 80,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
parser: 'flow',
useTabs: true,
bracketSpacing: true,
tabWidth: 2,
semi: true,
printWidth: 80,
singleQuote: true,
trailingComma: 'all',
arrowParens: 'always',
parser: 'flow',
};
31 changes: 22 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
language: node_js
node_js:
- node
- lts/*
cache:
directories:
- ~/.npm
- "~/.npm"
notifications:
email: false
node_js:
- '10'
- '9'
- '8'
- '6'
install: yarn install --ignore-engines
jobs:
include:
- stage: Produce Coverage
node_js: node
script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
&& rm -rf ./coverage
script:
- yarn test:single
- yarn build
after_success:
- yarn travis-deploy-once "yarn semantic-release"
- yarn travis-deploy-once
branches:
except:
- /^v\d+\.\d+\.\d+$/
- "/^v\\d+\\.\\d+\\.\\d+$/"
deploy:
provider: npm
email: [email protected]
api_key:
secure: 0BzGKWLbgP7vwKu/By4M756WiPc4Fcwoc5S9vBb3mtQ8AnZ8z+gQMT7vJJ/l30J2j7VZvvBEYNW1O3F/fehqwYgTeFGAR/43ZkP7XcqdLCjyuQZPUY7S7azMwihqRAhVucEthJr0QKjFh1XRbZm4TAz0+S3PhwKRRrT8RlSXbME7XhpucRdyA2kjHoOZhxFZ0rEHUjyOaPFPve+3dEd3O+R6anmfFQHVcqoZ6A9lHawZTJNhxgVSL/xFHG0wrpPTNrNGJgDC2qOinl1EYQpaok5CRqnzaA/4nbiAGafAlr4cRqp0wvZehfpTgziR2KAFdlnbBeFg5jfLEMeAD32gOWvdit/9Zh8rRuFI8fEfI6VxboBXycu6ti8Rym82cOfXdqPV5xGJmlyYqslTOb8Bt9xFOG5CgMaZqpe/ep12k04r+rlQCotxGUZ2WVhoUjKcRrV32JwcqUf/ROEpsIXFOK+u5qS/ogPH/3J1O/RgOmorX5tYEDyQTrN1Nr7qkqQVJKlvJeGl1frhoLb3ZyOLen3koFfX5jeja6QVYylgl+QhNPt+m9VuOYszB8lYaOOez9CAxCYeDIbBlcLGmmew0wYlI2F0TRftjTugNYdnqxWvN9YNBlOfbgKRXrpgIvYN8GmAoJ1ISvCNZ6yMqusjJJ1WWRGDuhADHMS9cTaJlp4=
on:
tags: false
repo: seanWLawrence/bulma-classnames
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Changelog

## v1.0 - BREAKING CHANGE: Update function name to `bulma` from `bc`

If you still prefer to use the `bc` function name for any reason, simply import it like so:

```javascript
import bulma as bc from 'bulma-classnames'
```

## v 0.0.1 Beta
Loading

0 comments on commit 46a17c9

Please sign in to comment.