Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Adds dev config (#94)
Browse files Browse the repository at this point in the history
- defaults to `false`.
- can be used by custom configurations, hot code changes, minification and source maps management
  • Loading branch information
pragmaticivan authored and eduardolundgren committed Aug 10, 2017
1 parent 286ad5b commit 4685ea5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import path from 'path';
const baseConfig = () => {
return {
magnet: {
dev: false,
host: '0.0.0.0',
ignore: [
'build/**',
Expand Down
3 changes: 3 additions & 0 deletions test/unit/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe('config', function() {
const config = createConfig('./', 'magnet.config.js', '');
const expectedDefaultConfig = {
magnet: {
dev: false,
host: '0.0.0.0',
ignore: [
'build/**',
Expand All @@ -48,6 +49,7 @@ describe('config', function() {
const expectedDefaultConfig = {
environment: 'default',
magnet: {
dev: false,
host: 'localhost',
ignore: [
'build/**',
Expand All @@ -72,6 +74,7 @@ describe('config', function() {
const expectedDefaultConfig = {
environment: 'default_on_subfolder',
magnet: {
dev: false,
host: 'localhost',
ignore: [
'build/**',
Expand Down
1 change: 1 addition & 0 deletions test/unit/magnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ describe('Magnet', () => {
const magnet = new Magnet({directory});
const expectedDefaultConfig = {
magnet: {
dev: false,
host: 'localhost',
ignore: [
'build/**',
Expand Down

0 comments on commit 4685ea5

Please sign in to comment.