Skip to content

Commit

Permalink
chore(site): rename pages submodule to site submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Jan 26, 2024
1 parent 37fa08b commit 2423687
Show file tree
Hide file tree
Showing 66 changed files with 41 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ parser: '@typescript-eslint/parser'
parserOptions:
project:
- './tsconfig.json'
- './pages/tsconfig.json'
- './site/tsconfig.json'
sourceType: module

# Lint additional plugins
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pages.yaml → .github/workflows/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ concurrency:

jobs:
# Build job
build-gh-pages:
build-site:
name: Build
runs-on: ubuntu-latest
steps:
Expand All @@ -42,23 +42,23 @@ jobs:
- name: Build UIP
run: npm run build
- name: Build Site
run: npm run build -w pages
run: npm run build -w site
env:
SITE_BASE_URL: ${{ steps.pages.outputs.base_url }}
BUILD_VERSION: ${{ github.run_number }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./pages/dist
path: ./site/dist

# Deployment job
deploy-gh-pages:
deploy-site:
name: Deploy
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-gh-pages
needs: build-site
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ node_modules
# Generated surces
/bundles
/esm
/pages/dist
/site/dist

# Logs & Tmp
npm-debug.log
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ node_modules

# Build output
target
pages/dist
site/dist

# Generated surces
/esm
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ plugins:
- CHANGELOG.md
- package.json
- package-lock.json
- pages/package.json
- site/package.json
message: "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"

- - "@semantic-release/github"
Expand Down
2 changes: 1 addition & 1 deletion .stylelintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ rules:

overrides:
# Demo site pages sources
- files: pages/**/*.{css,less}
- files: site/**/*.{css,less}
rules:
# Warn about duplicate properties within declaration blocks
declaration-block-no-duplicate-properties:
Expand Down
36 changes: 29 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"src/**/*.less"
],
"scripts": {
"start": "cd pages && npm run start",
"start": "cd site && npm run start",
"clean": "rimraf esm",
"build": "npm run clean && npm run build:less && npm run build:ts",
"build:ts": "tsc --project tsconfig.json",
Expand Down Expand Up @@ -63,7 +63,7 @@
"node": ">=18.17.0"
},
"workspaces": [
"pages"
"site"
],
"dependencies": {
"codejar": "^4.2.0",
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.
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
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.
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.
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.
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 2423687

Please sign in to comment.