Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.awcache
.vscode

/deployment/server/Cress-gh
/deployment/public
/dev/server/Cress-gh
/dev/public
/dist

/gh-pages/
Binary file removed deployment/server/samples/Neume shape-small.docx
Binary file not shown.
154 changes: 0 additions & 154 deletions deployment/server/samples/SQUAREnotation-NEUMElevel.csv

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion deployment/scripts/editor.ts → dev/scripts/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (sampleId) {
const localFileSystem = JSON.parse(fs) as IFolder;
const filename = findFileNameById(localFileSystem);
if (filename) {
let filePath = `./Cress-gh/assets/samples/${filename}`;
let filePath = `${__ASSET_PREFIX__}assets/samples/${filename}`;
window
.fetch(filePath)
.then((response) => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "A web-based app to map squiggles to MEI snippets",
"main": "index.js",
"scripts": {
"start": "http-server deployment/server/ -p 9000",
"build": "rm -rf deployment/server/Cress-gh && webpack --config webpack.config.js && cp -R assets src/workers deployment/server/Cress-gh",
"start": "http-server dev/server/ -p 9000",
"build": "rm -rf dev/server/Cress-gh && webpack --config webpack.config.js && cp -R assets src/workers dev/server/Cress-gh",
"bundle:pages": "rm -rf gh-pages/Cress/Cress-gh && webpack --config webpack.pages-config.js && cp -R assets src/workers gh-pages/Cress/Cress-gh"
},
"repository": "https://github.com/DDMAL/Cress.git",
Expand Down
10 changes: 5 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ const webpack = require('webpack');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');

module.exports = {
mode: 'production',
mode: 'development',
entry: {
landing: './deployment/scripts/landing.ts',
dashboard: './deployment/scripts/dashboard.ts',
editor: './deployment/scripts/editor.ts',
landing: './dev/scripts/landing.ts',
dashboard: './dev/scripts/dashboard.ts',
editor: './dev/scripts/editor.ts',
},
output: {
path: path.resolve(__dirname, 'deployment', 'server', 'Cress-gh'),
path: path.resolve(__dirname, 'dev', 'server', 'Cress-gh'),
publicPath: '/',
filename: '[name].js',
},
Expand Down
6 changes: 3 additions & 3 deletions webpack.pages-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
module.exports = {
mode: 'production',
entry: {
landing: './deployment/scripts/landing.ts',
editor: './deployment/scripts/editor.ts',
dashboard: './deployment/scripts/dashboard.ts',
landing: './dev/scripts/landing.ts',
editor: './dev/scripts/editor.ts',
dashboard: './dev/scripts/dashboard.ts',
},
output: {
path: path.resolve(__dirname, 'gh-pages', 'Cress', 'Cress-gh'),
Expand Down