Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Decouple component files #723

Closed
wants to merge 5 commits into from
Closed
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
6 changes: 3 additions & 3 deletions .templates/new-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -52,11 +52,11 @@
"path": "lib/js/module.js"
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-js": "~1",
Expand Down
6 changes: 3 additions & 3 deletions packages/accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -52,11 +52,11 @@
"path": "lib/js/module.js"
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-js": "~1",
Expand Down
2 changes: 1 addition & 1 deletion packages/body/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/breadcrumbs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -50,11 +50,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/buttons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -48,11 +48,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/callout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -52,11 +52,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/control-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -48,11 +48,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/cta-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -51,11 +51,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/direction-links/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -54,11 +54,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/footer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -51,11 +51,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"build": "npm run build:js && npm run build:react",
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",
"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -43,11 +43,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
8 changes: 4 additions & 4 deletions packages/form/tests/react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import React from 'react';
import ReactDOM from 'react-dom';

import { AUlabel, AUhintText, AUerrorText, AUformGroup, AUfieldset, AUForm, AUlegend } from './form.js';
import AUtextInput from '../../../text-inputs';
import AUheading from '../../../headings';
import AUselect from '../../../select';
import { AUcheckbox } from '../../../control-input';
import AUtextInput from '../../../text-inputs/src/react/react';
import AUheading from '../../../headings/src/react/react';
import AUselect from '../../../select/src/react/react';
import { AUcheckbox } from '../../../control-input/src/react/react';

class App extends React.Component {

Expand Down
2 changes: 1 addition & 1 deletion packages/grid-12/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -50,11 +50,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/headings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -52,11 +52,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/inpage-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -52,11 +52,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/keyword-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -52,11 +52,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
6 changes: 3 additions & 3 deletions packages/link-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"serve": "browser-sync tests --files \"tests/**/*.html, tests/**/*.css, tests/**/*.js\"",

"watch:js": "onchange \"src/js/*.js\" -- npm run build:js",
"watch:jsx": "onchange \"src/js/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:jsx": "onchange \"src/react/react.js\" \"tests/react/index.js\" -- npm run build",
"watch:sass": "onchange \"src/sass/*.scss\" \"tests/site/test.scss\" -- npm run build",
"watch": "npm run build && npm-run-all --parallel serve watch:*"
},
Expand All @@ -51,11 +51,11 @@
"sass-versioning": true
},
"react": {
"path": "lib/js/react.js"
"path": "lib/react/react.js"
}
}
},
"main": "lib/js/react.es5.js",
"main": "lib/react/react.es5.js",
"dependencies": {
"@gov.au/pancake": "~1",
"@gov.au/pancake-sass": "~2",
Expand Down
Loading