make default path shorter
Esse commit está contido em:
+7
-1
@@ -136,7 +136,13 @@ module.exports = function(grunt) {
|
||||
|
||||
grunt.task.run('connect:server');
|
||||
});
|
||||
grunt.registerTask('default', 'help message', function() {
|
||||
grunt.registerTask('check_customize', 'see if a component exists, and if not, run customize', function() {
|
||||
if (! grunt.file.exists('component.html')) {
|
||||
grunt.task.run('customize');
|
||||
}
|
||||
});
|
||||
grunt.registerTask('default', ['check_customize', 'serve']);
|
||||
grunt.registerTask('help', 'help message', function() {
|
||||
grunt.log.writeln('');
|
||||
grunt.log.writeln('_\'grunt customize\'_ to create your initial component');
|
||||
grunt.log.writeln('_\'grunt lint\'_ to check your component');
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
|
||||
1. Fork this repo
|
||||
2. Rename it (e.g. my-component)
|
||||
3. Git clone it to your computer
|
||||
4. CD into it and:
|
||||
|
||||
* `npm install`
|
||||
* `grunt`
|
||||
|
||||
5. Go to appmaker, sign in, and add a component, specifying the URL that step 4 gives you.
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário