Skip to content

Commit 86c44c7

Browse files
committed
feat(commandpost): update dependencies
1 parent 5e5b7fb commit 86c44c7

File tree

7 files changed

+1884
-1724
lines changed

7 files changed

+1884
-1724
lines changed

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# for npm
77
node_modules/
88
npm-shrinkwrap.json
9+
yarn.lock
910

1011
# for grunt
1112
typings/

Gruntfile.js

Lines changed: 6 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,8 @@
1-
module.exports = function (grunt) {
2-
grunt.initConfig({
3-
pkg: grunt.file.readJSON('package.json'),
4-
opt: {
5-
client: {
6-
"tsMain": "lib",
7-
"tsTest": "test",
8-
9-
"jsMainOut": "lib",
10-
"jsTestOut": "test"
11-
}
12-
},
1+
"use strict";
132

14-
exec: {
15-
tsc: "tsc -p ./",
16-
tsfmt: "tsfmt -r"
17-
},
18-
tsconfig: {
19-
main: {
20-
}
21-
},
22-
tslint: {
23-
options: {
24-
configuration: grunt.file.readJSON("tslint.json")
25-
},
26-
files: {
27-
src: [
28-
'<%= opt.client.tsMain %>/**/*.ts',
29-
'<%= opt.client.tsTest %>/**/*.ts',
30-
'!<%= opt.client.tsMain %>/**/*.d.ts'
31-
]
32-
}
33-
},
34-
typedoc: {
35-
main: {
36-
options: {
37-
module: "commonjs",
38-
out: './docs',
39-
name: '<%= pkg.name %>',
40-
target: "es5",
41-
experimentalDecorators: ""
42-
},
43-
src: [
44-
"./**/*.ts",
45-
"./**/*.tsx",
46-
"!./**/*.d.ts",
47-
"!./lib/cli.ts",
48-
"./typings/**/*.d.ts",
49-
"!./test/**/*.ts",
50-
"!./example/**/*.ts",
51-
"!./pages/**/*.ts",
52-
"!./node_modules/**/*",
53-
"./node_modules/typescript/lib/lib.es6.d.ts"
54-
]
55-
}
56-
},
57-
clean: {
58-
clientScript: {
59-
src: [
60-
// client
61-
'<%= opt.client.jsMainOut %>/*.js',
62-
'<%= opt.client.jsMainOut %>/*.d.ts',
63-
'<%= opt.client.jsMainOut %>/*.js.map',
64-
// client test
65-
'<%= opt.client.jsTestOut %>/*.js',
66-
'<%= opt.client.jsTestOut %>/*.js.map',
67-
'<%= opt.client.jsTestOut %>/*.d.ts'
68-
]
69-
}
70-
},
71-
mochaTest: {
72-
test: {
73-
options: {
74-
reporter: 'spec',
75-
timeout: 60000,
76-
require: [
77-
function () {
78-
require('espower-loader')({
79-
cwd: process.cwd() + '/' + grunt.config.get("opt.client.jsTestOut"),
80-
pattern: '**/*.js'
81-
});
82-
}
83-
]
84-
},
85-
src: [
86-
'<%= opt.client.jsTestOut %>/**/*Spec.js'
87-
]
88-
}
89-
},
3+
module.exports = function (grunt) {
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
906
conventionalChangelog: {
917
options: {
928
changelogOpts: {
@@ -110,15 +26,7 @@ module.exports = function (grunt) {
11026
src: "CHANGELOG.md"
11127
}
11228
}
113-
});
114-
115-
grunt.registerTask(
116-
'default',
117-
['clean:clientScript', 'exec:tsfmt', 'exec:tsc', 'tslint']);
118-
119-
grunt.registerTask(
120-
'test',
121-
['default', 'mochaTest']);
29+
});
12230

123-
require('load-grunt-tasks')(grunt);
31+
require('load-grunt-tasks')(grunt);
12432
};

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
machine:
22
node:
3-
version: "4"
3+
version: "6"

0 commit comments

Comments
 (0)