Skip to content

Commit 46a17c9

Browse files
committed
refactor(index.js): Changed function export name from bc to bulma
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
1 parent 2419768 commit 46a17c9

13 files changed

+811
-710
lines changed

.DS_Store

-6 KB
Binary file not shown.

.eslintrc.js

+19-20
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
module.exports = {
2-
env: {
3-
browser: true,
4-
commonjs: true,
5-
es6: true,
6-
jest: true,
7-
},
8-
extends: ['eslint:recommended', 'plugin:flowtype/recommended'],
9-
parser: 'babel-eslint',
10-
plugins: ['flowtype', 'jest'],
11-
rules: {
12-
indent: ['error', 'tab'],
13-
'linebreak-style': ['error', 'unix'],
14-
quotes: ['error', 'single'],
15-
semi: ['error', 'always'],
16-
'jest/no-disabled-tests': 'warn',
17-
'jest/no-focused-tests': 'error',
18-
'jest/no-identical-title': 'error',
19-
'jest/prefer-to-have-length': 'warn',
20-
'jest/valid-expect': 'error',
21-
},
2+
env: {
3+
browser: true,
4+
commonjs: true,
5+
es6: true,
6+
jest: true,
7+
},
8+
extends: ['eslint:recommended', 'plugin:flowtype/recommended'],
9+
parser: 'babel-eslint',
10+
plugins: ['flowtype', 'jest'],
11+
rules: {
12+
'linebreak-style': ['error', 'unix'],
13+
quotes: ['warn', 'single'],
14+
semi: ['error', 'always'],
15+
'jest/no-disabled-tests': 'warn',
16+
'jest/no-focused-tests': 'error',
17+
'jest/no-identical-title': 'error',
18+
'jest/prefer-to-have-length': 'warn',
19+
'jest/valid-expect': 'error',
20+
},
2221
};

.gitignore

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ node_modules
55
dist
66

77
// ignore vs code settings
8-
.vscode/
8+
.vscode/
9+
10+
// ignore code coverage
11+
coverage/
12+
13+
// ignore Mac settings
14+
.DS_Store
15+
assets/.DS_Store

.nvm

Whitespace-only changes.

.prettierrc.js

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
module.exports = {
2-
bracketSpacing: true,
3-
tabWidth: 2,
4-
semi: true,
5-
printWidth: 80,
6-
singleQuote: true,
7-
trailingComma: 'all',
8-
arrowParens: 'always',
9-
parser: 'flow',
10-
useTabs: true,
2+
bracketSpacing: true,
3+
tabWidth: 2,
4+
semi: true,
5+
printWidth: 80,
6+
singleQuote: true,
7+
trailingComma: 'all',
8+
arrowParens: 'always',
9+
parser: 'flow',
1110
};

.travis.yml

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
language: node_js
2+
node_js:
3+
- node
4+
- lts/*
25
cache:
36
directories:
4-
- ~/.npm
7+
- "~/.npm"
58
notifications:
69
email: false
7-
node_js:
8-
- '10'
9-
- '9'
10-
- '8'
11-
- '6'
10+
install: yarn install --ignore-engines
11+
jobs:
12+
include:
13+
- stage: Produce Coverage
14+
node_js: node
15+
script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
16+
&& rm -rf ./coverage
1217
script:
13-
- yarn test:single
18+
- yarn build
1419
after_success:
15-
- yarn travis-deploy-once "yarn semantic-release"
20+
- yarn travis-deploy-once
1621
branches:
1722
except:
18-
- /^v\d+\.\d+\.\d+$/
23+
- "/^v\\d+\\.\\d+\\.\\d+$/"
24+
deploy:
25+
provider: npm
26+
27+
api_key:
28+
secure: 0BzGKWLbgP7vwKu/By4M756WiPc4Fcwoc5S9vBb3mtQ8AnZ8z+gQMT7vJJ/l30J2j7VZvvBEYNW1O3F/fehqwYgTeFGAR/43ZkP7XcqdLCjyuQZPUY7S7azMwihqRAhVucEthJr0QKjFh1XRbZm4TAz0+S3PhwKRRrT8RlSXbME7XhpucRdyA2kjHoOZhxFZ0rEHUjyOaPFPve+3dEd3O+R6anmfFQHVcqoZ6A9lHawZTJNhxgVSL/xFHG0wrpPTNrNGJgDC2qOinl1EYQpaok5CRqnzaA/4nbiAGafAlr4cRqp0wvZehfpTgziR2KAFdlnbBeFg5jfLEMeAD32gOWvdit/9Zh8rRuFI8fEfI6VxboBXycu6ti8Rym82cOfXdqPV5xGJmlyYqslTOb8Bt9xFOG5CgMaZqpe/ep12k04r+rlQCotxGUZ2WVhoUjKcRrV32JwcqUf/ROEpsIXFOK+u5qS/ogPH/3J1O/RgOmorX5tYEDyQTrN1Nr7qkqQVJKlvJeGl1frhoLb3ZyOLen3koFfX5jeja6QVYylgl+QhNPt+m9VuOYszB8lYaOOez9CAxCYeDIbBlcLGmmew0wYlI2F0TRftjTugNYdnqxWvN9YNBlOfbgKRXrpgIvYN8GmAoJ1ISvCNZ6yMqusjJJ1WWRGDuhADHMS9cTaJlp4=
29+
on:
30+
tags: false
31+
repo: seanWLawrence/bulma-classnames

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
## v1.0 - BREAKING CHANGE: Update function name to `bulma` from `bc`
4+
5+
If you still prefer to use the `bc` function name for any reason, simply import it like so:
6+
7+
```javascript
8+
import bulma as bc from 'bulma-classnames'
9+
```
10+
11+
## v 0.0.1 Beta

0 commit comments

Comments
 (0)