Skip to content

Commit fc5a8f1

Browse files
committed
Publicado
0 parents  commit fc5a8f1

File tree

693 files changed

+298749
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

693 files changed

+298749
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/node_modules
2+
/dist
3+
/.tmp
4+
/carlos
5+
/nancy

Gruntfile.js

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
module.exports = function( grunt ) {
2+
3+
// Grunt configuration ------------------------------------------------
4+
// Time how long tasks take.
5+
require( 'time-grunt' )( grunt );
6+
7+
grunt.initConfig({
8+
pkg: grunt.file.readJSON( 'package.json' ),
9+
10+
// configure jshint to validate js files -----------------------------------
11+
jshint: {
12+
options: {
13+
// use jshint-stylish to make errors look and read good
14+
reporter: require('jshint-stylish')
15+
},
16+
build: ['Gruntfile.js', 'app/states/**/*.js']
17+
},
18+
19+
// Empty folders to start fresh -----------------------------------
20+
clean: {
21+
dist: {
22+
files: [{
23+
dot: true,
24+
src: [
25+
'.tmp',
26+
'dist/css/*',
27+
'dist/fonts/*',
28+
'dist/images/*',
29+
'dist/js/*',
30+
'dist/js_components/**/*',
31+
'dist/states/**/*',
32+
]
33+
}]
34+
},
35+
},
36+
37+
// configure concat ------------------------------------
38+
concat: {
39+
dist: {}
40+
},
41+
42+
43+
// Copy the html files of each state ------------------------------------
44+
copy: {
45+
main: {
46+
files: [
47+
{
48+
expand: true,
49+
cwd: 'app/',
50+
src: 'states/**/*.html',
51+
dest: 'dist',
52+
},
53+
],
54+
},
55+
assets: {
56+
files: [
57+
{
58+
expand: true,
59+
cwd: 'app/',
60+
src: 'fonts/*',
61+
dest: 'dist',
62+
},
63+
{
64+
expand: true,
65+
cwd: 'app/',
66+
src: 'images/*.ico',
67+
dest: 'dist',
68+
},
69+
{
70+
expand: true,
71+
cwd: 'app/',
72+
src: 'resources/**/*',
73+
dest: 'dist',
74+
},
75+
{
76+
expand: true,
77+
cwd: 'app/',
78+
src: 'js_components/directives/**/*.html',
79+
dest: 'dist',
80+
},
81+
]
82+
},
83+
},
84+
85+
// configure uglify to minify js files -------------------------------------
86+
// uglify: {
87+
// options: {
88+
// banner: '/*\n <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> \n*/\n'
89+
// },
90+
// build: {
91+
// files: {
92+
// 'dist/js/app.js': 'app/states/**/*.js',
93+
// }
94+
// }
95+
// },
96+
97+
// configure cssmin to minify css files ------------------------------------
98+
// cssmin: {
99+
// options: {
100+
// banner: '/*\n <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> \n*/\n'
101+
// },
102+
// build: {
103+
// files: {
104+
// 'dist/css/style.css': 'app/assets/css/style.css',
105+
// 'dist/css/normalize.css': 'app/assets/css/normalize.css'
106+
// }
107+
// }
108+
// },
109+
110+
/*
111+
// configure wiredep to inject bower dependencies ------------------------------------
112+
wiredep: {
113+
task: {
114+
src: ['index.html']
115+
}
116+
},
117+
*/
118+
119+
// Renames files for caching purposes ------------------------------------
120+
filerev: {
121+
dist: {
122+
src: [
123+
'dist/js/*.js',
124+
'dist/css/*.css'
125+
]
126+
}
127+
},
128+
129+
130+
// Reads HTML for usemin blocks to enable smart builds that automatically concat, minify and revision files.
131+
// Creates configurations in memory so additional tasks can operate on them.
132+
// configure usemin to enable builds ------------------------------------
133+
useminPrepare: {
134+
html: 'app/index.html',
135+
options: {
136+
dest: 'dist',
137+
flow: {
138+
html: {
139+
steps: {
140+
js: ['concat', 'uglify'],
141+
css: ['cssmin']
142+
},
143+
post: {}
144+
}
145+
}
146+
}
147+
},
148+
149+
// Performs rewrites based on the useminPrepare configuration ------------------------------------
150+
usemin: {
151+
html: [ 'dist/index.html' ] ,
152+
//css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
153+
js: [ 'dist/js/*.js'],
154+
options: {
155+
assetsDirs: [
156+
'dist',
157+
//'<%= yeoman.dist %>/images',
158+
//'<%= yeoman.dist %>/styles'
159+
],
160+
patterns: {
161+
js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']]
162+
}
163+
}
164+
},
165+
166+
// Minifies images located in the assets folder ------------------------------------
167+
imagemin: {
168+
dist: {
169+
files: [{
170+
expand: true,
171+
cwd: 'app/images',
172+
src: '{,*/}*.{png,jpg,jpeg,gif}',
173+
dest: 'dist/images'
174+
}]
175+
}
176+
},
177+
178+
// Minifies svg files located in the assets folder ------------------------------------
179+
svgmin: {
180+
dist: {
181+
files: [{
182+
expand: true,
183+
cwd: 'app/images',
184+
src: '{,*/}*.svg',
185+
dest: 'dist/images'
186+
}]
187+
}
188+
},
189+
190+
});
191+
192+
// Load the plugins.
193+
grunt.loadNpmTasks( 'grunt-contrib-clean' );
194+
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
195+
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
196+
grunt.loadNpmTasks( 'grunt-contrib-concat' );
197+
grunt.loadNpmTasks( 'grunt-contrib-cssmin' );
198+
grunt.loadNpmTasks('grunt-contrib-copy');
199+
grunt.loadNpmTasks( 'grunt-filerev' );
200+
grunt.loadNpmTasks( 'grunt-contrib-imagemin' );
201+
grunt.loadNpmTasks( 'grunt-usemin' );
202+
grunt.loadNpmTasks( 'grunt-svgmin' );
203+
204+
// Default task(s).
205+
grunt.registerTask( 'restart', [ 'clean' ]);
206+
grunt.registerTask( 'copy-states', [ 'copy' ]);
207+
grunt.registerTask( 'copy-assets', [ 'copy:assets' ]);
208+
grunt.registerTask( 'minify-images', [ 'imagemin', 'svgmin' ]);
209+
grunt.registerTask( 'verify-js', [ 'jshint' ]);
210+
grunt.registerTask( 'build', [
211+
'restart',
212+
'copy-states',
213+
'copy-assets',
214+
//'jshint',
215+
'minify-images',
216+
'useminPrepare',
217+
'concat',
218+
'cssmin',
219+
'uglify',
220+
'filerev',
221+
'usemin'
222+
] );
223+
};

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# moose
2+
3+
4+
## General Information
5+
6+
This project makes use of the following:
7+
8+
- angularjs
9+
10+
## Description
11+
12+
moose SAS

0 commit comments

Comments
 (0)