Skip to content

Commit 6b25024

Browse files
authored
Merge pull request #1 from Nirajkashyap/develop
init 2
2 parents 0fa3197 + 60faebd commit 6b25024

File tree

7 files changed

+231
-165
lines changed

7 files changed

+231
-165
lines changed

.gitignore

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,36 @@
1-
node_modules
1+
2+
# Logs
3+
logs
4+
*.log
5+
6+
# Runtime data
7+
pids
8+
*.pid
9+
*.seed
10+
11+
# Directory for instrumented libs generated by jscoverage/JSCover
12+
lib-cov
13+
14+
# Coverage directory used by tools like istanbul
215
coverage
16+
17+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
18+
.grunt
19+
20+
# Compiled binary addons (http://nodejs.org/api/addons.html)
21+
build/Release
22+
23+
# Users Environment Variables
24+
.lock-wscript
25+
26+
# OS generated files #
27+
.DS_Store
28+
ehthumbs.db
29+
Icon?
30+
Thumbs.db
31+
32+
# Node Files #
33+
/node_modules/
34+
/bower_components/
35+
npm-debug.log
36+
/npm-debug.log.*

.travis.yml

Lines changed: 66 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,69 @@ language: node_js
22
node_js:
33
- 7
44
- 6
5-
- 4
6-
after_script: 'cat ./coverage/lcov.info | coveralls'
5+
6+
addons:
7+
apt:
8+
sources:
9+
- google-chrome
10+
packages:
11+
- google-chrome-stable
12+
13+
cache:
14+
directories:
15+
- node_modules
16+
17+
before_install:
18+
- npm install npm@5 -g
19+
- npm cache verify
20+
- npm prune
21+
- npm update
22+
23+
install:
24+
- npm install
25+
26+
after_install:
27+
- echo "echoing in after_install steps"
28+
29+
30+
before_script:
31+
- npm rebuild node-sass
32+
- export DISPLAY=:99.0
33+
- sh -e /etc/init.d/xvfb start
34+
- sleep 3
35+
36+
script:
37+
- npm run test
38+
39+
after_success:
40+
- echo 'please write auto merge script here'
41+
42+
env:
43+
global:
44+
- secure: cjSbs+51rGnIQeUV/2ekYdZ3uC+k25i5gQittuULyzJrgXMMmBl1p0T1bbC6f2xVBjKmPb09iO7jRK9wAKheD2DXI+boOXk6kppUrVRsKLGqUMVCweAa9wsdi4u8JoW9mGqJCypl0y5T/b7iJYGvHCJLadsET9mvyYCNHM63GRM=
45+
- secure: R3O/O5BskbWFSqSN9G1x1EDo83MHiyLue0GVMf5cCV+eiJHkag0A7cxYVGpoWzTx+t1UArMIpGLSzuIMiBpnLsR0vjm3R8UWhYM1ruqJCqdDP1bmJ7uYKGlJau2xHG86fc+190ChSY1l5ipjyui60564Yp02scePbX1aXbQXGbY=
46+
47+
48+
after_failure:
49+
- echo "echoing in after_failure steps"
50+
51+
after_script:
52+
- echo "echoing in after_script steps and will public coverage to coveralls"
53+
- 'cat ./coverage/lcov.info | coveralls'
54+
55+
56+
before_deploy:
57+
- test $TRAVIS_TEST_RESULT = 0 \# check that build passed successfully
58+
&& cd $TRAVIS_BUILD_DIR \
59+
&& tar -zcvf amber-storm-$TRAVIS_BRANCH.tar.gz dist
60+
61+
deploy:
62+
provider: releases
63+
api_key:
64+
secure: securekeyhere
65+
file: myrepo-$TRAVIS_BRANCH.tar.gz
66+
skip_cleanup: true
67+
on:
68+
condition: $PRODBUILDCOMPLETE = true
69+
all_branches: true
70+
tags: true

generators/app/index.js

Lines changed: 69 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,53 @@ module.exports = Generator.extend({
1212
));
1313

