-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add an ES6 build to `@zooniverse/react-components`. Export `dist/es6/index.js` as a module. - Add an ES6 build to `@zooniverse/classifier`. Export `dist/es6/components/Classifier/index.js` as a module. - Add `yarn bootstrap:es6` to bootstrap the monorepo with ES modules. - Replace `mime-types` with `mime/lite`. - Remove `@fortawesome/react-fontawesome` and `@fortawesome/fontawesome-svg-core`. - Remove `import * as d3`. - Remove `import _ from lodash`. - Replace `superagent` with `fetch` in the classifier.
- Loading branch information
1 parent
fc698a6
commit c9c055d
Showing
33 changed files
with
343 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/usr/bin/env bash | ||
set -ev | ||
|
||
# Script for bootstrapping the monorepo into a working state for development. | ||
# | ||
# Runs the following tasks in order: | ||
# - Install dependencies | ||
# - Build `@zooniverse/react-components` | ||
# - Build `@zooniverse/lib-classifier` | ||
|
||
|
||
ROOT_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && cd .. && pwd)" | ||
cd $ROOT_DIR | ||
|
||
printf 'Installing dependencies...\n' | ||
yarn install --frozen-lockfile | ||
printf '\n' | ||
|
||
printf 'Building `lib-react-components`...\n' | ||
yarn workspace @zooniverse/react-components build:es6 | ||
printf '\n' | ||
|
||
printf 'Building `lib-classifier`...\n' | ||
yarn workspace @zooniverse/classifier build:es6 | ||
printf '\n' | ||
|
||
printf 'Building `fe-project`...\n' | ||
yarn workspace @zooniverse/fe-project build | ||
printf '\n' | ||
|
||
printf 'Building `fe-content-pages`...\n' | ||
yarn workspace @zooniverse/fe-content-pages build | ||
printf '\n' | ||
|
||
echo 'Done!' |
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
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
1 change: 0 additions & 1 deletion
1
packages/app-project/stores/User/UserPersonalization/YourStats/YourStats.js
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 |
---|---|---|
|
@@ -5,8 +5,10 @@ | |
"author": "Zooniverse <[email protected]> (https://www.zooniverse.org/)", | ||
"version": "0.0.1", | ||
"main": "dist/main.js", | ||
"module": "dist/es6/components/Classifier/index.js", | ||
"scripts": { | ||
"build": "webpack --config webpack.dist.js", | ||
"build": "webpack --config webpack.dist.js && yarn build:es6", | ||
"build:es6": "babel ./src/ --out-dir ./dist/es6 --copy-files --no-copy-ignored --ignore 'src/**/*.spec.js' --ignore 'src/**/*.stories.js'", | ||
"dev": "webpack serve --config webpack.dev.js", | ||
"lint": "zoo-standard --fix | snazzy", | ||
"start": "PANOPTES_ENV=production npm run dev", | ||
|
@@ -51,6 +53,7 @@ | |
"styled-components": "~5.x.x" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "~7.19.3", | ||
"@babel/core": "~7.20.2", | ||
"@babel/plugin-proposal-decorators": "~7.20.0", | ||
"@babel/plugin-proposal-logical-assignment-operators": "~7.18.6", | ||
|
@@ -77,7 +80,8 @@ | |
"@zooniverse/react-components": "~1.2.0", | ||
"@zooniverse/standard": "~1.0.0", | ||
"babel-loader": "~9.1.0", | ||
"babel-plugin-webpack-alias": "~2.1.2", | ||
"babel-plugin-module-resolver": "~4.1.0", | ||
"babel-plugin-transform-imports": "~2.0.0", | ||
"chai": "~4.3.4", | ||
"chai-dom": "~1.11.0", | ||
"css-loader": "~6.7.0", | ||
|
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
2 changes: 0 additions & 2 deletions
2
...fier/components/SubjectViewer/components/LightCurveViewer/d3/addRemoveAnnotationButton.js
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
import * as d3 from 'd3' | ||
|
||
function cancelEvent(event) { | ||
event.stopPropagation | ||
} | ||
|
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
Oops, something went wrong.