Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Cleans up and refreshes generated website resources (#1998)
Browse files Browse the repository at this point in the history
Summary:
**Summary**

Cleans up unused website resources from before the migration to Docusaurus, and makes sure static website resources are generated and refreshed at every build.

**Test Plan**

```
yarn
cd website
yarn build
yarn start
```

Website loads and pages contain the expected content.
Pull Request resolved: #1998

Reviewed By: niveditc

Differential Revision: D14004275

Pulled By: niveditc

fbshipit-source-id: 2d0afaf448ae5d1c6f9f6915e530c50c983135d1
  • Loading branch information
Claudio Procida authored and facebook-github-bot committed Feb 8, 2019
1 parent e84e757 commit bd799f5
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 17,946 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ website/src/docs/
npm-debug.log
!website/static/
yarn-error.log
.DS_Store
19 changes: 18 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var paths = {
'!src/**/__mocks__/**/*.js',
],
css: ['src/**/*.css'],
static: 'website/static',
};

var babelOptsJS = {
Expand Down Expand Up @@ -242,6 +243,22 @@ gulp.task(
}),
);

gulp.task(
'website:static',
gulp.series('dist:min', 'css',
gulp.parallel(function() {
return gulp
.src(paths.dist + '/Draft.min.js')
.pipe(gulp.dest(paths.static + '/lib'));
}),
gulp.parallel(function() {
return gulp
.src(paths.dist + '/Draft.css')
.pipe(gulp.dest(paths.static + '/css'));
}),
)
);

gulp.task(
'check-dependencies',
gulp.series(function() {
Expand Down Expand Up @@ -269,6 +286,6 @@ gulp.task(
'check-dependencies',
'clean',
gulp.parallel('modules', 'flow'),
gulp.parallel('dist', 'dist:min'),
gulp.parallel('dist', 'dist:min', 'website:static'),
),
);
2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.js.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion meta/bundle-size-stats/Draft.min.js.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class Index extends React.Component {
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/immutable/3.7.6/immutable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.34/browser.min.js"></script>
<script src="lib/Draft.js"></script>
<script src="lib/Draft.min.js"></script>
<script type="text/javascript" src="//use.typekit.net/vqa1hcx.js"></script>
<script type="text/javascript">{'try{Typekit.load();}catch(e){}'}</script>
<script type="text/babel" dangerouslySetInnerHTML={{__html: richExample}} />
Expand Down
1 change: 0 additions & 1 deletion website/src/CNAME

This file was deleted.

Binary file removed website/src/img/android-chrome-192x192.png
Binary file not shown.
Binary file removed website/src/img/android-chrome-512x512.png
Binary file not shown.
Binary file removed website/src/img/apple-touch-icon.png
Binary file not shown.
9 changes: 0 additions & 9 deletions website/src/img/browserconfig.xml

This file was deleted.

534 changes: 0 additions & 534 deletions website/src/img/draftjs-logo.ai

This file was deleted.

Binary file removed website/src/img/favicon-16x16.png
Binary file not shown.
Binary file removed website/src/img/favicon-32x32.png
Binary file not shown.
Binary file removed website/src/img/favicon.ico
Binary file not shown.
Binary file removed website/src/img/favicon.png
Binary file not shown.
18 changes: 0 additions & 18 deletions website/src/img/manifest.json

This file was deleted.

Binary file removed website/src/img/mstile-150x150.png
Binary file not shown.
1 change: 0 additions & 1 deletion website/src/img/safari-pinned-tab.svg

This file was deleted.

2 changes: 1 addition & 1 deletion website/static/css/Draft.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed website/static/img/flux-simple-f8-diagram-1300w.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 0 additions & 26 deletions website/static/img/flux_logo.svg

This file was deleted.

Loading

0 comments on commit bd799f5

Please sign in to comment.