1414
var prompts = [{
15-
type: 'input',
16-
name: 'name',
17-
message: 'What is your project name?',
18-
default: path.parse(process.cwd()).name, // Default to current folder name
19-
store: true
20-
},
21-
{
22-
type: 'input',
23-
name: 'description',
24-
message: 'Enter a short project description:',
25-
default: '',
26-
store: true
27-
},
28-
{
29-
type: 'input',
30-
name: 'version',
31-
message: 'What semver version should the project start on?',
32-
default: '0.0.0',
33-
store: true
34-
},
35-
{
36-
type: 'input',
37-
name: 'license',
38-
message: 'What license is the project distributed under?',
39-
default: 'UNLICENSED',
40-
store: true
41-
},
42-
{
43-
type: 'confirm',
44-
name: 'isprivate',
45-
message: 'Is this a private project?',
46-
default: true,
47-
store: true
48-
},
49-
{
50-
type: 'input',
51-
name: 'author',
52-
message: 'Who/what is the author of this project?',
53-
default: '',
54-
store: true
55-
},
56-
{
57-
type: 'input',
58-
name: 'username',
59-
message: 'What is your github user/organisation name?',
60-
store: true
61-
},
15+
type: 'input',
16+
name: 'name',
17+
message: 'What is your project name?',
18+
default: path.parse(process.cwd()).name, // Default to current folder name
19+
store: true
20+
},
21+
{
22+
type: 'input',
23+
name: 'description',
24+
message: 'Enter a short project description:',
25+
default: '',
26+
store: true
27+
},
28+
{
29+
type: 'input',
30+
name: 'version',
31+
message: 'What semver version should the project start on?',
32+
default: '0.0.0',
33+
store: true
34+
},
35+
{
36+
type: 'input',
37+
name: 'license',
38+
message: 'What license is the project distributed under?',
39+
default: 'UNLICENSED',
40+
store: true
41+
},
42+
{
43+
type: 'confirm',
44+
name: 'isprivate',
45+
message: 'Is this a private project?',
46+
default: true,
47+
store: true
48+
},
49+
{
50+
type: 'input',
51+
name: 'author',
52+
message: 'Who/what is the author of this project?',
53+
default: '',
54+
store: true
55+
},
56+
{
57+
type: 'input',
58+
name: 'username',
59+
message: 'What is your github user/organisation name?',
60+
store: true
61+
},
6262
// {
6363
// type: 'confirm',
6464
// name: 'cssprocessor',
@@ -81,23 +81,23 @@ module.exports = Generator.extend({
8181
// return val.toLowerCase();
8282
// }
8383
// },
84-
{
85-
type: 'confirm',
86-
name: 'jquery',
87-
message: 'Would you like to use jquery ?',
88-
default: true
89-
},
90-
{
91-
when: function (prompts) {
92-
// console.log(prompts);
84+
{
85+
type: 'confirm',
86+
name: 'jquery',
87+
message: 'Would you like to use jquery ?',
88+
default: true
89+
},
90+
{
91+
when: function (prompts) {
92+
// Console.log(prompts);
9393
prompts.bootstrap = false;
9494
return prompts.jquery;
95-
},
96-
type: 'confirm',
97-
name: 'bootstrap',
98-
message: 'Would you like to use bootstrap css 3.7 ?',
99-
default: true
100-
}
95+
},
96+
type: 'confirm',
97+
name: 'bootstrap',
98+
message: 'Would you like to use bootstrap css 3.7 ?',
99+
default: true
100+
}
101101
];
102102

103103
return this.prompt(prompts).then(function (props) {
@@ -107,8 +107,7 @@ module.exports = Generator.extend({
107107
},
108108

109109
writing: function () {
110-
111-
// console.log(this.props.cssstyle);
110+
// Console.log(this.props.cssstyle);
112111
// if (this.props.cssstyle === "less") {
113112

114113
// this.props.less = true;
@@ -117,7 +116,7 @@ module.exports = Generator.extend({
117116
// this.props.less = false;
118117
// this.props.scss = true;
119118
// }
120-
119+
121120
// copy sample file
122121
this.fs.copy(
123122
this.templatePath('_dummyfile.txt'),
@@ -184,7 +183,7 @@ module.exports = Generator.extend({
184183
this.destinationPath('webpack.config.js')
185184
);
186185

187-
//console.log(this.props);
186+
// Console.log(this.props);
188187
this.fs.copyTpl(
189188
this.templatePath('_package.json'),
190189
this.destinationPath('package.json'),
@@ -200,7 +199,7 @@ module.exports = Generator.extend({
200199
this.templatePath('./src'),
201200
this.destinationPath('./src')
202201
);
203-
// console.log(this.props);
202+
// Console.log(this.props);
204203
this.fs.copyTpl(
205204
this.templatePath('./src/app/app.module.ts'),
206205
this.destinationPath('./src/app/app.module.ts'),
@@ -213,8 +212,7 @@ module.exports = Generator.extend({
213212
this.props
214213
);
215214

216-
217-
// if (this.props.cssstyle === "less") {
215+
// If (this.props.cssstyle === "less") {
218216
// console.log("removing sccs file");
219217
// this.fs.delete(this.destinationPath('./src/*.scss'));
220218
// } else {
@@ -224,8 +222,8 @@ module.exports = Generator.extend({
224222
},
225223

226224
install: function () {
227-
// this.yarnInstall();
228-
225+
// This.yarnInstall();
226+
229227
this.installDependencies({
230228
yarn: true,
231229
npm: false,

generators/app/templates/_package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"github-deploy:prod": "webpack --config config/webpack.github-deploy.js --progress --profile --env.githubProd",
4747
"github-deploy": "npm run github-deploy:dev",
4848
"lint": "npm run tslint \"src/**/*.ts\"",
49-
//"precommit": "npm run lint",
50-
//"prepush": "npm run lint",
49+
"precommit": "npm run lint",
50+
"prepush": "npm run lint",
5151
"postinstall": "npm run webdriver:update",
5252
"postversion": "git push && git push --tags",
5353
"preclean:install": "npm run clean",

0 commit comments

Comments
 (0)