onix-board-assets
Advanced tools
Comparing version 3.2.21 to 3.4.23
@@ -31,7 +31,7 @@ const gulp = require('gulp'); | ||
gulp.src(PATHS.src.boardsjson) | ||
.pipe(gulp.dest(PATHS.build.boards)); | ||
.pipe(gulp.dest(PATHS.build.scripts)); | ||
return gulp.src(PATHS.src.boardscss) | ||
.pipe(postcss(pre, {syntax: syntax})) | ||
.pipe(sassVars(boardFiles, { verbose: true })) | ||
.pipe(sassVars(boardFiles, { verbose: false })) | ||
.pipe(sass().on("error", sass.logError)) | ||
@@ -38,0 +38,0 @@ .pipe(postcss(post)) |
@@ -29,3 +29,3 @@ const gulp = require('gulp'); | ||
.pipe(postcss(pre, {syntax: syntax})) | ||
.pipe(sassVars(boardFiles, { verbose: true })) | ||
.pipe(sassVars(boardFiles, { verbose: false })) | ||
.pipe(sass().on("error", sass.logError)) | ||
@@ -32,0 +32,0 @@ .pipe(postcss(post)) |
@@ -59,5 +59,5 @@ const gulp = require('gulp'); | ||
return gulp.src(PATHS.src.piecesjson) | ||
.pipe(gulp.dest(PATHS.build.pieces)); | ||
.pipe(gulp.dest(PATHS.build.scripts)); | ||
} | ||
module.exports.displayName = 'pieces'; |
@@ -8,2 +8,4 @@ const gulp = require('gulp'); | ||
const vendor = require('./gulp-tasks/vendor'); | ||
const scripts = require('./gulp-tasks/scripts'); | ||
const webpack = require('./gulp-tasks/webpack'); | ||
const watch = require('./gulp-tasks/watch'); | ||
@@ -19,3 +21,3 @@ const server = require('./gulp-tasks/server'); | ||
let produce = series(clean, parallel(common, pieces, boards)); | ||
let produce = series(clean, parallel(common, pieces, boards, scripts)); | ||
gulp.task("produce", produce, function() { | ||
@@ -25,7 +27,2 @@ console.log('Building produce...'); | ||
let deploy = series(clean, parallel(common, pieces, boards)); | ||
gulp.task("deploy", deploy, function() { | ||
console.log('Building deploy...'); | ||
}); | ||
gulp.task('default', parallel('build', watch, server)); |
{ | ||
"name": "onix-board-assets", | ||
"version": "3.2.21", | ||
"version": "3.4.23", | ||
"description": "Chess board assets", | ||
"main": "index.js", | ||
"main": "dist/js/index.js", | ||
"scripts": { | ||
@@ -50,2 +50,3 @@ "start": "gulp", | ||
"gulp-sourcemaps": "^2.6.5", | ||
"gulp-typescript": "^6.0.0-alpha.1", | ||
"gulp-uglify": "^3.0.0", | ||
@@ -57,4 +58,10 @@ "gulp-watch": "^5.0.0", | ||
"postcss-inline-svg": "^4.1.0", | ||
"postcss-scss": "^2.0.0" | ||
"postcss-scss": "^2.0.0", | ||
"ts-loader": "^6.2.1", | ||
"typescript": "^3.7.2", | ||
"webpack": "^4.41.2", | ||
"webpack-cli": "^3.3.10", | ||
"webpack-dev-middleware": "^3.7.2", | ||
"webpack-hot-middleware": "^2.25.0" | ||
} | ||
} |
@@ -12,2 +12,3 @@ const { PRODUCTION } = require('./config'); | ||
boards: assets + '/boards/', | ||
scripts: base + '/js/', | ||
images: base + '/media/img/', | ||
@@ -20,2 +21,3 @@ fonts: base + '/media/fonts/', | ||
src: { | ||
scripts: './src/js/index.ts', | ||
templates: './src/templates/', | ||
@@ -31,2 +33,3 @@ nunj: 'src/templates/*.nunj', | ||
common: ['./src/common/*.scss', '!./src/common/_*.scss'], | ||
tests: './src/test/index.ts', | ||
}, | ||
@@ -33,0 +36,0 @@ watch: { |
@@ -20,11 +20,11 @@ { | ||
"boardSizes": [ | ||
{ "code": "size1", "name": "160x160", "square": "20px", "frame": "16px", "font": "8px" }, | ||
{ "code": "size2", "name": "240x240", "square": "30px", "frame": "17px", "font": "8px" }, | ||
{ "code": "size3", "name": "320x320", "square": "40px", "frame": "18px", "font": "9px" }, | ||
{ "code": "size4", "name": "400x400", "square": "50px", "frame": "22px", "font": "10px" }, | ||
{ "code": "size5", "name": "480x480", "square": "60px", "frame": "28px", "font": "11px" }, | ||
{ "code": "size6", "name": "560x560", "square": "70px", "frame": "32px", "font": "12px" }, | ||
{ "code": "size7", "name": "640x640", "square": "80px", "frame": "36px", "font": "13px" }, | ||
{ "code": "size8", "name": "720x720", "square": "90px", "frame": "42px", "font": "14px" } | ||
{ "code": "size1", "name": "160x160", "idx": 1, "square": "20px", "frame": "16px", "font": "8px" }, | ||
{ "code": "size2", "name": "240x240", "idx": 2, "square": "30px", "frame": "17px", "font": "8px" }, | ||
{ "code": "size3", "name": "320x320", "idx": 3, "square": "40px", "frame": "18px", "font": "9px" }, | ||
{ "code": "size4", "name": "400x400", "idx": 4, "square": "50px", "frame": "22px", "font": "10px" }, | ||
{ "code": "size5", "name": "480x480", "idx": 5, "square": "60px", "frame": "28px", "font": "11px" }, | ||
{ "code": "size6", "name": "560x560", "idx": 6, "square": "70px", "frame": "32px", "font": "12px" }, | ||
{ "code": "size7", "name": "640x640", "idx": 7, "square": "80px", "frame": "36px", "font": "13px" }, | ||
{ "code": "size8", "name": "720x720", "idx": 8, "square": "90px", "frame": "42px", "font": "14px" } | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14085728
702
4762
34