Skip to content

Commit

Permalink
Filter Related Projects Children
Browse files Browse the repository at this point in the history
Closes gh-180
  • Loading branch information
rwinch committed Oct 13, 2023
1 parent efcfe37 commit 26caacd
Show file tree
Hide file tree
Showing 13 changed files with 1,437 additions and 351 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ jobs:
- name: Build
run: |
npm ci
npm test
npx gulp bundle
1 change: 1 addition & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Build
run: |
npm ci
npm test
npx gulp bundle
- name: Release
uses: marvinpinto/[email protected]
Expand Down
25 changes: 22 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const glob = {
all: [srcDir, previewSrcDir],
css: `${srcDir}/css/**/*.css`,
js: ['gulpfile.js', 'gulp.d/**/*.js', `${srcDir}/{helpers,js}/**/*.js`],
test: ['test/**/*.js'],
}

const cleanTask = createTask({
Expand All @@ -39,16 +40,34 @@ const lintJsTask = createTask({
call: task.lintJs(glob.js),
})

const lintTestJsTask = createTask({
name: 'lint:testjs',
desc: 'Lint the JavaScript source files using eslint (JavaScript Standard Style)',
call: task.lintJs(glob.test),
})

const lintTask = createTask({
name: 'lint',
desc: 'Lint the CSS and JavaScript source files',
call: parallel(lintCssTask, lintJsTask),
call: parallel(lintCssTask, lintJsTask, lintTestJsTask),
})

const formatJsTask = createTask({
name: 'format:js',
desc: 'Format the JavaScript source files using prettify (JavaScript Standard Style)',
call: task.format(glob.test),
})

const formatTestJsTask = createTask({
name: 'format:testjs',
desc: 'Format the JavaScript source files using prettify (JavaScript Standard Style)',
call: task.format(glob.test),
})

const formatTask = createTask({
name: 'format',
desc: 'Format the JavaScript source files using prettify (JavaScript Standard Style)',
call: task.format(glob.js),
desc: 'Lint the CSS and JavaScript source files',
call: parallel(formatJsTask, formatTestJsTask),
})

const buildTask = createTask({
Expand Down
Loading

0 comments on commit 26caacd

Please sign in to comment.