-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Cleanup webpack config #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
47424c2
Clean up config and allow dashboard to be run via script
drew-gross bc1ecfb
Make sure all the configs build
drew-gross 3aa2ff9
Able to run tests in /lib
drew-gross 5c999a4
Make npm run generate work
drew-gross a43081b
Component tests and npm run generate now work
drew-gross cea70a4
var -
drew-gross 9bee5fd
Add code to load apps from both a config file and the injected JSON
drew-gross c2ca3e0
Update readme
drew-gross File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| .DS_Store | ||
| node_modules/ | ||
| public/ | ||
| bundles/ | ||
| PIG/bundles/ | ||
| Parse-Dashboard/bundles/ | ||
| Parse-Dashboard/parse-dashboard-config.json |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,10 +1,6 @@ | ||
| // Import the main configuration file | ||
| var configuration = require('./webpack.config.js'); | ||
| var configuration = require('./base.config.js'); | ||
|
|
||
| // Remove the dashboard configuration, we're only building the PIG | ||
| delete configuration.entry.dashboard; | ||
|
|
||
| // Remove SVG plugin | ||
| configuration.plugins = []; | ||
| configuration.entry = {PIG: './parse-interface-guide/index.js'}; | ||
| configuration.output.path = './PIG/bundles'; | ||
|
|
||
| module.exports = configuration; |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,16 @@ | ||
| # parse-dashboard | ||
| An open source dashboard for managing your Parse apps that aren't hosted on Parse.com | ||
| # Parse Dashboard | ||
|
|
||
| Currently this is just a separate repo containing all the dashboard code, with a few modifications to make it actually build. | ||
| An open source dashboard for managing your Parse apps. | ||
|
|
||
| To run it: | ||
|
|
||
| ``` | ||
| git clone git@github.com:ParsePlatform/parse-dashboard.git | ||
| cd parse-dashboard | ||
| npm install | ||
| npm run-script dashboard | ||
| ``` | ||
|
|
||
| Next add your app into parse-dashboard/Parse-Dashboard/parse-dashboard-config.json. Ask Drew how to do this. It is currently difficult, but it will get better. | ||
|
|
||
| Then visit http://localhost:4040 and you will be able to manage your parse apps. |
This file contains hidden or 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,40 @@ | ||
| //This file should be imported by another config file, like dashboard.config.js | ||
|
|
||
| var path = require('path'); | ||
| var SvgPrepPlugin = require('./plugins/svg-prep'); | ||
|
|
||
| module.exports = { | ||
| output: { | ||
| filename: '[name].bundle.js' | ||
| }, | ||
| resolve: { | ||
| root: [__dirname, path.join(__dirname, 'node_modules')] | ||
| }, | ||
| resolveLoader: { | ||
| root: path.join(__dirname, 'node_modules') | ||
| }, | ||
| module: { | ||
| loaders: [ | ||
| { | ||
| test: /\.js$/, | ||
| exclude: /node_modules/, | ||
| loader: 'babel-loader', | ||
| query: { | ||
| optional: ['runtime', 'es7.decorators'] | ||
| } | ||
| }, { | ||
| test: /\.scss$/, | ||
| loader: "style-loader!css-loader?modules&localIdentName=[local]__[hash:base64:5]!sass-loader?includePaths[]=" + | ||
| encodeURIComponent(path.resolve(__dirname, "../../app/webpack")) | ||
| }, { | ||
| test: /\.css$/, | ||
| loader: 'style-loader!css-loader' | ||
| } | ||
| ] | ||
| }, | ||
| plugins: [ | ||
| new SvgPrepPlugin({ | ||
| source: path.join(__dirname, 'icons') | ||
| }) | ||
| ] | ||
| }; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -1,14 +1,6 @@ | ||
| var path = require('path'); | ||
| var configuration = require('./base.config.js'); | ||
|
|
||
| // Import the main configuration file | ||
| var configuration = require('./webpack.config.js'); | ||
|
|
||
| // Remove the dashboard configuration, we're only building the PIG | ||
| delete configuration.entry.PIG; | ||
|
|
||
| configuration.output.path = path.join(__dirname, 'Parse-Dashboard', 'bundles'); | ||
|
|
||
| // Remove SVG plugin | ||
| configuration.plugins = []; | ||
| configuration.entry = {dashboard: './dashboard/index.js'}; | ||
| configuration.output.path = './Parse-Dashboard/bundles'; | ||
|
|
||
| module.exports = configuration; |
This file contains hidden or 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
Empty file.
This file contains hidden or 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 hidden or 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
8 changes: 4 additions & 4 deletions
8
components/Markdown/Markdown.test.js → lib/tests/Markdown.test.js
This file contains hidden or 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 hidden or 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,17 @@ | ||
| jest.dontMock('../../components/PlatformCard/PlatformCard.react'); | ||
|
|
||
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
| import TestUtils from 'react-addons-test-utils'; | ||
|
|
||
| const PlatformCard = require('../../components/PlatformCard/PlatformCard.react'); | ||
|
|
||
| describe('PlatformCard', () => { | ||
| it('can render examples', () => { | ||
| jest.dontMock('../../components/PlatformCard/PlatformCard.example'); | ||
| const example = require('../../components/PlatformCard/PlatformCard.example'); | ||
| example.demos.forEach((example, i) => { | ||
| example.render(); | ||
| }); | ||
| }); | ||
| }); |
4 changes: 2 additions & 2 deletions
4
components/Tooltip/Tooltip.test.js → lib/tests/Tooltip.test.js
This file contains hidden or 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 |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| jest.dontMock('./Tooltip.react'); | ||
| jest.dontMock('../../components/Tooltip/Tooltip.react'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why not |
||
|
|
||
| import React from 'react'; | ||
| import ReactDOM from 'react-dom'; | ||
| import TestUtils from 'react-addons-test-utils'; | ||
|
|
||
| const Tooltip = require('./Tooltip.react'); | ||
| const Tooltip = require('../../components/Tooltip/Tooltip.react'); | ||
|
|
||
| describe('Tooltip', () => { | ||
| // test suite goes here | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just temporary?
Ah nvm seeing the change you made below.