Skip to content

Commit

Permalink
Remove test-project in favor of examples and test-cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Dec 19, 2021
1 parent 5a7a975 commit 798eadd
Show file tree
Hide file tree
Showing 70 changed files with 14 additions and 1,114 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

`siteup` builds websites with html, md, css and js.

Look at [test-project](./test-project/) and `siteup` [dependents](https://github.com/bcomnes/siteup-cli/network/dependents) for some examples how `siteup` can work.
Look at [examples](./examples/) and `siteup` [dependents](https://github.com/bcomnes/siteup-cli/network/dependents) for some examples how `siteup` can work.


`siteup` is sort of like "markup", which is related to "markdown", which inspired the project [`sitedown`](https://ghub.io/sitedown) which is the spiritual successor to this tool. Point `siteup` at a folder of page documents, and get a website.
Expand Down
2 changes: 1 addition & 1 deletion lib/build-pages/resolve-vars.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { resolveVars } from './resolve-vars.js'
const __dirname = desm(import.meta.url)

test('resolve vars resolves vars', async (t) => {
const varsFile = resolve(__dirname, '../../test-project/src/global.vars.js')
const varsFile = resolve(__dirname, '../../tests/test-cases/general-features/src/global.vars.js')

const vars = await resolveVars(varsFile)

Expand Down
6 changes: 3 additions & 3 deletions lib/identify-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ import { pageBuilders } from './build-pages/index.js'
const __dirname = desm(import.meta.url)

test('identifyPages works as expected', async (t) => {
const results = await identifyPages(resolve(__dirname, '../test-project/src'), pageBuilders)
const results = await identifyPages(resolve(__dirname, '../tests/test-cases/general-features/src'), pageBuilders)
// console.log(results)
t.ok(results.globalStyle, 'Global style is found')
t.ok(results.globalVars, 'Global variabls are found')
t.ok(results.rootLayout, 'Root layout file is found')
t.is(Object.keys(results.pages).length, 7, '7 pages are found')
t.is(Object.keys(results.pages).length, 11, '11 pages are found')

t.is(results.warnings.length, 0, '0 warnings produced')
t.is(results.nonPageFolders.length, 1, '1 non-page-folder')
t.is(results.pages.find(p => p.path === 'html-page').page.type, 'html', 'html page is type html')
t.is(results.pages.find(p => p.path === 'md-page').page.type, 'md', 'md page is type md')
t.is(results.pages.find(p => p.path === 'a-page').page.type, 'js', 'a-page is type js')
t.is(results.pages.find(p => p.path === 'js-page').page.type, 'js', 'js-page is type js')
})
11 changes: 3 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"prepublishOnly": "git push --follow-tags && gh-release -y",
"test": "run-s test:*",
"test:standard": "standard --verbose | snazzy",
"test:brittle": "brittle './lib/**/*.test.js' './tests/**/*.test.js' -r spec",
"test:brittle": "brittle './lib/**/*.test.js' './tests/**/*.test.js'",
"test:deptree": "depcruise --validate .dependency-cruiser.json bin.js",
"build-examples": "run-p example:*",
"example:basic": "cd examples/basic && npm i && npm run build",
Expand All @@ -83,18 +83,13 @@
"version:changelog": "auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'",
"version:git": "git add CHANGELOG.md",
"deps": "depcruise --exclude '^node_modules|^[a-zA-Z0-9\\_]+$' --output-type dot . | dot -T svg > dependencygraph.svg",
"deps3d": "depcruise --exclude '^node_modules' --output-type plugin:dependency-cruiser/sample-3d-reporter-plugin --output-to 3d-dependency-graph.html .",
"watch": "./bin.js --src test-project/src --dest test-project/public --watch"
"deps3d": "depcruise --exclude '^node_modules' --output-type plugin:dependency-cruiser/sample-3d-reporter-plugin --output-to 3d-dependency-graph.html ."
},
"funding": {
"type": "individual",
"url": "https://github.com/sponsors/bcomnes"
},
"standard": {
"ignore": [
"test-project/public"
]
},
"standard": { "ignore": [] },
"files": [
"bin.js",
"lib/**",
Expand Down
12 changes: 0 additions & 12 deletions test-project/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions test-project/public/a-page/client.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/a-page/client.js.map

This file was deleted.

41 changes: 0 additions & 41 deletions test-project/public/a-page/index.html

This file was deleted.

23 changes: 0 additions & 23 deletions test-project/public/a-page/nested-page/client.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/a-page/nested-page/client.js.map

This file was deleted.

31 changes: 0 additions & 31 deletions test-project/public/a-page/nested-page/index.html

This file was deleted.

3 changes: 0 additions & 3 deletions test-project/public/a-page/nested-page/style.css

This file was deleted.

3 changes: 0 additions & 3 deletions test-project/public/a-page/style.css

This file was deleted.

12 changes: 0 additions & 12 deletions test-project/public/chunk-HC4Q5QIB.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/chunk-HC4Q5QIB.js.map

This file was deleted.

15 changes: 0 additions & 15 deletions test-project/public/chunk-VINEMLUU.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/chunk-VINEMLUU.js.map

This file was deleted.

16 changes: 0 additions & 16 deletions test-project/public/chunk-WZ7JV6GS.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/chunk-WZ7JV6GS.js.map

This file was deleted.

16 changes: 0 additions & 16 deletions test-project/public/chunk-ZPMP4FT5.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/chunk-ZPMP4FT5.js.map

This file was deleted.

5 changes: 0 additions & 5 deletions test-project/public/client.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/client.js.map

This file was deleted.

Binary file removed test-project/public/favicon-16x16.png
Binary file not shown.
1 change: 0 additions & 1 deletion test-project/public/global.client.js

This file was deleted.

7 changes: 0 additions & 7 deletions test-project/public/global.client.js.map

This file was deleted.

0 comments on commit 798eadd

Please sign in to comment.