Skip to content

Commit

Permalink
Merge pull request #303 from tilfinltd/feature/dir-tree
Browse files Browse the repository at this point in the history
Change directory tree
  • Loading branch information
tilfin authored Oct 1, 2023
2 parents d371240 + c026b8b commit b1fb6f0
Show file tree
Hide file tree
Showing 28 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ popup=dist/chrome/js/popup.js
background=dist/chrome/js/background.js
supporters=dist/chrome/js/supporters.js

rollup src/options.js --file $options
rollup src/popup.js --file $popup
rollup src/background.js --file $background
rollup src/supporters.js --file $supporters
rollup src/js/options.js --file $options
rollup src/js/popup.js --file $popup
rollup src/js/background.js --file $background
rollup src/js/supporters.js --file $supporters

\cp -f $options dist/firefox/js/options.js
\cp -f $popup dist/firefox/js/popup.js
Expand All @@ -26,9 +26,9 @@ jq -s '.[0] * .[1]' manifest.json manifest_firefox.json > dist/firefox/manifest.

for brw in `ls dist`
do
\cp src/content.js dist/$brw/js/
\cp src/attach_target.js dist/$brw/js/
\cp -r *.html dist/$brw/
\cp src/js/content.js dist/$brw/js/
\cp src/js/attach_target.js dist/$brw/js/
\cp -r src/*.html dist/$brw/
\cp -r icons dist/$brw/
done
echo "build done"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"archive": "npm run build; ./bin/archive.sh",
"build": "./bin/build.sh",
"test": "mocha --timeout 10000 test/lib/*.test.js",
"test": "mocha --timeout 10000 src/js/**/*.test.js",
"test_ci": "",
"coverage": "codecov"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { JSDOM } from 'jsdom';
import { createRoleListItem } from '../../src/lib/create_role_list_item.js';
import { createRoleListItem } from './create_role_list_item.js';

describe('createRoleListItem', () => {
let window;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'chai'
import { DataProfilesSplitter } from '../../src/lib/data_profiles_splitter.js'
import { DataProfilesSplitter } from './data_profiles_splitter.js'

describe('DataProfilesSplitter', () => {
const dps = new DataProfilesSplitter();
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'chai'
import { loadAwsConfig } from '../../src/lib/load_aws_config.js'
import { loadAwsConfig } from './load_aws_config.js'

describe('loadAwsConfig', () => {
describe('Simple Configuration', () => {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect } from 'chai';
import { createProfileSet } from '../../src/lib/profile_set.js';
import { createProfileSet } from './profile_set.js';

describe('createProfileSet', () => {
describe('when userInfo is on logged-in', () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b1fb6f0

Please sign in to comment.