fix: move `build directory to resources/shop`
This commit is contained in:
48
Gruntfile.js
48
Gruntfile.js
@@ -19,8 +19,8 @@ var jsSite = [
|
||||
jsBootstrap,
|
||||
'node_modules/jquery-serializejson/jquery.serializejson.min.js',
|
||||
'node_modules/currency.js/dist/currency.min.js',
|
||||
'build/js/plugins/smooth_products/js/smoothproducts.min.js',
|
||||
'build/js/site.js',
|
||||
'resources/shop/js/plugins/smooth_products/js/smoothproducts.min.js',
|
||||
'resources/shop/js/site.js',
|
||||
]
|
||||
|
||||
var cssSite = [
|
||||
@@ -28,8 +28,8 @@ var cssSite = [
|
||||
'node_modules/@fortawesome/fontawesome-free/css/all.min.css',
|
||||
'node_modules/animate.css/animate.min.css',
|
||||
'node_modules/icheck-bootstrap/icheck-bootstrap.min.css',
|
||||
'build/js/plugins/smooth_products/css/smoothproducts.css',
|
||||
'build/css/site.css',
|
||||
'resources/shop/js/plugins/smooth_products/css/smoothproducts.css',
|
||||
'resources/shop/css/site.css',
|
||||
]
|
||||
|
||||
var jsAdminLTE = [
|
||||
@@ -41,15 +41,15 @@ var jsAdminLTE = [
|
||||
]
|
||||
|
||||
var jsCoreInclude = [
|
||||
'build/js/include/core/objectLength.js',
|
||||
'build/js/include/core/url.js',
|
||||
'build/js/include/core/user.js',
|
||||
'build/js/include/form/radio.js',
|
||||
'build/js/include/form/upload.js',
|
||||
'build/js/include/form/validator.js',
|
||||
'build/js/include/layout/animate.js',
|
||||
'build/js/include/layout/scroll.js',
|
||||
'build/js/include/layout/tooltip.js',
|
||||
'resources/shop/js/include/core/objectLength.js',
|
||||
'resources/shop/js/include/core/url.js',
|
||||
'resources/shop/js/include/core/user.js',
|
||||
'resources/shop/js/include/form/radio.js',
|
||||
'resources/shop/js/include/form/upload.js',
|
||||
'resources/shop/js/include/form/validator.js',
|
||||
'resources/shop/js/include/layout/animate.js',
|
||||
'resources/shop/js/include/layout/scroll.js',
|
||||
'resources/shop/js/include/layout/tooltip.js',
|
||||
]
|
||||
|
||||
var jsBundle = [
|
||||
@@ -84,7 +84,7 @@ var jsMain = [
|
||||
var cssPrint = [
|
||||
// 'node_modules/bootstrap/dist/css/bootstrap.min.css',
|
||||
'cssIcons',
|
||||
'build/print.css'
|
||||
'resources/shop/print.css'
|
||||
]
|
||||
|
||||
var cssBundle = [
|
||||
@@ -109,7 +109,7 @@ var cssIcons = [
|
||||
var cssMain = [
|
||||
cssBundle,
|
||||
cssIcons,
|
||||
'build/css/main.css',
|
||||
'resources/shop/css/main.css',
|
||||
]
|
||||
|
||||
var jsDataTables = [
|
||||
@@ -251,31 +251,31 @@ module.exports = function(grunt) {
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/fonts',
|
||||
cwd: 'resources/shop/fonts',
|
||||
src: ['**'],
|
||||
dest: 'public/fonts/'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/img',
|
||||
cwd: 'resources/shop/img',
|
||||
src: ['**'],
|
||||
dest: 'public/img/'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/lang',
|
||||
cwd: 'resources/shop/lang',
|
||||
src: ['**'],
|
||||
dest: 'public/assets/lang/'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/plugins',
|
||||
cwd: 'resources/shop/plugins',
|
||||
src: ['**'],
|
||||
dest: 'public/assets/plugins/'
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/assets/tpl',
|
||||
cwd: 'resources/shop/assets/tpl',
|
||||
src: ['**'],
|
||||
dest: 'public/assets/tpl/'
|
||||
},
|
||||
@@ -395,7 +395,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/plugins/pdfjs/',
|
||||
cwd: 'resources/shop/plugins/pdfjs/',
|
||||
src: ['**'],
|
||||
dest: 'public/assets/plugins/pdfjs',
|
||||
},
|
||||
@@ -461,7 +461,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/js/include/plugins/datatables_lang/',
|
||||
cwd: 'resources/shop/js/include/plugins/datatables_lang/',
|
||||
src: ['*.json'],
|
||||
dest: 'public/assets/plugins/datatables_lang',
|
||||
},
|
||||
@@ -539,7 +539,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
{
|
||||
expand: true,
|
||||
cwd: 'build/js/include/',
|
||||
cwd: 'resources/shop/js/include/',
|
||||
src: ['boilerplate.js'],
|
||||
dest: 'public/assets/plugins',
|
||||
},
|
||||
@@ -548,7 +548,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
watch: {
|
||||
dist: {
|
||||
files: ['build/js/*', 'build/css/*'],
|
||||
files: ['resources/shop/js/*', 'resources/shop/css/*'],
|
||||
// tasks: ['concat', 'copy']
|
||||
tasks: ['concat']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user