Skip to content

Commit 6e8fe9f

Browse files
author
Claudéric Demers
authored
improvement: upgrade build pipeline and dev dependencies (clauderic#466)
* Use microbundle for bundling * Updated eslint config * Use standard-version for managing versioning * Updated travisci node version * Addded prettier as pre-commit hook
1 parent 7e8cd6d commit 6e8fe9f

33 files changed

+8499
-3232
lines changed

.babelrc

Lines changed: 0 additions & 34 deletions
This file was deleted.

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
# Markdown syntax specifies that trailing whitespaces can be meaningful,
12+
# so let’s not trim those. e.g. 2 trailing spaces = linebreak (<br />)
13+
# See https://daringfireball.net/projects/markdown/syntax#p
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintrc

Lines changed: 0 additions & 21 deletions
This file was deleted.

.eslintrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"extends": ["plugin:shopify/react"],
3+
"rules": {
4+
"no-lonely-if": "off",
5+
"no-undefined": "off",
6+
"no-param-reassign": "off",
7+
"no-mixed-operators": "off",
8+
"no-misleading-character-class": "off",
9+
"require-atomic-updates": "off",
10+
"prefer-object-spread": "off",
11+
"lines-around-comment": "off",
12+
"function-paren-newline": "off",
13+
"promise/catch-or-return": "off",
14+
"react/forbid-prop-types": "off",
15+
"react/jsx-filename-extension": "off",
16+
"react/no-unused-prop-types": "off",
17+
"shopify/binary-assignment-parens": "off",
18+
"react/no-string-refs": 1,
19+
"react/no-deprecated": 1
20+
}
21+
}

.npmignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,5 @@ src
55
test
66
.*
77
*.md
8-
server.js
9-
index.html
10-
/index.js
11-
karma.conf.js
12-
webpack.config.*.js
13-
babel.preprocess.sass.js
148
codecov.yml
159
.travis.yml

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSpacing": false,
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

.storybook/addons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import '@storybook/addon-options/register';

.storybook/config.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
import { configure } from '@kadira/storybook';
1+
import {addDecorator, configure} from '@storybook/react';
2+
import {withOptions} from '@storybook/addon-options';
3+
4+
addDecorator(
5+
withOptions({
6+
name: 'React Sortable HOC',
7+
url: 'https://github.com/clauderic/react-sortable-hoc',
8+
showAddonPanel: false,
9+
})
10+
);
211

312
function loadStories() {
413
require('../src/.stories/index.js');

.storybook/head.html

Whitespace-only changes.

.storybook/webpack.config.js

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
var autoprefixer = require('autoprefixer');
2-
var webpack = require('webpack');
3-
var path = require('path');
4-
51
module.exports = {
6-
plugins: [
7-
new webpack.NormalModuleReplacementPlugin(/^\.\/layout$/, 'custom-layout')
8-
],
9-
resolve: {
10-
alias: {
11-
'custom-layout': path.resolve('.storybook/layout/index.js')
12-
}
13-
},
14-
module: {
15-
loaders: [
16-
{
17-
test: /(\.scss)$/,
18-
loaders: ['style', 'css?sourceMap&modules&importLoaders=1&localIdentName=[name]__[local]!postcss!sass?sourceMap']
2+
module: {
3+
rules: [
4+
{
5+
test: /(\.scss)$/,
6+
use: [
7+
'style-loader',
8+
{
9+
loader: 'css-loader',
10+
options: {
11+
modules: true,
12+
localIdentName: '[name]__[local]',
13+
},
14+
},
15+
{
16+
loader: 'postcss-loader',
17+
options: {
18+
plugins: [require('autoprefixer')],
1919
},
20-
{
21-
test: /(\.css)$/,
22-
loaders: ['style', 'css']
23-
}
24-
]
25-
},
26-
postcss: [autoprefixer]
27-
}
20+
},
21+
'sass-loader',
22+
],
23+
},
24+
{
25+
test: /(\.css)$/,
26+
use: ['style-loader', 'css-loader'],
27+
},
28+
],
29+
},
30+
};

0 commit comments

Comments
 (0)