forked from relax/relax
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6570d37
commit 046b31f
Showing
6 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ node_modules | |
|
||
/public/ | ||
dist/ | ||
.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ lib/ | |
uploads/ | ||
build/ | ||
package.json.tmp | ||
.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"env": { | ||
"mocha": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import expect from 'expect'; | ||
|
||
import pageBuilderReducer from '../page-builder'; | ||
|
||
describe('Page Builder Reducer', () => { | ||
it('Does not alter state if not a valid action', () => { | ||
const state = {something: 1}; | ||
const newState = pageBuilderReducer(state, {type: 'not-valid'}); | ||
expect(newState).toBe(state); | ||
expect(newState).toEqual(state); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* eslint-disable */ | ||
var webpack = require('webpack'); | ||
var path = require('path'); | ||
var nodeExternals = require('webpack-node-externals'); | ||
var optimize = webpack.optimize; | ||
|
||
var webpackConfig = module.exports = { | ||
target: 'node', // in order to ignore built-in modules like path, fs, etc. | ||
externals: [nodeExternals()], // in order to ignore all modules in node_modules folder | ||
devtool: 'cheap-module-source-map', | ||
resolve: { | ||
modulesDirectories: ['shared', 'node_modules'], | ||
extensions: ['', '.js', '.jsx', '.json'] | ||
}, | ||
plugins: [ | ||
new optimize.OccurenceOrderPlugin() | ||
], | ||
module: { | ||
loaders: [ | ||
{ | ||
test: /\.(js|jsx)$/, | ||
loader: 'babel', | ||
exclude: /node_modules/, | ||
query: { | ||
cacheDirectory: true, | ||
presets: ['react', 'es2015', 'stage-0'], | ||
plugins: ['transform-decorators-legacy'] | ||
} | ||
}, | ||
{ | ||
test: /\.json$/, | ||
loader: 'json' | ||
}, | ||
{ | ||
test: /\.(png|jpg|jpeg|gif)(\?v=[0-9]\.[0-9]\.[0-9])?$/, | ||
loader: 'url' | ||
}, | ||
{ | ||
test: /\.(woff|woff2|ttf|eot|svg)$/, | ||
loader: 'file-loader?name=fonts/[name].[ext]' | ||
}, | ||
{ | ||
test: /\.(css|less)$/, | ||
loader: 'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!less' | ||
} | ||
] | ||
} | ||
}; |