Skip to content

Commit

Permalink
rename addon folder, refactor scripts, build the addon on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCutOfficial committed Mar 7, 2023
1 parent 9b7f499 commit b59f0ed
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@ jobs:
- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Run Lint Addon
- name: Lint Addon
run: yarn lint
working-directory: addon

- name: Run Lint Test App
- name: Lint Test App
run: yarn lint
working-directory: test-app

- name: Build Addon
run: yarn build

- name: Run Tests
run: yarn test:ember
working-directory: test-app
run: yarn test

floating:
name: Floating Dependencies
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.
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{
"private": true,
"workspaces": ["addon", "test-app"],
"workspaces": ["ember-slugify", "test-app"],
"resolutions": {
"clean-css": "4.2.1"
},
"scripts": {
"build": "yarn workspace ember-slugify run build",
"lint": "yarn workspaces run lint",
"lint:fix": "yarn workspaces run lint:fix",
"start:addon": "yarn workspace ember-slugify run start",
"start:test-app": "yarn workspace test-app run start",
"test": "yarn workspace test-app test"
}
}
2 changes: 1 addition & 1 deletion test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"lint:js": "eslint . --cache",
"lint:js:fix": "eslint . --fix",
"start": "ember serve",
"test": "npm-run-all --print-name \"lint\" \"test:*\"",
"test": "npm-run-all --print-name \"test:*\"",
"test:ember": "ember test",
"test:ember-compatibility": "ember try:each"
},
Expand Down

0 comments on commit b59f0ed

Please sign in to comment.