Development
This commit is contained in:
parent
da2932d9cc
commit
dd02e98c91
4 changed files with 13 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
const common = require('./common')
|
const common = require('./common')
|
||||||
|
|
||||||
const Tree = window.__nfptree?.tree || []
|
const Tree = window.__nfptree && window.__nfptree.tree || []
|
||||||
|
|
||||||
exports.Tree = Tree
|
exports.Tree = Tree
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const common = require('./common')
|
const common = require('./common')
|
||||||
|
|
||||||
const Tree = window.__nfptree || []
|
const Tree = window.__nfptree && window.__nfptree.tree || []
|
||||||
|
|
||||||
exports.Tree = Tree
|
exports.Tree = Tree
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ const Menu = {
|
||||||
},
|
},
|
||||||
|
|
||||||
view: function() {
|
view: function() {
|
||||||
|
console.log(Page.Tree)
|
||||||
return [
|
return [
|
||||||
m('div.top', [
|
m('div.top', [
|
||||||
m(m.route.Link,
|
m(m.route.Link,
|
||||||
|
|
13
package.json
13
package.json
|
@ -11,8 +11,8 @@
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build:prod": "sass -s compressed app/app.scss public/assets/app.css && sass -s compressed app/admin.scss public/assets/admin.css && asbundle app/index.js public/assets/app.js && asbundle app/admin.js public/assets/admin.js",
|
"build:prod": "sass -s compressed app/app.scss public/assets/app.css && sass -s compressed app/admin.scss public/assets/admin.css && asbundle app/index.js public/assets/app.js && asbundle app/admin.js public/assets/admin.js",
|
||||||
"build": "sass app/app.scss public/assets/app.css && sass app/admin.scss public/assets/admin.css && asbundle app/index.js public/assets/app.js && asbundle app/admin.js public/assets/admin.js",
|
"build": "sass app/app.scss public/assets/app.css && sass app/admin.scss public/assets/admin.css && asbundle app/index.js public/assets/app.js && asbundle app/admin.js public/assets/admin.js",
|
||||||
"build:watch": "npm-watch build",
|
"dev:build": "npm-watch build",
|
||||||
"dev:server": "npm run build && node dev.mjs | bunyan",
|
"dev:server": "node dev.mjs | bunyan",
|
||||||
"dev": "npm-watch dev:server",
|
"dev": "npm-watch dev:server",
|
||||||
"watch:sass:public": "sass --watch app/app.scss public/assets/app.css",
|
"watch:sass:public": "sass --watch app/app.scss public/assets/app.css",
|
||||||
"watch:sass:admin": "sass --watch app/admin.scss public/assets/admin.css",
|
"watch:sass:admin": "sass --watch app/admin.scss public/assets/admin.css",
|
||||||
|
@ -21,7 +21,14 @@
|
||||||
"watch": {
|
"watch": {
|
||||||
"dev:server": {
|
"dev:server": {
|
||||||
"patterns": [
|
"patterns": [
|
||||||
"api/*",
|
"api/*"
|
||||||
|
],
|
||||||
|
"extensions": "js,mjs",
|
||||||
|
"quiet": true,
|
||||||
|
"inherit": true
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"patterns": [
|
||||||
"app/*"
|
"app/*"
|
||||||
],
|
],
|
||||||
"extensions": "js,mjs",
|
"extensions": "js,mjs",
|
||||||
|
|
Loading…
Reference in a new issue