move new app into popup folder

This commit is contained in:
Kyle Spearrin 2018-04-10 21:54:20 -04:00
parent 1fed135b31
commit 67ab9b1d3e
169 changed files with 35 additions and 63 deletions

2
.gitignore vendored
View File

@ -3,6 +3,7 @@
.DS_Store .DS_Store
node_modules node_modules
npm-debug.log npm-debug.log
vwd.webinfo
css/ css/
dist/ dist/
webfonts/ webfonts/
@ -10,6 +11,5 @@ webfonts/
*.pem *.pem
*.zip *.zip
build/ build/
build2/
build.safariextension/ build.safariextension/
coverage/ coverage/

View File

@ -33,7 +33,7 @@ By default the extension is targeting the production API. If you are running the
``` ```
npm install npm install
npm run dev:watch npm run build:watch
``` ```
You can now load the extension into your browser through the browser's extension tools page: You can now load the extension into your browser through the browser's extension tools page:

View File

@ -17,8 +17,7 @@ const paths = {
coverage: './coverage/', coverage: './coverage/',
npmDir: './node_modules/', npmDir: './node_modules/',
popupDir: './src/popup/', popupDir: './src/popup/',
cssDir: './src/popup/css/', cssDir: './src/css/'
cssDir2: './src/css/'
}; };
const filters = { const filters = {
@ -180,9 +179,7 @@ function safariZip(buildPath) {
}); });
} }
gulp.task('build', ['lint', 'webfonts']); gulp.task('build', ['webfonts']);
gulp.task('build2', ['webfonts2']);
gulp.task('webfonts', () => { gulp.task('webfonts', () => {
return gulp.src('./webfonts.list') return gulp.src('./webfonts.list')
@ -193,15 +190,6 @@ gulp.task('webfonts', () => {
.pipe(gulp.dest(paths.cssDir)); .pipe(gulp.dest(paths.cssDir));
}); });
gulp.task('webfonts2', () => {
return gulp.src('./webfonts.list')
.pipe(googleWebFonts({
fontsDir: 'webfonts',
cssFilename: 'webfonts.css'
}))
.pipe(gulp.dest(paths.cssDir2));
});
gulp.task('ci', ['ci:coverage']); gulp.task('ci', ['ci:coverage']);
gulp.task('ci:coverage', (cb) => { gulp.task('ci:coverage', (cb) => {
@ -219,16 +207,3 @@ function copy(source, dest) {
.on('end', resolve); .on('end', resolve);
}); });
} }
// LEGACY CODE!
gulp.task('lint', () => {
return gulp.src([
paths.popupDir + '**/*.js',
'./src/notification/**/*.js',
'./src/scripts/**/*.js'
//'./src/content/**/*.js'
]).pipe(jshint({
esversion: 6
})).pipe(jshint.reporter('default'));
});

View File

@ -7,15 +7,12 @@
"sub:pull": "git submodule foreach git pull", "sub:pull": "git submodule foreach git pull",
"postinstall": "npm run sub:init", "postinstall": "npm run sub:init",
"start:firefox": "web-ext run --source-dir ./dist/", "start:firefox": "web-ext run --source-dir ./dist/",
"dev": "gulp build && webpack --config webpack.dev.js", "build": "gulp build && webpack --config webpack.config.js",
"dev:watch": "gulp build && webpack --config webpack.dev.js --watch", "build:watch": "gulp build && webpack --config webpack.config.js --watch",
"dev2": "gulp build2 && webpack --config webpack.config.js", "dist": "npm run build && gulp dist",
"dev2:watch": "gulp build2 && webpack --config webpack.config.js --watch", "dist:firefox": "npm run build && gulp dist:firefox",
"prod": "gulp build && webpack --config webpack.prod.js", "dist:opera": "npm run build && gulp dist:opera",
"dist": "npm run prod && gulp dist", "dist:safari": "npm run build && gulp dist:safari",
"dist:firefox": "npm run prod && gulp dist:firefox",
"dist:opera": "npm run prod && gulp dist:opera",
"dist:safari": "npm run prod && gulp dist:safari",
"lint": "tslint src/**/*.ts || true", "lint": "tslint src/**/*.ts || true",
"lint:fix": "tslint src/**/*.ts --fix", "lint:fix": "tslint src/**/*.ts --fix",
"test": "karma start --single-run", "test": "karma start --single-run",

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Some files were not shown because too many files have changed in this diff Show More