Skip to content

Commit

Permalink
pkp/pkp-lib#3594 Add new build process for UI Library
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Jan 14, 2019
1 parent be41fa6 commit a275189
Show file tree
Hide file tree
Showing 12 changed files with 8,358 additions and 6,279 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

43 changes: 0 additions & 43 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ temp
te_ST/
node_modules
js/build.js
js/hot-updates
styles/build.css
8 changes: 0 additions & 8 deletions .postcssrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ before_install:
# Check out submodules (this script checks out developer forks if necessary)
- ./tools/startSubmodulesTRAVIS.sh

# Update to latest stable version of npm
- npm i g -npm

- |
if [[ "$TEST" != "validation" ]]; then
# Prepare for unit and integration tests.
Expand Down Expand Up @@ -56,6 +59,7 @@ script:
./lib/pkp/tools/buildjs.sh -n
./lib/pkp/tools/checkHelp.sh
./lib/pkp/tools/travis/validate-json.sh
npm run lint
fi
after_script:
Expand Down
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
presets: ['@vue/app']
};
10 changes: 2 additions & 8 deletions js/load.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,20 @@ import PkpLoad from '../lib/pkp/js/load.js';

// Import controllers used by OMP
import Container from '@/components/SettingsContainer/SettingsContainer.vue';
import ListPanel from '@/components/ListPanel/ListPanel.vue';
import MultilingualProgress from '@/components/MultilingualProgress/MultilingualProgress.vue';
import SubmissionsListPanel from '@/components/ListPanel/submissions/SubmissionsListPanel.vue';
import SelectListPanel from '@/components/SelectListPanel/SelectListPanel.vue';
import SelectSubmissionsListPanel from '@/components/SelectListPanel/submissions/SelectSubmissionsListPanel.vue';
import CatalogSubmissionsListPanel from '@/components/ListPanel/submissions/CatalogSubmissionsListPanel.vue';
import SelectReviewerListPanel from '@/components/SelectListPanel/users/SelectReviewerListPanel.vue';
import Tooltip from '@/components/Tooltip/Tooltip.vue';

// Expose Vue, the registry and controllers in a global var
window.pkp = Object.assign(PkpLoad, {
controllers: {
Container,
ListPanel,
MultilingualProgress,
SubmissionsListPanel,
SelectListPanel,
SelectSubmissionsListPanel,
CatalogSubmissionsListPanel,
SelectReviewerListPanel,
Tooltip,
},
SelectReviewerListPanel
}
});
Loading

0 comments on commit a275189

Please sign in to comment.