Refactor endpoint tests
Replace force_login calls with login call from client class in setUp
This commit is contained in:
parent
61702e720a
commit
858f84aaad
132 changed files with 5158 additions and 661 deletions
|
|
@ -1,22 +1,27 @@
|
|||
import { series, watch as _watch } from 'gulp';
|
||||
import { parallel, series, watch as _watch } from 'gulp';
|
||||
|
||||
import path from "path";
|
||||
import del from "del";
|
||||
import path from 'path';
|
||||
import del from 'del';
|
||||
|
||||
import buildSass, { ACCOUNTS_DIR } from "./gulp/sass";
|
||||
import { ACCOUNTS_DIR, CORE_DIR, accountsTask, coreTask } from './gulp/sass';
|
||||
import babelTask from './gulp/babel';
|
||||
|
||||
const STATIC_DIR = path.join("src", "newsreader", "static");
|
||||
const PROJECT_DIR = path.join('src', 'newsreader');
|
||||
const sassTasks = [accountsTask, coreTask];
|
||||
|
||||
function clean(){
|
||||
const clean = () => {
|
||||
return del([
|
||||
`${ACCOUNTS_DIR}/accounts/dist/css/*`,
|
||||
|
||||
`${CORE_DIR}/core/dist/css/*`,
|
||||
`${CORE_DIR}/core/dist/js/*`,
|
||||
]);
|
||||
};
|
||||
|
||||
export function watch(){
|
||||
_watch(`${STATIC_DIR}/src/scss/**/*.scss`, (done) => {
|
||||
series(clean, buildSass)(done);
|
||||
export const watch = () => {
|
||||
return _watch([`${PROJECT_DIR}/scss/**/*.scss`, `${PROJECT_DIR}/js/**/*.js`], done => {
|
||||
series(clean, ...sassTasks, babelTask)(done);
|
||||
});
|
||||
};
|
||||
|
||||
export default series(clean, buildSass);
|
||||
export default series(clean, ...sassTasks, babelTask);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue