generator-reshow 0.17.18 → 0.17.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41,7 +41,7 @@ killBy() {
41
41
  stop() {
42
42
  killBy ${DIR}/node_modules/.bin/babel
43
43
  cat webpack.pid | xargs -I{} kill -9 {}
44
- npm run clean
44
+ npm run clean:webpack
45
45
  rm $SWJS
46
46
  echo "Stop done"
47
47
  }
@@ -73,7 +73,6 @@ production() {
73
73
  echo "Production Mode"
74
74
  checkBabel
75
75
  npm run build
76
- npm run clean:webpack
77
76
  ENABLE_SW=1 CONFIG=$conf NODE_ENV=production $webpack
78
77
  }
79
78
 
@@ -82,7 +81,6 @@ analyzer() {
82
81
  echo "Analyzer Mode"
83
82
  checkBabel
84
83
  npm run build
85
- npm run clean:webpack
86
84
  CONFIG=$conf BUNDLE='{}' $webpack
87
85
  }
88
86
 
@@ -91,7 +89,6 @@ develop() {
91
89
  echo "Develop Mode"
92
90
  checkBabel
93
91
  npm run build
94
- npm run clean:webpack
95
92
  CONFIG=$conf $webpack
96
93
  }
97
94
 
@@ -102,7 +99,6 @@ watch() {
102
99
  npm run build:es:ui -- --watch &
103
100
  npm run build:es:src -- --watch &
104
101
  sleep 10
105
- npm run clean:webpack
106
102
  CONFIG=$conf $webpack --watch &
107
103
  }
108
104
 
@@ -122,7 +118,6 @@ hot() {
122
118
  npm run build:es:ui -- --watch &
123
119
  npm run build:es:src -- --watch &
124
120
  sleep 10
125
- npm run clean:webpack
126
121
  HOT_UPDATE=1 CONFIG=$conf $webpack serve &
127
122
  }
128
123
 
@@ -0,0 +1,10 @@
1
+ import { expect } from "chai";
2
+
3
+ import YourFunc from "../index";
4
+
5
+ describe("Test <%= mainName %>", () => {
6
+ it("basic testt", () => {
7
+ /*your test code*/
8
+ YourFunc();
9
+ });
10
+ });
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+
3
+ npm run build
@@ -0,0 +1,3 @@
1
+ const YourFunc = (props) => {};
2
+
3
+ export default YourFunc;
@@ -0,0 +1,10 @@
1
+ const {expect} = require("chai");
2
+ const {init} = require("../init");
3
+
4
+ describe("Test <%= mainName %>", () => {
5
+ it("basic testt", () => {
6
+ /*your test code*/
7
+ const actual = init();
8
+ expect(actual).to.equal('bar');
9
+ });
10
+ });
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { init } = require("./init");
4
+
5
+ init();
@@ -0,0 +1,8 @@
1
+ const init = (props) => {
2
+ console.log("foo");
3
+ return "bar";
4
+ };
5
+
6
+ module.exports = {
7
+ init,
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-reshow",
3
- "version": "0.17.18",
3
+ "version": "0.17.19",
4
4
  "description": "Yeoman generator for reshow. (app, generator, ...etc)",
5
5
  "author": "Hill <hill@kimo.com>",
6
6
  "repository": {
@@ -1,8 +0,0 @@
1
- node_modules
2
- npm-debug.log
3
- coverage*
4
- .tern-port
5
- v8.log
6
- build
7
- .*.sw?
8
- webpack.pid