Get rid of jsx extensions 🔮

old
Javi Velasco 2016-04-10 21:04:49 +02:00
parent b0437cd089
commit 0cb8d8bdb2
126 changed files with 35 additions and 39 deletions

View File

@ -3,9 +3,7 @@ files: [
] ]
plugins: plugins:
prerelease: prerelease:
'Linting config files': 'Linting config files':
plugin: 'bumped-finepack' plugin: 'bumped-finepack'
@ -18,7 +16,6 @@ plugins:
command: 'npm run prepublish' command: 'npm run prepublish'
postrelease: postrelease:
'Commiting new version': 'Commiting new version':
plugin: 'bumped-terminal' plugin: 'bumped-terminal'
command: 'git add package.json && git commit package.json -m "$newVersion release" && git push origin master' command: 'git add package.json && git commit package.json -m "$newVersion release" && git push origin master'

View File

@ -54,7 +54,6 @@ $z-index-normal: 1 !default;
$z-index-low: -100 !default; $z-index-low: -100 !default;
$z-index-lower: -200 !default; $z-index-lower: -200 !default;
//-- Breakpoints //-- Breakpoints
// height of app bar // height of app bar
// https://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing // https://www.google.com/design/spec/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
@ -66,7 +65,6 @@ $baseline-grid: (0.8 * $unit) !default;
$layout-gutter-width-sm: ($baseline-grid * 2) !default; $layout-gutter-width-sm: ($baseline-grid * 2) !default;
$layout-gutter-width: ($baseline-grid * 3) !default; $layout-gutter-width: ($baseline-grid * 3) !default;
// https://www.google.com/design/spec/layout/responsive-ui.html#responsive-ui-breakpoints // https://www.google.com/design/spec/layout/responsive-ui.html#responsive-ui-breakpoints
// 4 columns // 4 columns
$layout-breakpoint-xxs: 480px !default; $layout-breakpoint-xxs: 480px !default;

View File

@ -19,7 +19,7 @@
top: 0; top: 0;
right: 0; right: 0;
left: 0; left: 0;
z-index: $z-index-high; z-index: $z-index-highest;
} }
a { a {

View File

@ -3,8 +3,8 @@ import ReactDOM from 'react-dom';
import { Button } from 'react-toolbox'; import { Button } from 'react-toolbox';
import Appbar from '../../../components/appbar'; import Appbar from '../../../components/appbar';
import Markdown from '../../../components/markdown'; import Markdown from '../../../components/markdown';
import Playground from './components/playground'; import Playground from './components/playground.js';
import MainNavigation from './components/navigation'; import MainNavigation from './components/navigation.js';
import BaseDocs from './modules/components.md'; import BaseDocs from './modules/components.md';
import components from './modules/components.js'; import components from './modules/components.js';
import style from './style'; import style from './style';

View File

@ -15,7 +15,7 @@ hr {
position: fixed; position: fixed;
top: $appbar-height - ($button-floating-height / 2); top: $appbar-height - ($button-floating-height / 2);
right: $button-floating-height / 2; right: $button-floating-height / 2;
z-index: $z-index-higher; z-index: $z-index-highest;
} }
.documentation { .documentation {

View File

@ -9,7 +9,7 @@ module.exports = {
devtool: 'inline-source-map', devtool: 'inline-source-map',
entry: [ entry: [
'webpack-hot-middleware/client', 'webpack-hot-middleware/client',
'./app/index.jsx' './app/index.js'
], ],
output: { output: {
path: path.join(__dirname, 'build'), path: path.join(__dirname, 'build'),
@ -17,7 +17,7 @@ module.exports = {
publicPath: '/' publicPath: '/'
}, },
resolve: { resolve: {
extensions: ['', '.jsx', '.scss', '.js', '.json', '.md'], extensions: ['', '.scss', '.js', '.json', '.md'],
packageMains: ['browser', 'web', 'browserify', 'main', 'style'], packageMains: ['browser', 'web', 'browserify', 'main', 'style'],
alias: { alias: {
'react-toolbox': path.resolve(__dirname + './../components') 'react-toolbox': path.resolve(__dirname + './../components')
@ -32,7 +32,7 @@ module.exports = {
module: { module: {
loaders: [ loaders: [
{ {
test: /\.(js|jsx)$/, test: /\.js$/,
exclude: /(node_modules)/, exclude: /(node_modules)/,
loader: 'babel' loader: 'babel'
}, { }, {

View File

@ -7,13 +7,13 @@ const TransferWebpackPlugin = require('transfer-webpack-plugin');
module.exports = { module.exports = {
context: __dirname, context: __dirname,
entry: ['./app/index.jsx'], entry: ['./app/index.js'],
output: { output: {
path: path.join(__dirname, 'build'), path: path.join(__dirname, 'build'),
filename: 'docs.js' filename: 'docs.js'
}, },
resolve: { resolve: {
extensions: ['', '.jsx', '.scss', '.js', '.json', '.md'], extensions: ['', '.scss', '.js', '.json', '.md'],
packageMains: ['browser', 'web', 'browserify', 'main', 'style'], packageMains: ['browser', 'web', 'browserify', 'main', 'style'],
alias: { alias: {
'react-toolbox': path.resolve(__dirname + './../components') 'react-toolbox': path.resolve(__dirname + './../components')
@ -28,7 +28,7 @@ module.exports = {
module: { module: {
loaders: [ loaders: [
{ {
test: /\.(js|jsx)$/, test: /\.js$/,
exclude: /(node_modules)/, exclude: /(node_modules)/,
loader: 'babel' loader: 'babel'
}, { }, {

View File

@ -96,7 +96,7 @@
"build": "cross-env NODE_ENV=production npm run babel && npm run sass", "build": "cross-env NODE_ENV=production npm run babel && npm run sass",
"clean": "rimraf ./lib", "clean": "rimraf ./lib",
"lint": "npm run lint:js && npm run lint:scss", "lint": "npm run lint:js && npm run lint:scss",
"lint:js": "eslint ./ --ext .js,.jsx", "lint:js": "eslint ./ --ext .js",
"lint:scss": "sass-lint ./components/**/*.scss -v -i ./components/slider/style.scss", "lint:scss": "sass-lint ./components/**/*.scss -v -i ./components/slider/style.scss",
"patch": "bumped release patch", "patch": "bumped release patch",
"prebuild": "npm run clean", "prebuild": "npm run clean",

Some files were not shown because too many files have changed in this diff Show More