forked from adazzle/react-data-grid
-
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.
* Version 2 bump * Added lerna and package folders * Moved files to their package folders * Got project to build and work * Fixed immutable example * Moved RowContainer context menu tests * Initial development on webpack dev server * Revamp on styles to use webpack * Moved examples to examples package * Build with npm scripts and webpack * Made internal package references * Revamp in some examples * Finished revamp on the examples * All tests passing * Added some npm scripts to run test * Added some initial setup * Removed flow task for now * Added eslint step and fixed karma test run * Deleted all the unused gulp tasks and prepared for publish * $(echo v2.0.1) * Updated branch publish * Fixed lerna version missmatch * Need to copy npmrc before publish to npm for each package * Renamed examples package to be react-data-grid-examples * Have a dist folder for each package * $(echo v2.0.0-dc-arch-revamp2285) * Added an npmignore to each package * Added package entry points * Got lerna and webpack dev server to work together * Added a new build script * Updated appveyor * Testing new build method * Defined env variable for testing * $(echo v2.0.0-dc-arch-revamp2296) * stop using node env vars * $(echo v2.0.0-dc-arch-revamp2299) * New approach for publish using node * Clean all dist folders before building * Pre publish should not run before tests * $(echo v2.0.0-dc-arch-revamp2304) * $(echo v2.0.0-dc-arch-revamp2306) * $(echo v2.0.0-dc-arch-revamp2308) * Skip git commits for branch publish * $(echo v2.0.0-dc-arch-revamp2310) * Webpack dev server improvements * Script delegation depending on the host for the examples * Package entries to be replaced before publish and not post test * Fixed lint error * Deleted some unused packages * Added publish examples script * ScriptDelegator for documentation and examples * Added react data grid readme * Fixed react-data-grid readme relative paths * Fixed react-data-grid readme * Added react-data-grid-addons README * Updated README * Migrations update * Updated CONTRIBUTING.md * Fixed markdown and added build info * Fixed markdown * Added project structure section * Bold not italic * publishMaster reworked * Style changed after merge * Fixed examples * React 15 * Added eslint npm script and description on Contributing about npm scripts * Upgraded react-ron-autocomplete version
- Loading branch information
1 parent
1c456de
commit 9d0e0bf
Showing
383 changed files
with
4,623 additions
and
79,473 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
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
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,22 @@ | ||
function Clear-Dist () { | ||
$distFolders= dir packages/*/dist | ?{$_.PSISContainer} | ||
|
||
foreach ($folder in $distFolders){ | ||
$path = Join-Path -Path $folder.FullName -ChildPath "*" | ||
Remove-Item $path -recurse | ||
Write-Host "Cleaned dist folder in $($path)" | ||
} | ||
} | ||
|
||
function Build () { | ||
npm run build | ||
} | ||
|
||
Write-Host "-- Cleaning files in dist folders --" | ||
Clear-Dist | ||
Write-Host "-- File cleanup finished --" | ||
Write-Host "-- Build process --" | ||
Build | ||
Write-Host "-- Build completed --" | ||
|
||
exit $lastexitcode |
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 @@ | ||
$dir = dir packages | ?{$_.PSISContainer} | ||
|
||
foreach ($d in $dir){ | ||
$path = Join-Path -Path $d.FullName -ChildPath "" | ||
$name = $d.Name | ||
$root = Get-Location | ||
$fileToCopyPath = "$($root)\.npmrc" | ||
|
||
Write-Host "Copy .npmrc to package $($name) from $($fileToCopyPath) to $($path)" | ||
|
||
Copy-Item $fileToCopyPath $path | ||
} |
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,13 @@ | ||
const ghpages = require('gh-pages'); | ||
const path = require('path'); | ||
|
||
const publishToGhPages = () => { | ||
ghpages.publish( | ||
path.join(__dirname, '../../packages/react-data-grid-examples'), | ||
(err) => { | ||
if (err) throw new Error(err); | ||
} | ||
); | ||
}; | ||
|
||
publishToGhPages(); |
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,25 @@ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const scriptArgs = process.argv.slice(2); | ||
const packageName = scriptArgs[0]; | ||
const publish = scriptArgs[1]; | ||
|
||
const getPathToPackageEntry = () => path.join(__dirname, `../../packages/${packageName}/index.js`); | ||
const getPublishEntryData = () => `module.exports = require('./dist/${packageName}');`; | ||
const getDevEntryData = () => "module.exports = require('./src');"; | ||
|
||
const replacePackageEntry = () => { | ||
const entryData = publish ? getPublishEntryData() : getDevEntryData(); | ||
console.log(` --- Overriding ${packageName} entry point ---`); | ||
fs.writeFile( | ||
getPathToPackageEntry(), | ||
entryData, | ||
(err) => { | ||
if (err) throw new Error(errr); | ||
const env = publish ? 'publish' : 'dev'; | ||
console.log(` --- ${packageName} entry point was overriden to ${env}`); | ||
} | ||
); | ||
}; | ||
|
||
replacePackageEntry(); |
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
Oops, something went wrong.