This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( | |
(!oldHtml || newHtml.__html != oldHtml.__html) && | |
newHtml.__html !== dom.innerHTML | |
) { | |
dom.innerHTML = (newHtml && newHtml.__html) || ""; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"**/*.js: "$(basename).ts" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "view", | |
"props": { | |
"classname": "app" | |
}, | |
"children": [ | |
{ | |
"type": "view", | |
"props": { | |
"classname": "header" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @description - webpack server configurations | |
* @author - huang.jian <hjj491229492@hotmail.com> | |
*/ | |
const convert = require('koa-connect'); | |
const history = require('connect-history-api-fallback'); | |
const proxy = require('http-proxy-middleware'); | |
module.exports = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": [ | |
[ | |
"@babel/preset-env", | |
{ | |
"modules": false, | |
"loose": true | |
} | |
], | |
"@babel/preset-react" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const path = require('path'); | |
const fs = require('fs'); | |
const fse = require('fs-extra'); | |
const program = require('commander'); | |
const glob = require('glob'); | |
// internal | |
const welcome = require('../lib/welcome'); | |
const { version } = require('../package.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @description - just handle block extension | |
* @author - huang.jian <hjj491229492@hotmail.com> | |
*/ | |
const fs = require('fs'); | |
const path = require('path'); | |
const hbs = require('handlebars'); | |
const _ = require('lodash'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @description - service worker strategy | |
* @author - huang.jian <hjj491229492@hotmail.com> | |
*/ | |
/* eslint-env worker */ | |
/* global workbox */ | |
// import workbox library | |
importScripts( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @description - development configuration | |
* @author - yang.yuncai <383235388@qq.com> | |
*/ | |
// dependency | |
const presets = require('@coco-platform/webpack-preset'); | |
const convert = require('koa-connect'); | |
const history = require('connect-history-api-fallback'); | |
const proxy = require('http-proxy-middleware'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const req = require.context('../src/stories', true, /\.story\.jsx?$/); | |
req.keys().forEach((filename) => req(filename)); |
NewerOlder