Skip to content

Commit 26caacd

Browse files
committed
Filter Related Projects Children
Closes gh-180
1 parent efcfe37 commit 26caacd

File tree

13 files changed

+1437
-351
lines changed

13 files changed

+1437
-351
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ jobs:
1515
- name: Build
1616
run: |
1717
npm ci
18+
npm test
1819
npx gulp bundle

.github/workflows/push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- name: Build
1818
run: |
1919
npm ci
20+
npm test
2021
npx gulp bundle
2122
- name: Release
2223
uses: marvinpinto/action-automatic-releases@v1.2.1

gulpfile.js

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const glob = {
1919
all: [srcDir, previewSrcDir],
2020
css: `${srcDir}/css/**/*.css`,
2121
js: ['gulpfile.js', 'gulp.d/**/*.js', `${srcDir}/{helpers,js}/**/*.js`],
22+
test: ['test/**/*.js'],
2223
}
2324

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

43+
const lintTestJsTask = createTask({
44+
name: 'lint:testjs',
45+
desc: 'Lint the JavaScript source files using eslint (JavaScript Standard Style)',
46+
call: task.lintJs(glob.test),
47+
})
48+
4249
const lintTask = createTask({
4350
name: 'lint',
4451
desc: 'Lint the CSS and JavaScript source files',
45-
call: parallel(lintCssTask, lintJsTask),
52+
call: parallel(lintCssTask, lintJsTask, lintTestJsTask),
53+
})
54+
55+
const formatJsTask = createTask({
56+
name: 'format:js',
57+
desc: 'Format the JavaScript source files using prettify (JavaScript Standard Style)',
58+
call: task.format(glob.test),
59+
})
60+
61+
const formatTestJsTask = createTask({
62+
name: 'format:testjs',
63+
desc: 'Format the JavaScript source files using prettify (JavaScript Standard Style)',
64+
call: task.format(glob.test),
4665
})
4766

4867
const formatTask = createTask({
4968
name: 'format',
50-
desc: 'Format the JavaScript source files using prettify (JavaScript Standard Style)',
51-
call: task.format(glob.js),
69+
desc: 'Lint the CSS and JavaScript source files',
70+
call: parallel(formatJsTask, formatTestJsTask),
5271
})
5372

5473
const buildTask = createTask({

0 commit comments

Comments
 (0)